Application Program Control Method, Electronic Device and Storage Medium of Electronic Device
By obtaining and analyzing finger motion information and control information, the application level is determined and controlled, which solves the problem of users' complex song cutting operations in background applications and simplifies the user's operation process.
Patent Information
- Application Number
- CN202111132190.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-24
- Publication Date
- 2025-06-27
- Estimated Expiration
- 2041-09-24
AI Technical Summary
In the prior art, when there are no physical buttons on the steering wheel of the car or the terminal is not connected to the headset, it is difficult for users to cut songs in the background application, which increases the complexity of user operations.
By obtaining finger motion information and control information, using the correspondence between finger motion information and operation instructions, the operation instructions corresponding to finger motion information are determined, and the level corresponding to the control information is determined based on the correspondence between control information and levels, and then the application program with the determined level is controlled and the operation instructions corresponding to finger motion information are executed.
The operation instructions are executed without switching the application to the foreground, reducing the complexity of user operations.
Smart Images

Figure CN115858050B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technologies, and more particularly, to a method for controlling an application program of an electronic device, an electronic device, and a storage medium. Background Art
[0002] To enrich their spare time, people can listen to songs through in-vehicle application programs such as radios or music applications. When an in-vehicle application such as a radio or a music application is switched to the background, in the in-vehicle system, song skipping can be performed through a physical button for song skipping on the steering wheel of the vehicle. In a terminal such as a mobile phone, song skipping can be performed through the wired control function of a wired earphone or a Bluetooth earphone.
[0003] However, if there is no physical button for song skipping on the steering wheel of the vehicle, or the terminal is not connected to an earphone, when the user wants to skip a song, they can only switch the in-vehicle application program such as a radio or a music application to the foreground for operation, which increases the complexity of user operation. Summary of the Invention
[0004] This application provides a method for controlling an application program of an electronic device, an electronic device, and a storage medium that can at least partially solve the above problems existing in the prior art.
[0005] In a first aspect of this application, a method for controlling an application program of an electronic device is provided, including: obtaining finger movement information and control information; determining an operation instruction corresponding to the finger movement information according to the finger movement information and a first correspondence between the finger movement information and the operation instruction; determining a level corresponding to the control information according to the control information and a second correspondence between the control information and the level; and controlling an application program with the determined level to execute the operation instruction.
[0006] Another aspect of this application provides an electronic device, including: at least one processor; and a memory communicatively connected to the at least one processor, where the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method for controlling an application program of an electronic device as mentioned in the above embodiments.
[0007] Another aspect of this application provides a computer-readable storage medium storing a computer program, where when the computer program is executed by a processor, the method for controlling an application program of an electronic device as mentioned in the above embodiments is implemented.
[0008] An application program control method, an electronic device, and a storage medium of an electronic device provided according to an embodiment of the present application. Since the electronic device can determine the level of the application program corresponding to the current operation based on the control information, and then control the application program with the determined level to execute the operation instruction corresponding to the finger movement information, there is no need to switch the controlled application program to the foreground, reducing the complexity of user operations. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] Other features, objects, and advantages of the present application will become more apparent by reading the following detailed description of non-limiting embodiments with reference to the accompanying drawings. Among them:
[0010] Figure 1 is a flowchart of an application program control method in an embodiment of the present application;
[0011] Figure 2 is a schematic diagram of the process of a vehicle-mounted device responding to a user operation in an embodiment of the present application;
[0012] Figure 3 is a hierarchical diagram of a music application, a radio, and a navigation in an embodiment of the present application;
[0013] Figure 4 is a schematic diagram of the process of a vehicle-mounted device responding to a user operation in another embodiment of the present application;
[0014] Figure 5 is a schematic diagram of the process of a vehicle-mounted device responding to a user operation in yet another embodiment of the present application;
[0015] Figure 6 is a schematic diagram of the structure of an electronic device in an embodiment of the present application;
[0016] Figure 7 is a schematic diagram of the structure of a vehicle-mounted device in an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0017] To better understand the present application, more detailed descriptions of various aspects of the present application will be made with reference to the accompanying drawings. It should be understood that these detailed descriptions are only descriptions of exemplary embodiments of the present application and do not limit the scope of the present application in any way. Throughout the specification, the same reference numerals refer to the same elements. The expression "and / or" includes any and all combinations of one or more of the associated listed items.
[0018] It should be noted that in this specification, the expressions such as first, second, third, etc. are only used to separate one feature from another feature region, and do not represent any limitation on the features, especially do not represent any order. Therefore, without departing from the teachings of the present application, the first corresponding relationship discussed in the present application can also be referred to as the second corresponding relationship, and vice versa.
[0019] It should also be understood that expressions such as "including", "comprising", "having", "containing" and / or "comprising of" are open rather than closed expressions in this specification, which means the presence of the stated features, elements and / or components, but do not exclude the presence of one or more other features, elements, components and / or combinations thereof. In addition, when an expression such as "at least one of..." appears after a list of listed features, it modifies the entire list of features, rather than just individual elements in the list. In addition, when describing the embodiments of the present application, the use of "may" means "one or more embodiments of the present application". And the term "exemplary" is intended to refer to an example or illustration.
[0020] Unless otherwise defined, all terms used herein (including engineering terms and scientific and technical terms) have the same meaning as commonly understood by those of ordinary skill in the art to which this application belongs. It should also be understood that unless clearly stated in this application, words defined in common dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant art, and should not be interpreted in an idealized or overly formal sense.
[0021] It should be noted that, without conflict, the embodiments in this application and the features in the embodiments can be combined with each other. In addition, unless clearly defined or in contradiction with the context, the specific steps included in the methods described in this application do not have to be limited to the recorded order, but can be executed in any order or executed in parallel. The present application will be described in detail below with reference to the drawings and in combination with the embodiments.
[0022] In addition, when using "connected" or "coupled" in the present application, it may mean direct contact or indirect contact between the corresponding components, unless there are clear other limitations or can be deduced from the context.
[0023] An embodiment of the present application provides an application program control method for an electronic device, which can be executed by the electronic device or other devices (such as a server, a cloud server, etc.) communicatively connected to the electronic device. The electronic device may include, for example, a vehicle-mounted device. Hereinafter, taking the electronic device as the execution subject, an example of the execution process of the application program control method will be given. It should be understood that the following content can also be applied to the case where other devices connected to the electronic device execute the application program control method mentioned in the present application.
[0024] As shown Figure 1 below, the application program control method of the electronic device includes the following steps.
[0025] S101, Obtain finger movement information and control information.
[0026] S102, Determine the operation instruction corresponding to the finger movement information according to the finger movement information and its corresponding relationship with the operation instruction (also referred to as the "first corresponding relationship" in this article).
[0027] S103, Determine the level corresponding to the control information according to the control information and its corresponding relationship with the level (also referred to as the "second corresponding relationship" in this article).
[0028] S104, Control the application program with the determined level to execute the operation instruction.
[0029] According to an application program control method, an electronic device and a storage medium provided by an embodiment of the present application, since the electronic device can determine the level of the application program corresponding to the current operation based on the control information, and then control the application program with the determined level to execute the operation instruction corresponding to the finger movement information, there is no need to switch the controlled application program to the foreground, reducing the complexity of user operation.
[0030] In an embodiment of the present application, the finger movement information may include, for example, at least one of information such as the sliding trajectory of the finger, the moving speed of the finger, and the moving acceleration of the finger. The present application does not limit this.
[0031] The following takes the information included in the finger movement information as an example to illustrate the setting method of the first corresponding relationship.
[0032] In one embodiment, the finger movement information includes the sliding trajectory of the finger, and different sliding trajectories of the finger may correspond to different operation instructions. For example, the sliding trajectory of the finger includes: the sliding trajectory generated by clicking on the screen, the sliding trajectory generated by swiping right on the screen, and the sliding trajectory generated by swiping left on the screen. The operation instruction corresponding to the sliding trajectory generated by clicking on the screen may be, for example, pausing or starting playback; the operation instruction corresponding to the sliding trajectory generated by swiping left on the screen may be, for example, playing the next song or switching to the next radio program; the operation instruction corresponding to the sliding trajectory generated by swiping right on the screen may be, for example, playing the previous song or switching to the previous radio program.
[0033] It should be understood that without departing from the teachings of the present application, the sliding trajectory of the finger may also include, for example, the finger rotating one circle, the finger rotating two circles, etc. The present application does not limit this.
[0034] It should be understood that, without departing from the teachings of the present application, those skilled in the art can set the correspondence between the sliding trajectory of the finger and the operation instruction according to the type of operation instruction of the application program, etc., and the present application does not limit this.
[0035] In another embodiment, the finger movement information includes the moving speed of the finger, and different moving speeds of the finger can correspond to different operation instructions. For example, when the moving speed of the finger is in the first speed range, the corresponding operation instruction can be, for example, pausing playback or starting playback; when the moving speed of the finger is in the second speed range, the corresponding operation instruction can be, for example, playing the next song or switching to the next radio program; when the moving speed of the finger is in the third speed range, the corresponding operation instruction can be, for example, playing the previous song or switching to the previous radio program. There may be no intersection between the first speed range, the second speed range, and the third speed range. Optionally, the speed value in the first speed range < the speed value in the second speed range < the speed value in the third speed range, or, the speed value in the first speed range > the speed value in the second speed range > the speed value in the third speed range. It should be understood that the magnitude relationship of the speed values in the first speed range, the second speed range, and the third speed range can be set according to actual application requirements, and the present application does not limit this.
[0036] It should be understood that, without departing from the teachings of the present application, those skilled in the art can set the correspondence between the moving speed of the finger and the operation instruction according to the type of operation instruction of the application program, etc., and the present application does not limit this.
[0037] In another embodiment, the finger movement information includes the moving acceleration of the finger, and each operation instruction corresponds to a different moving acceleration of the finger. For example, when the moving acceleration of the finger is in the first acceleration range, the corresponding operation instruction can be, for example, pausing playback or starting playback; when the moving acceleration of the finger is in the second acceleration range, the corresponding operation instruction can be, for example, playing the next song or switching to the next radio program; when the moving acceleration of the finger is in the third acceleration range, the corresponding operation instruction can be, for example, playing the previous song or switching to the previous radio program. There may be no intersection between the first acceleration range, the second acceleration range, and the third acceleration range. Optionally, the acceleration value in the first acceleration range < the acceleration value in the second acceleration range < the acceleration value in the third acceleration range, or, the acceleration value in the first acceleration range > the acceleration value in the second acceleration range > the acceleration value in the third acceleration range. It should be understood that the magnitude relationship of the acceleration values in the first acceleration range, the second acceleration range, and the third acceleration range can be set according to actual application requirements, and the present application does not limit this.
[0038] It should be understood that without violating the teachings of this application, those skilled in the art may set the correspondence between the finger movement acceleration and the operation instruction according to the operation instruction type of the application, etc., and this application does not impose any restrictions on this.
[0039] It should be noted that the above examples are only for illustration. Without violating the teaching of this application, the finger motion information may also include any two or all of the information of the sliding trajectory of the finger, the moving speed of the finger, and the moving acceleration of the finger. For example, the finger motion information includes the sliding trajectory of the finger and the moving speed of the finger. Different sliding trajectories of fingers and different finger moving speeds may correspond to different operation instructions. For example, the first corresponding relationship may include: the moving speed of the finger is in the first speed range, and the sliding trajectory is the sliding trajectory generated by clicking the screen, and the corresponding operation instruction may be, for example, pausing or starting to play; the moving speed of the finger is in the second speed range, and the sliding trajectory is the sliding trajectory generated by swiping the screen to the left, and the corresponding operation instruction may be, for example, playing the next song or switching to the next radio program; the moving speed of the finger is in the third speed range, and the sliding trajectory is the sliding trajectory generated by swiping the screen to the right, and the corresponding operation instruction may be, for example, playing the previous song or switching to the previous radio program. This application does not limit the amount of information contained in the finger motion information and the setting method of the first corresponding relationship.
[0040] It should be understood that the above examples are for illustration only, and without violating the teachings of this application, the finger motion information may also include other information, and the first correspondence may also be adjusted according to the information contained in the finger motion information, and this application does not impose any restrictions on this.
[0041] In one embodiment of the present application, the vehicle-mounted device is provided with a display screen, which may be, for example, a touch screen. The control information may include, for example: the distance between the finger and the display screen, the intensity of the finger pressing the display screen, the number of fingers, the movement speed of the fingers, and at least one of the touch area operated by the finger on the display screen.
[0042] The following uses the electronic device as a vehicle-mounted device as an example to illustrate the method of obtaining control information.
[0043] If the control information includes the air distance, the method for obtaining the air distance includes but is not limited to: detecting the air distance by a distance sensor installed on the vehicle-mounted device; or obtaining the air distance by analyzing an image captured by a camera that is connected to the vehicle-mounted device for communication.
[0044] If the control information includes the pressing strength of the finger on the display screen, the method of obtaining the pressing strength includes but is not limited to: obtaining the pressing strength by installing a pressure sensor under the display screen.
[0045] If the control information includes the number of fingers, the method for obtaining the number of fingers includes but is not limited to: obtaining the number of fingers by identifying an image taken by a camera that is connected to the vehicle-mounted device for communication; or obtaining the number of fingers based on the number of touch points touched on the display screen and the correspondence between the number of touch points and the number of fingers.
[0046] If the control information includes the moving speed of the finger, the method for obtaining the moving speed of the finger includes but is not limited to: analyzing and obtaining the moving speed of the finger in the image based on identifying the position change of the finger in the image taken by the camera connected to the vehicle-mounted device for communication.
[0047] If the control information includes the touch area operated by the finger in the display screen, the method for obtaining the touch area operated in the display screen includes but is not limited to: determining the touch area operated by the finger in the display screen based on the position information of the touch point and the correspondence between the touch point and the touch area.
[0048] It should be understood that the above method of obtaining control information is only an example. Without departing from the teaching of this application, control information can also be obtained by other methods, which are not listed here one by one.
[0049] It should be understood that, without departing from the teachings of this application, the vehicle-mounted device can obtain finger motion information and control information through the same device of the vehicle-mounted device. For example, if the finger motion information is the sliding trajectory of the finger, and the control information is the air distance, the vehicle-mounted device can obtain the air distance and the sliding trajectory through an image sensor. The vehicle-mounted device can also obtain finger motion information and control information respectively through different devices of the vehicle-mounted device. For example, if the finger motion information is the sliding trajectory of the finger, and the control information is the air distance, the vehicle-mounted device can obtain the sliding trajectory of the finger through an image sensor, and obtain the air distance through a distance sensor. This application does not limit this.
[0050] As an option, the vehicle-mounted device can obtain finger movement information and control information by analyzing the user's operation once. For example, the finger movement information includes the movement trajectory of the finger, and the control information includes the distance in the air. The vehicle-mounted device obtains the finger movement information and control information through an image sensor. During the user's operation, the vehicle-mounted device analyzes the image captured during the user's operation to obtain the distance between the finger and the display screen and the movement trajectory of the finger. By analyzing the user's operation once, the vehicle-mounted device can lock the application to be controlled and the operation instructions to be executed, reducing the user's operation steps and making the user operation simpler.
[0051] Alternatively, the in-vehicle device may also obtain finger movement information and control information by analyzing different operations of the user. For example, the finger movement information includes the movement trajectory of the finger, and the control information includes the moving speed of the finger. The in-vehicle device obtains the finger movement information and the control information through an image sensor. During the user operation, the in-vehicle device analyzes the images captured during the user's first operation to obtain the moving speed of the finger, and analyzes the images captured during the user's second operation to obtain the movement trajectory of the finger.
[0052] It should be understood that without departing from the teachings of the present application, the in-vehicle device may, for example, obtain finger movement information and control information simultaneously, or may, for example, first obtain finger movement information and then obtain control information, or may, for example, first obtain control information and then obtain finger movement information. The present application does not limit the order of obtaining finger movement information and control information.
[0053] In an embodiment of the present application, the manner in which the electronic device determines the level corresponding to the control information according to the obtained control information and the corresponding relationship between the control information and the level (i.e., the second corresponding relationship) includes, but is not limited to:
[0054] Method 1:
[0055] If the second corresponding relationship indicates the value range of the control information corresponding to each level, and there is no intersection between the value ranges of the control information corresponding to adjacent levels, the electronic device determines which value range the detected control information value belongs to, and determines the level corresponding to the control information according to the value range to which the control information value belongs. For example, if the detected control information belongs to the i-th value range and the corresponding level is i, the electronic device may control the application program at the i-th level to cause the application program at the i-th level to execute the operation instruction corresponding to the finger movement information. Based on the application program control method mentioned in the present application, the user can operate the display screen according to the value range of the control information corresponding to the level of the application program to be controlled to achieve the effect of controlling the application program. Among them, the application program to be controlled may be, for example, a background application program or a foreground application program. For example, the user operates the display screen according to the value range of the control information corresponding to the level of the background application program, and can control the background application program, thereby achieving the effect of controlling the background application program without switching the background application program to the foreground, reducing the complexity of the operation.
[0056] Method 2:
[0057] If the second corresponding relationship indicates the value range of the control information corresponding to each level, and there is an intersection between the value ranges of the control information corresponding to two adjacent levels, the electronic device determines the candidate levels according to the control information and the second corresponding relationship. Since there is an intersection between the value ranges of the control information corresponding to two adjacent levels, the number of candidate levels may be one or more. Therefore, if the electronic device determines that the number of candidate levels is greater than 1, it may select one of the candidate levels as the level corresponding to the control information according to the user's selection information or a preset selection rule; if it determines that the number of candidate levels is equal to 1, it may directly use the candidate level as the level corresponding to the control information. Specifically, considering that different users may have different understandings of the value ranges of the control information corresponding to each level, the electronic device may set an intersection between the value ranges of the control information corresponding to two adjacent levels, and when the detected control information is within the intersection, make a secondary selection according to the user's selection information or a preset selection rule to determine the level corresponding to the control information.
[0058] Optionally, the electronic device may obtain the user's selection information by means such as voice input or display input.
[0059] It should be understood that without departing from the teachings of the present application, the electronic device may also obtain the user's selection information by other means, and the present application does not limit this.
[0060] Optionally, the preset selection rule may be configured to select a higher or lower level among the candidate levels.
[0061] It should be understood that without departing from the teachings of the present application, the preset selection rule may also be set to other rules, and the present application does not limit this.
[0062] The following gives an example of the method for dividing the levels of application programs.
[0063] In one embodiment, the level of an application program is determined according to the startup order of the application program, or the order in which the application program is brought to the foreground for running. In other words, the electronic device divides the levels of the currently running application programs according to the startup order of the currently running application programs or the order in which they are brought to the foreground for running. Optionally, the level of an application program that starts later may be higher than that of an application program that starts earlier, or the level of an application program that is brought to the foreground later may be higher than that of an application program that is brought to the foreground earlier.
[0064] As an option, the electronic device may also update the level corresponding to the currently running application, for example, after detecting a change in the application running in the foreground. In other words, if the electronic device detects that the user opens a new application, or the user brings a background application to the foreground, the level of the currently running application can be adjusted. The adjustment rules for the level of the application may include, for example: if the user operation is to open a new application, set the level of the new application to 1, and adjust the level of the already opened application to the original level + 1; if the user operation is to bring a background application to the foreground, adjust the level of the background application brought to the foreground to 1, and adjust the level lower than the background application brought to the foreground to the original level + 1. For example, if the currently running programs include a music application and a radio, the level of the music application is 1 and the level of the radio is 2. After the user opens the navigation, the level of the navigation is adjusted to 1, the level of the music application is adjusted to 2, and the level of the radio is adjusted to 3. After opening the navigation, if the user brings the music application to the foreground, the level of the navigation is adjusted to 2, the level of the music application is adjusted to 1, and the level of the radio remains unchanged.
[0065] It should be understood that without departing from the teachings of the present application, the electronic device may also adjust the level of the application according to other rules, and the present application does not limit this.
[0066] It should be understood that without departing from the teachings of the present application, the electronic device may also classify the applications according to other methods. For example, the level of the application is a pre-set level, that is, the electronic device presets the level for each application, and the present application does not limit this.
[0067] In an embodiment of the present application, considering the situation where the user forgets the startup order of the applications or the order in which the applications are brought to the foreground, the electronic device may, in response to a query instruction triggered by the user, feedback the level information of the currently running applications to the user.
[0068] Optionally, the ways for the electronic device to feedback the level information of the currently running applications include but are not limited to: displaying the level information of the currently running applications through the display screen of the electronic device; or, playing the level information of the currently running applications by voice.
[0069] It should be understood that the electronic device may also feedback the level information of the currently running applications to the user by other means, and the present application does not limit this.
[0070] In an embodiment of the present application, the ways for the electronic device to control the application with a determined level to execute an operation instruction include but are not limited to:
[0071] Way 1:
[0072] The electronic device issues an operation instruction to a specified port of the electronic device that is monitored by the currently running application, and the level of the operation instruction is the level corresponding to the control information. All currently running applications monitor this specified port. After each currently running application monitors the operation instruction, if it determines that the level of the monitored operation instruction is the same as its own level, it executes the monitored operation instruction; if the level of the monitored operation instruction is the same as its own level, it does not respond to the monitored operation instruction.
[0073] As an option, if the monitored operation instruction is an operation instruction that the application cannot execute, the electronic device can inform the user by means of feedback response failure information or the like, so that the user can perform subsequent operations as needed.
[0074] Method 2:
[0075] The electronic device transmits the operation instruction to the application with the determined level according to the level corresponding to the control information and the levels of the respective applications, so that the application with the determined level executes the operation instruction corresponding to the finger movement information. In other words, each application communicates with the electronic device through different ports. After the electronic device determines the application with the determined level, it can transmit the operation instruction corresponding to the finger movement information to the application through the port used for communicating with the application.
[0076] It should be understood that the electronic device can also control the application to execute the operation instruction corresponding to the finger movement information in other ways, and this application does not limit this.
[0077] In an embodiment of this application, after executing the operation instruction corresponding to the finger movement information, the electronic device adjusts the second corresponding relationship according to the user behavior data. Considering the situation where the application with the level determined by the electronic device is different from the application that the user wants to control due to reasons such as detection errors, the electronic device can periodically adjust the second corresponding relationship according to the user behavior data, or can also set a trigger condition, and when the trigger condition is met, it can adjust the second corresponding relationship according to the user behavior data.
[0078] The following gives an example of the trigger condition.
[0079] In one embodiment, the triggering condition may be set as follows: after the user behavior data indicates that the user performs an operation instruction corresponding to the finger movement information in an application with a determined level and then performs a first preset behavior. Considering that after the user perceives that the application with the determined level is different from the application that the user actually wants to control, the user usually performs operations such as bringing the application that the user actually wants to control to the foreground. Therefore, the electronic device may set an operation behavior such as bringing a background running program other than the application with the determined level to the foreground as the first preset behavior. In other words, if the user behavior data indicates that after the user performs an operation instruction corresponding to the finger movement information in an application with a determined level, the user brings a background running program other than the application with the determined level to the foreground, the electronic device may adjust the second corresponding relationship.
[0080] It should be understood that without departing from the teachings of the present application, the electronic device may also set an operation such as closing the application with the determined level as the first preset behavior, and the present application does not limit this.
[0081] In another embodiment, the triggering condition may be set as follows: the number of user adjustments recorded by the electronic device is greater than a first threshold, where the number of adjustments indicates the number of times the user performs the first preset behavior after performing an operation instruction corresponding to the finger movement information in an application with a determined level. In other words, if the user behavior data indicates that the user performs the first preset behavior after performing an operation instruction corresponding to the finger movement information in an application with a determined level, the electronic device may update the number of adjustments. For example, the number of adjustments is incremented by 1. When the number of adjustments reaches a first preset value, the electronic device may adjust the second corresponding relationship. Optionally, the electronic device may clear the number of adjustments after the number of adjustments reaches the first preset value, or the electronic device may clear the number of adjustments when the number of adjustments does not reach the first preset value after a first preset time from the last time the number of adjustments was cleared.
[0082] It should be understood that without departing from the teachings of the present application, the triggering condition may also be set as detecting that the user touches a virtual control indicating an adjustment of the second corresponding relationship, or the user triggers an adjustment signal through voice control or other means, and the present application does not limit this.
[0083] The following gives an example of the process by which the electronic device adjusts the second corresponding relationship according to the user behavior data.
[0084] In an embodiment of the present application, the user behavior data may include, for example, the operation logs of the electronic device, etc. The step of the electronic device adjusting the second corresponding relationship according to the user behavior data may include, for example: searching in the user behavior data for the first behavior record corresponding to the operation instruction of the application program with the determined level; judging whether there is a second behavior record corresponding to the first preset behavior within a second preset time after the first behavior record; if it is determined that there is, analyzing the second behavior record to obtain the level of the background application program brought to the foreground, and using it as the target level corresponding to the value of the control information corresponding to the first behavior record; updating the corresponding times of the value of the control information corresponding to the first behavior record and the above target level, and if the corresponding times are greater than the second preset value, adjusting the second corresponding relationship. Among them, the first preset behavior may include, for example: the behavior of bringing the application programs other than the application program with the determined level to the foreground.
[0085] As an option, considering the situation of mis-triggering, the electronic device may further judge whether there is a third behavior record corresponding to the second preset behavior within a third preset time after the first behavior record according to the user behavior data; if it is determined that there is, using the specified level (such as level 0) as the target level corresponding to the value of the control information corresponding to the first behavior record; updating the corresponding times of the value of the control information corresponding to the first behavior record and the above target level, and if the corresponding times are greater than the second preset value, adjusting the second corresponding relationship. Among them, the second preset behavior may include, for example: the behavior of restoring the running states of the currently running application programs to the respective states of the application programs before the operation instruction corresponding to the finger movement information of the application program with the determined level is executed.
[0086] It should be understood that without departing from the teachings of the present application, the time lengths of the second preset time and the third preset time may be the same or different, and the time lengths of the second preset time and the third preset time can be set as needed, and the present application does not limit this.
[0087] Optionally, in the case where the corresponding times of the value of the control information corresponding to the first behavior record and the target level are greater than the second preset value, the step of the electronic device adjusting the second corresponding relationship may include, for example: judging whether the target level is a special level, if it is determined that it is, adjusting the second corresponding relationship to eliminate the value of the control information corresponding to the first behavior record in the second corresponding relationship, if it is determined that it is not, adjusting the second corresponding relationship so that the adjusted second corresponding relationship indicates that the value of the control information corresponding to the first behavior record corresponds to the target level.
[0088] For example, the control information includes the distance between the two devices, and the first behavior records an indication: at the first moment, the value of the distance between the two devices is 10 cm, and the electronic device controls the application of level 1 so that the application of level 1 executes the operation instruction of the finger motion information. If the second behavior records an indication within the second preset time after the first behavior is recorded: at the second moment, the electronic device adjusts the application of level 2 to the foreground based on the user instruction, then the electronic device can update the corresponding number of times 10 cm corresponds to the second level. If the corresponding number of times 10 cm corresponds to the second level reaches the second preset value, the second corresponding relationship is adjusted, and the adjusted second corresponding relationship indicates that 10 cm corresponds to the second level. If the third behavior records within the third preset time after the first behavior is recorded, it indicates: at the third moment, the electronic device restores the running state of each currently running application to the state of each application before the application with the determined level executes the operation instruction corresponding to the finger motion information, then the electronic device can update the corresponding number of times 10 cm corresponds to the 0th level. If the corresponding number of times 10 cm corresponds to the 0th level reaches the second preset value, the second corresponding relationship is adjusted, and the adjusted second corresponding relationship does not include 10 cm, that is, the finger motion information detected within the space range of 10 cm in the air distance will not trigger the application control method mentioned in this application.
[0089] It should be understood that without departing from the teachings of this application, the user behavior data may be analyzed in other ways to adjust the second corresponding relationship, and this application does not limit this.
[0090] In one embodiment of the present application, the electronic device archives the running state of the currently running application before the application with the determined level executes the operation instruction corresponding to the finger motion information. After the application with the determined level executes the operation instruction corresponding to the finger motion information, if the electronic device detects a rollback instruction, the running state of the currently running application is restored according to the archive. Considering the situation that the electronic device responds incorrectly due to user misoperation, the electronic device can be configured with a rollback function to reduce the impact of factors such as misoperation on the normal use of the electronic device.
[0091] For example, if the level corresponding to the control information is 2, the operation instruction corresponding to the finger movement information may be, for example, pause playback. After the level 2 application pauses playback, if the electronic device detects a rollback instruction, the level 2 application is controlled to continue playing.
[0092] As an option, after detecting the rollback instruction, the electronic device updates the rollback number. In this case, the step of the electronic device adjusting the second corresponding relationship according to the user behavior data may, for example, include: in response to the rollback number being greater than a threshold, adjusting the second corresponding relationship according to the user behavior data, wherein the user behavior data indicates the application that is transferred to the foreground after the rollback instruction is triggered. In other words, if the user is triggered. The process of adjusting the second corresponding relationship according to the user behavior data can be referred to the above description, which will not be repeated here.
[0093] It should be understood that without departing from the teachings of this application, the user can set the first correspondence and / or the second correspondence by operating the display interface of the display screen, or call the first correspondence and / or the second correspondence preset by default on the electronic device, and this application does not impose any restrictions on this.
[0094] The following takes the electronic device as a vehicle-mounted device as an example, and combines the application scenario to illustrate the application control method mentioned in this application.
[0095] For example, the finger motion information includes the sliding track of the finger indicating the user's touch or swipe operation, and the control information can be divided into three levels according to the value, namely level 1, level 2 and level 3. The application programs of the vehicle-mounted device may include navigation, radio and music applications, for example. The level of the application program opened first is lower than that of the application program opened later, and the lower the value of the level, the higher the level.
[0096] In an embodiment where the control information includes the distance between the finger and the display screen, the distance corresponding to the first level may be, for example, [a 11 , a 12 ], the distance corresponding to the second level can be, for example, (a 21 , a 22 ], the distance corresponding to the third level can be, for example, (a 31 , a 32 ], a 12 ≤a 21 , a 22 ≤a 31 .like Figure 2 As shown, the process of the vehicle-mounted device responding to the user operation may include, for example:
[0097] S201: The in-vehicle device detects that the music application has been brought to the foreground and adjusts the level of the music application; the music application monitors the touch screen or swipe screen operation of level 1 corresponding to the air distance.
[0098] Specifically, the user opens the music application through the display screen or voice operation. The in-vehicle device detects that the music application is opened, and the display screen displays the operation interface of the music application to adjust the level of the music application. For example, the level of the music application can be adjusted to 1. If it is detected that the user is at a distance of [a 11 , a 12 ] within the range of ], and the music application executes the operation instructions corresponding to the touch or swipe operation.
[0099] S202: The vehicle-mounted device detects that the radio is brought to the foreground and adjusts the levels of the music application and the radio; the radio monitors the touch screen operation or swiping operation of level 1 corresponding to the air distance, and the music application monitors the touch screen operation or swiping operation of level 2 corresponding to the air distance.
[0100] Specifically, after opening the music application, if the user turns on the radio, the display screen of the vehicle-mounted device displays the radio operation interface, and adjusts the levels of the music application and the radio. For example, the level of the music application can be adjusted to 2, and the level of the radio can be adjusted to 1. If the user is detected to be in the air distance of [a 11 , a 12 ] range, the radio application executes the corresponding operation instruction of the touch screen or screen swipe operation. 21 , a 22 ] within the range of ], and the music application executes the operation instructions corresponding to the touch or swipe operation.
[0101] For example, if the distance of touch screen operation belongs to [a 11 , a 12 ], the radio pauses or continues playing; if the distance of the left swipe operation is [a 11 , a 12 ], the radio switches to the next channel program; if the distance of the right swipe operation is [a 11 , a 12 ], the radio switches to the previous channel. If the distance of the touch screen operation is (a 21 , a 22 ], the music app pauses or continues playing; if the distance of the left swipe operation is (a 21 , a 22 ], the music app switches to the next song; if the distance of the right swipe operation is (a 21 , a 22 ], the music app switches to the previous song.
[0102] S203: The in-vehicle device detects that the navigation has been brought to the foreground, and adjusts the levels of the music application, radio, and navigation; the navigation monitors the touch screen operation or swiping operation of level 1 corresponding to the air distance, the radio monitors the touch screen operation or swiping operation of level 2 corresponding to the air distance, and the music application monitors the touch screen operation or swiping operation of level 3 corresponding to the air distance.
[0103] Specifically, if the user turns on the navigation, the display screen of the vehicle-mounted device displays the navigation operation interface, and adjusts the levels of the music application, radio, and navigation. For example, the level of the music application can be adjusted to 3, the level of the radio can be adjusted to 2, and the level of the navigation can be adjusted to 1. The hierarchical schematic diagram of the navigation operation interface 301, the radio operation interface 302, and the music application operation interface 303 is shown in FIG. Figure 3 If the user is detected to be in the air distance of [a 11 , a 12 ] range, the navigation system executes the corresponding operation instruction of the touch screen or swipe screen operation. 21 , a 22 ] range, the radio executes the corresponding operation instruction of the touch screen or screen swipe operation. 31 , a 32 ] within the range of ], and the music application executes the operation instructions corresponding to the touch or swipe operation.
[0104] For example, if the distance between touch or swipe is [a 11 , a 12 ], the navigation system executes the corresponding operation command of touch screen or swipe screen. If the distance of touch screen operation belongs to (a 21 , a 22 ], the radio pauses or continues playing; if the distance of the left swipe operation is (a 21 , a 22 ], the radio switches to the next channel program; if the distance of the right swipe operation is (a 21 , a 22 ], the radio switches to the previous channel. If the distance of the touch screen operation is (a 31 , a 32 ], the music app pauses or continues playing; if the distance of the left swipe operation is (a 31 , a 32 ], the music app switches to the next song; if the distance of the right swipe operation is (a 31 , a 32 ], the music app switches to the previous song.
[0105] In an embodiment where the control information includes the pressing intensity of a finger on the display screen, the pressing intensity corresponding to the first level may be, for example, [b 11 , b 12 , the pressing intensity corresponding to the second level may be, for example, (b 21 , b 22 , and the pressing intensity corresponding to the third level may be, for example, (b 31 , b 32 , b 12 ≤ b 21 , b 22 ≤ b 31 . As Figure 4 shown, the steps for the vehicle-mounted device to respond to the user operation may include, for example:
[0106] S401: The vehicle-mounted device detects that the music application is brought to the foreground and adjusts the level of the music application; the music application monitors the touch screen operation or swipe operation corresponding to the level of 1 for the pressing intensity.
[0107] Specifically, the user opens the music application through the display screen or voice operation, etc. The vehicle-mounted device detects that the music application is opened, the display screen displays the operation interface of the music application, and adjusts the level of the music application. For example, the level of the music application can be adjusted to 1. If it is detected that the pressing intensity of the user's touch screen or swipe operation belongs to [b 11 , b 12 , the music application executes the operation instruction corresponding to the touch screen or swipe operation.
[0108] S402: The vehicle-mounted device detects that the radio is brought to the foreground and adjusts the levels of the music application and the radio; the radio monitors the touch screen operation or swipe operation corresponding to the level of 1 for the pressing intensity, and the music application monitors the touch screen operation or swipe operation corresponding to the level of 2 for the pressing intensity.
[0109] Specifically, after the music application is opened, if the user opens the radio, the display screen of the vehicle-mounted device displays the operation interface of the radio, and adjusts the levels of the music application and the radio. For example, the level of the music application can be adjusted to 2, and the level of the radio can be adjusted to 1. If it is detected that the pressing intensity of the user's touch screen or swipe operation belongs to [b 11 , b 12 , the radio executes the operation instruction corresponding to the touch screen or swipe operation. If it is detected that the pressing intensity of the user's touch screen or swipe operation belongs to (b 21 , b 22 , the music application executes the operation instruction corresponding to the touch screen or swipe operation.
[0110] For example, if the pressing intensity of the touch screen operation belongs to [b 11 , b 12, the radio pauses or resumes playing; if the pressing intensity of the left - swiping operation belongs to [b 11 , b 12 , the radio switches to the next channel program; if the pressing intensity of the right - swiping operation belongs to [b 11 , b 12 , the radio switches to the previous channel program. If the pressing intensity of the touch - screen operation belongs to (b 21 , b 22 , the music application pauses or resumes playing; if the pressing intensity of the left - swiping operation belongs to (b 21 , b 22 , the music application switches to the next song; if the pressing intensity of the right - swiping operation belongs to (b 21 , b 22 , the music application switches to the previous song.
[0111] S403: The in - vehicle device detects that the navigation is brought to the foreground and adjusts the levels of the music application, radio, and navigation; the navigation listens for touch - screen or swiping operations with a pressing intensity corresponding to level 1, the radio listens for touch - screen or swiping operations with a pressing intensity corresponding to level 2, and the music application listens for touch - screen or swiping operations with a pressing intensity corresponding to level 3.
[0112] Specifically, if the user opens the navigation, the display screen of the in - vehicle device shows the operation interface of the navigation, and the levels of the music application, radio, and navigation are adjusted. For example, the level of the music application can be adjusted to 3, the level of the radio can be adjusted to 2, and the level of the navigation can be adjusted to 1. If it is detected that the pressing intensity of the user's touch - screen or swiping operation belongs to [b 11 , b 12 , the navigation executes the operation instruction corresponding to the touch - screen or swiping operation. If it is detected that the pressing intensity of the user's touch - screen or swiping operation belongs to (b 21 , b 22 , the radio executes the operation instruction corresponding to the touch - screen or swiping operation. If it is detected that the pressing intensity of the user's touch - screen or swiping operation belongs to (b 31 , b 32 , the music application executes the operation instruction corresponding to the touch - screen or swiping operation.
[0113] For example, if the pressing intensity of the touch - screen or swiping operation belongs to [b 11 , b 12 , the navigation executes the operation instruction corresponding to the touch - screen or swiping operation. If the pressing intensity level of the touch - screen operation is 2, the radio pauses or resumes playing; if the pressing intensity of the left - swiping operation belongs to (b 21 , b 22 , the radio switches to the next channel program; if the pressing intensity of the right - swiping operation belongs to (b 21 , b22 , the radio switches to the previous channel program. If the pressing intensity of the touch screen operation belongs to (b 31 , b 32 , the music application pauses or resumes playback; if the pressing intensity of the left swipe screen operation belongs to (b 31 , b 32 , the music application switches to the next song; if the pressing intensity of the right swipe screen operation belongs to (b 31 , b 32 , the music application switches to the previous song.
[0114] In an embodiment where the control information includes the number of fingers, the number of fingers corresponding to the first level is, for example, 1, the number of fingers corresponding to the second level is, for example, 2, and the number of fingers corresponding to the third level is, for example, 3. As Figure 5 shown, the steps for the in-vehicle device to respond to the user operation may, for example, include:
[0115] S501: The in-vehicle device detects that the music application is brought to the foreground and adjusts the level of the music application; the music application monitors the touch screen operation or the swipe screen operation corresponding to the level of 1 for the number of fingers.
[0116] Specifically, the user opens the music application through the display screen or voice operation, etc. The in-vehicle device detects that the music application is opened, the display screen displays the operation interface of the music application, and adjusts the level of the music application. For example, the level of the music application can be adjusted to 1. If the number of fingers performing the touch screen or swipe screen operation is detected to be 1, the music application executes the operation instruction corresponding to the touch screen or swipe screen operation.
[0117] S502: The in-vehicle device detects that the radio is brought to the foreground and adjusts the levels of the music application and the radio; the radio monitors the touch screen operation or the swipe screen operation corresponding to the level of 1 for the number of fingers, and the music application monitors the touch screen operation or the swipe screen operation corresponding to the level of 2 for the number of fingers.
[0118] Specifically, after the music application is opened, if the user opens the radio, the display screen of the in-vehicle device displays the operation interface of the radio, and adjusts the levels of the music application and the radio. For example, the level of the music application can be adjusted to 2, and the level of the radio can be adjusted to 1. If the number of fingers performing the touch screen or swipe screen operation is detected to be 1, the radio executes the operation instruction corresponding to the touch screen or swipe screen operation. If the number of fingers performing the touch screen or swipe screen operation is detected to be 2, the music application executes the operation instruction corresponding to the touch screen or swipe screen operation.
[0119] For example, if the number of fingers performing the touch screen operation is 1, the radio pauses or continues playing; if the number of fingers performing the left swipe operation is 1, the radio switches to the next channel program; if the number of fingers performing the right swipe operation is 1, the radio switches to the previous channel program. If the number of fingers performing the touch screen operation is 2, the music application pauses or continues playing; if the number of fingers performing the left swipe operation is 2, the music application switches to the next song; if the number of fingers performing the right swipe operation is 2, the music application switches to the previous song.
[0120] S503: The in-vehicle device detects that the navigation has been brought to the foreground, and adjusts the levels of the music application, radio, and navigation; the navigation monitors the number of fingers corresponding to the touch screen operation or swiping operation at level 1, the radio monitors the number of fingers corresponding to the touch screen operation or swiping operation at level 2, and the music application monitors the number of fingers corresponding to the touch screen operation or swiping operation at level 3.
[0121] Specifically, if the user turns on the navigation, the display screen of the vehicle-mounted device displays the navigation operation interface, and adjusts the levels of the music application, radio, and navigation. For example, the level of the music application can be adjusted to 3, the level of the radio can be adjusted to 2, and the level of the navigation can be adjusted to 1. If the number of fingers detected performing a touch screen or swiping operation is 1, the navigation executes the operation instruction corresponding to the touch screen or swiping operation. If the number of fingers detected performing a touch screen or swiping operation is 2, the radio executes the operation instruction corresponding to the touch screen or swiping operation. If the number of fingers detected performing a touch screen or swiping operation is 3, the music application executes the operation instruction corresponding to the touch screen or swiping operation.
[0122] For example, if you touch or swipe the screen with one finger, the navigation will execute the corresponding operation command. If you touch the screen with two fingers, the radio will pause or continue playing; if you swipe left with two fingers, the radio will switch to the next channel program; if you swipe right with two fingers, the radio will switch to the previous channel program. If you touch the screen with three fingers, the music app will pause or continue playing; if you swipe left with three fingers, the music app will switch to the next song; if you swipe right with three fingers, the music app will switch to the previous song.
[0123] It should be understood that the above examples are only for illustration, and the control information may also include, for example, the movement speed of the finger or the touch area operated by the finger on the display screen, and its implementation process can refer to the implementation process of the control information including the air distance or the pressing strength or the number of fingers.
[0124] It should be understood that the parameters included in the finger motion information are different from the parameters included in the control information. For example, if the finger motion information includes the sliding speed of the finger, the control information may include, for example, the distance between the finger and the display screen, the pressure of the finger on the display screen, the number of fingers, and at least one of the touch areas where the finger operates on the display screen. If the finger motion information includes the sliding trajectory of the finger or the movement acceleration of the finger, the control information may include, for example, the distance between the finger and the display screen, the pressure of the finger on the display screen, the number of fingers, the movement speed of the finger, and at least one of the touch areas where the finger operates on the display screen. This application is not limited to this.
[0125] The step division of the above methods is only for the purpose of clear description. When implemented, they can be combined into one step or some steps can be split and decomposed into multiple steps. As long as they include the same logical relationship, they are all within the scope of protection of this patent; adding insignificant modifications to the algorithm or process or introducing insignificant designs without changing the core design of the algorithm and process are all within the scope of protection of this patent.
[0126] The embodiments of the present application also provide an electronic device, for example, a vehicle-mounted device, or other devices (such as a server, a cloud server, etc.) that are communicatively connected to the vehicle-mounted device. Figure 6 As shown, the electronic device includes: at least one processor 601; and a memory 602 that is communicatively connected to the at least one processor 601; wherein the memory stores instructions that can be executed by the at least one processor 601, and the instructions are executed by the at least one processor 601 so that the at least one processor 601 can execute the application control method of the vehicle-mounted device mentioned in the above embodiment.
[0127] The memory 602 and the processor 601 are connected in a bus manner, and the bus may include any number of interconnected buses and bridges, and the bus connects various circuits of one or more processors 601 and the memory 602 together. The bus can also connect various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface between the bus and the transceiver. The transceiver can be one element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on a transmission medium. The data processed by the processor 601 is transmitted on a wireless medium via an antenna, and further, the antenna also receives data and transmits the data to the processor 601.
[0128] The processor 601 is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management, and other control functions. The memory 602 can be used to store data used by the processor 601 when executing operations.
[0129] In one embodiment, the electronic device can be, for example, a vehicle-mounted device. The structural schematic diagram of the vehicle-mounted device is as Figure 7 shown, including: an operating system 701, a communication module 702, a contactor / motion feedback module 703, a graphics module 704, application programs 705, a storage controller 706, a central processing unit 707, a peripheral interface 708, an input / output subsystem 709, a radio frequency circuit 710, an external interface 711, and an audio circuit 712. The input / output subsystem 709 includes a distance sensing controller 7091 and other input device controllers 7092 to process the data detected by the distance sensor 713 and other input devices 714, respectively. Among them, the storage controller 706 can maintain information such as the levels of various application programs stored in the memory according to the instructions of the central processing unit 707. The central processing unit 707 interacts with modules such as the contactor / motion feedback module 703 and the input / output subsystem 709 to obtain control information and finger movement information, and based on the obtained control information and finger movement information, controls the application programs 705 through the application program control method mentioned in the embodiments of the present application.
[0130] The embodiments of the present application also provide a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it implements the application program control method of the vehicle-mounted device mentioned in the above embodiments.
[0131] That is, those skilled in the art can understand that all or part of the steps in the above method embodiments can be completed by instructing relevant hardware through a program. The program is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, a chip, etc.) or a processor to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: various media that can store program codes such as USB flash drives, mobile hard disks, read-only memories, random access memories, magnetic disks, or optical discs.
[0132] The above description is only for the embodiments of the present application and the explanation of the applied technical principles. Those skilled in the art should understand that the scope of protection involved in the present application is not limited to the technical solutions formed by the specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the technical concept. For example, the technical solutions formed by mutually replacing the above features with the (but not limited to) technical features with similar functions disclosed in the present application.
Claims
1. A method for controlling an application program of an electronic device, comprising: Get finger movement information and control information; Determine the operation instruction corresponding to the finger motion information according to the finger motion information and the first corresponding relationship between the finger motion information and the operation instruction; Determining the level corresponding to the control information according to the control information and a second correspondence between the control information and the level; as well as Controlling the application program with the determined level to execute the operation instruction; The method further includes: after executing the operation instruction, adjusting the second corresponding relationship according to the user behavior data; The adjusting the second corresponding relationship according to the user behavior data includes: Searching the user behavior data for a first behavior record corresponding to the application program executing the operation instruction having the determined level; Determine whether there is a second behavior record corresponding to the first preset behavior within a second preset time after the first behavior record; if it is determined that there is, analyze the second behavior record to obtain the level of the background application that is transferred to the foreground, and use it as the target level corresponding to the value of the control information corresponding to the first behavior record; Update the first behavior record's corresponding value of the control information and the number of corresponding times of the target level, and if the corresponding number is greater than a second preset value, adjust the second corresponding relationship, wherein the first preset behavior includes: bringing the application except the application with the determined level to the foreground.
2. The application program control method according to claim 1, wherein, The electronic device is provided with a display screen, and the control information includes: the distance between the finger and the display screen, the pressing strength of the finger on the display screen, the number of fingers, the moving speed of the finger, and at least one of the touch areas operated by the finger on the display screen.
3. The application program control method according to claim 1, wherein, The level of the application is determined according to the startup order of the application; or, The level of the application is determined according to the order in which the application is brought to the foreground; or, The level of the application is a preset level.
4. The application program control method according to claim 3, wherein, The application control method further includes: Archive the running status of currently running applications; After executing the operation instruction, if a rollback instruction is detected, the running state of the currently running application is restored according to the archive.
5. The application program control method according to claim 4, wherein, The application control method further includes: After the rollback instruction is detected, the rollback count is updated; The step of adjusting the second corresponding relationship according to the user behavior data includes: In response to the number of rollbacks being greater than a threshold, the second corresponding relationship is adjusted according to the user behavior data, wherein the user behavior data indicates an application that is brought to the foreground after the rollback instruction is triggered.
6. The application program control method according to any one of claims 1 to 5, wherein, The application control method further includes: In response to the query instruction, the level information of the currently running application is fed back.
7. The application program control method according to claim 6, wherein, The feedback of the level information of the currently running application program includes: Displaying the level information of the currently running application program on the display screen of the electronic device; or, The voice plays the level information of the currently running application.
8. The application program control method according to any one of claims 1 to 5, wherein, The steps of controlling an application program with a determined level to execute the operation instruction include: Publishing the operation instruction to a specified port of the electronic device that is listened to by the currently running application program, and the level of the operation instruction is the level corresponding to the control information; In response to the currently running application program listening to the operation instruction and determining that the level of the operation instruction is the same as its own level, execute the operation instruction.
9. The application program control method according to any one of claims 1 to 5, wherein The steps of controlling an application program with a determined level to execute the operation instruction include: According to the level corresponding to the control information and the levels of each application program, transmit the operation instruction to the application program with a determined level, so that the application program with a determined level executes the operation instruction.
10. The application program control method according to any one of claims 1 to 5, wherein, The second correspondence indicates the value range of the control information corresponding to each level, and there is an intersection between the value ranges of the control information corresponding to two adjacent levels; The steps of determining the level corresponding to the control information according to the control information and the second correspondence include: Determining candidate levels according to the control information and the second correspondence; In response to the number of candidate levels being greater than 1, select one of the candidate levels as the level corresponding to the control information according to the user's selection information or a preset selection rule; In response to the number of candidate levels being equal to 1, use the candidate level as the level corresponding to the control information.
11. The application program control method according to any one of claims 1 to 5 further includes: After detecting a change in the foreground running application program, update the level corresponding to the currently running application program.
12. An electronic device, wherein, including: At least one processor; and, A memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the application program control method of the electronic device according to any one of claims 1 to 11.
13. A computer-readable storage medium stores a computer program, wherein, When the computer program is executed by a processor, it implements the application program control method of the electronic device according to any one of claims 1 to 11.
Citation Information
Patent Citations
Terminal apparatus screen unlocking method and device and terminal device
CN109032675A
Handheld electronic devices with remote control functionality and gesture recognition
US20090153288A1