Application control method and device, equipment, storage medium and program product
Selecting a custom or default method to set the startup status of the application through the interface, generating and sending instructions to control the working mode of applications between devices, solving the problem of application management in the prior art, and realizing flexible and fast control of the application and user experience Improvement.
Patent Information
- Application Number
- CN202411109883.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-13
- Publication Date
- 2024-11-26
Smart Images

Figure CN119025207A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, specifically to the field of artificial intelligence technology such as deep learning, and in particular to a method, device, electronic device, storage medium and program product for controlling applications. Background Art
[0002] With the rapid development of the Internet, people's demands are increasing, and there are more and more applications. The numerous applications will also cause troubles to users, and achieving control over applications has become an urgent problem to be solved. Summary of the invention
[0003] The embodiments of the present disclosure provide a method, an apparatus, an electronic device, a computer-readable storage medium, and a computer program product for controlling an application, which can realize the control of the application.
[0004] In a first aspect, an embodiment of the present disclosure proposes a method for controlling an application, which is applied to a first device, comprising: in response to obtaining an operation to start a first working mode, displaying a first interface, and obtaining a setting method for prohibiting the application from starting through the first interface; in response to the setting method being a custom method, displaying a first window including application information, setting a first application selected in the first window based on the application information to a start-up allowed state, and setting applications other than the first application to a start-up prohibited state; in response to the setting method being a default method, setting a second application associated with the first working mode in the pre-set default information to a start-up allowed state, and setting applications other than the second application to a start-up prohibited state.
[0005] In a possible implementation, the method provided by the first aspect also includes: when the setting method for prohibiting the startup of an application obtained through the first interface is a custom method, sending a first indication message to the second device; wherein the first indication message is used to indicate that the first application in the second device is set to an allowed startup state, and the applications other than the first application in the second device are set to a prohibited startup state; when the setting method for prohibiting the startup of an application obtained through the first interface is a default method, sending a second indication message to the second device; wherein the second indication message is used to indicate that the second application associated with the first working mode in the default information is set to an allowed startup state, and the applications other than the second application are set to a prohibited startup state.
[0006] In one possible implementation, the method provided in the first aspect also includes: obtaining an operation of starting a second operating mode of the second device; sending third indication information to the second device; wherein the third indication information is used to indicate that a third application in the second device is set to an allowed startup state, and that applications other than the third application are set to a prohibited startup state.
[0007] In one possible implementation, generating the third indication information includes: in response to obtaining an operation of starting the second operating mode of the second device, displaying a second interface, and obtaining a setting method for prohibiting the startup of an application through the second interface; in response to the setting method being a custom method, displaying a second window including application information, obtaining an operation of selecting a third application based on the application information in the second window, and generating the third indication information; or, in response to the setting method being a default method, generating the third indication information based on the default information; wherein the default information includes an association between the second operating mode and the third application.
[0008] In a possible implementation, the method provided in the first aspect further includes: in response to receiving a first operation to display an application interface of a first application in a second device, if the first application has been set to a startup prohibited state, discarding data of the first operation.
[0009] In one possible implementation, the method provided in the first aspect also includes: detecting that the second device receives a second operation from a third device to display an application interface of a first application in the third device; determining whether the first application is configured to be in a prohibited startup state in the second device, and if so, discarding data of the second operation.
[0010] In one possible implementation, the method provided in the first aspect also includes: in response to obtaining an operation to shut down a startup function, setting a startup flag to prohibit startup and setting all applications to a prohibited startup state; in response to receiving a startup operation, discarding data of the startup operation based on the startup flag being prohibit startup.
[0011] In one possible implementation, the method provided in the first aspect also includes: before setting the startup flag to prohibit startup, saving the current working mode and the current startup status of the application as first information; in response to obtaining an operation to turn on the startup function, setting the startup flag to allow startup, and restoring the working mode and the startup status of the application based on the first information.
[0012] In one possible implementation, the method provided in the first aspect also includes: in response to obtaining a restart operation, saving the current working mode and the current startup state of the application as first information, and setting the startup flag to allow startup; in response to powering on, restoring the working mode and the startup state of the application based on the first information.
[0013] In a second aspect, an embodiment of the present disclosure proposes a device for controlling an application, comprising: a first acquisition module, configured to display a first interface in response to obtaining an operation to start a first working mode, and to obtain a setting method for prohibiting the application from starting through the first interface. A first setting module, configured to display a first window including application information in response to the setting method being a custom mode, set a first application selected in the first window based on the application information to a start-allowed state, and set applications other than the first application to a start-prohibited state. A second setting module, configured to set a second application associated with the first working mode in the pre-set default information to a start-allowed state in response to the setting method being a default mode, and set applications other than the second application to a start-prohibited state.
[0014] In a possible implementation, the apparatus provided in the second aspect further includes: a first sending module, configured to send a first indication message to a second device when the setting mode for prohibiting the application from starting obtained through the first interface is the custom mode; wherein the first indication message is used to indicate that the first application in the second device is set to an allowed start-up state, and the applications other than the first application in the second device are set to a prohibited start-up state. A second sending module, configured to send a second indication message to the second device when the setting mode for prohibiting the application from starting obtained through the first interface is the default mode; wherein the second indication message is used to indicate that the second application associated with the first working mode in the default information is set to an allowed start-up state, and the applications other than the second application are set to a prohibited start-up state.
[0015] In a possible implementation, the apparatus provided in the second aspect further includes: a second acquisition module configured to obtain an operation of starting the second working mode of the second device. A third sending module configured to send third indication information to the second device; wherein the third indication information is used to indicate that a third application in the second device is set to an allowed startup state, and that applications other than the third application are set to a prohibited startup state.
[0016] In one possible implementation, the device provided by the second aspect also includes: a first generating module, configured to generate the third indication information including: in response to obtaining an operation of starting the second working mode of the second device, displaying a second interface, and obtaining a setting method for prohibiting the startup of an application through the second interface; in response to the setting method being a custom method, displaying a second window including the application information, obtaining an operation of selecting a third application based on the application information in the second window, and generating the third indication information; or, in response to the setting method being a default method, generating the third indication information based on the default information; wherein the default information includes an association between the second working mode and the third application.
[0017] In a possible implementation, the apparatus provided by the second aspect also includes: a first discarding module, configured to, in response to receiving a first operation of displaying an application interface of a first application in a second device, discard data of the first operation if the first application has been set to a disabled startup state.
[0018] In a possible implementation, the apparatus provided in the second aspect further includes: a detection module configured to detect that the second device receives a second operation from a third device to display an application interface of a first application in the third device. A second discarding module configured to determine whether the first application is configured to be disabled in the second device, and if so, discard the data of the second operation.
[0019] In a possible implementation, the apparatus provided in the second aspect further includes: a third setting module configured to, in response to obtaining an operation to turn off the startup function, set the startup flag to prohibit startup and set all applications to a prohibit startup state. A third discarding module configured to, in response to receiving a startup operation, discard data of the startup operation based on the startup flag being prohibit startup.
[0020] In a possible implementation, the apparatus provided in the second aspect further includes: a saving module configured to save the current working mode and the current startup state of the application as first information before setting the startup flag to prohibit startup. A first recovery module configured to, in response to obtaining an operation to enable the startup function, set the startup flag to allow startup, and restore the working mode and the startup state of the application based on the first information.
[0021] In a possible implementation, the apparatus provided in the second aspect further includes: a fourth setting module configured to save the current working mode and the current startup state of the application as first information in response to obtaining a restart operation, and set the startup flag to allow startup. A second recovery module configured to restore the working mode and the startup state of the application based on the first information in response to powering on.
[0022] In a third aspect, an embodiment of the present disclosure provides an electronic device, comprising: 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 implement the method of controlling an application as described in any implementation method in the first aspect when executing the instructions.
[0023] In a fourth aspect, an embodiment of the present disclosure provides a non-transitory computer-readable storage medium storing computer instructions, which are used to enable a computer to implement the method of controlling an application as described in any implementation manner in the first aspect when executed.
[0024] In a fifth aspect, an embodiment of the present disclosure provides a computer program product comprising a computer program, which, when executed by a processor, can implement the method for controlling an application as described in any implementation manner in the first aspect.
[0025] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description.
[0026] In the method for controlling applications provided by the embodiments of the present disclosure, when it is desired to set applications that are allowed to be started and applications that are not allowed to be started in the first working mode, the desired setting method can be flexibly selected through the first interface, and when setting based on the custom method, the desired applications and the prohibited applications can be flexibly and quickly selected, and the application control can be quickly set based on the default method. In this way, the application control can be set flexibly and quickly. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Other features, objects and advantages of the present disclosure will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:
[0028] Figure 1 is an exemplary system architecture in which the present disclosure may be applied;
[0029] Figure 2 A flowchart of a method for controlling an application provided by an embodiment of the present disclosure;
[0030] Figure 3 A flowchart of another method for controlling an application provided by an embodiment of the present disclosure;
[0031] Figure 4 A flowchart of another method for controlling an application provided in an embodiment of the present disclosure;
[0032] Figure 5 A structural block diagram of a device for controlling an application provided in an embodiment of the present disclosure;
[0033] Figure 6 A schematic diagram of the structure of an electronic device suitable for executing a method for controlling an application provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0034] In order to better understand the present application, a more detailed description will be made of various aspects of the present application 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 are not intended to 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.
[0035] It should be understood that expressions such as "include", "including", "have", "contain" and / or "including" in this specification are open rather than closed expressions, which indicate 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 expressions such as "at least one of..." appear after a list of listed features, they modify the entire list of features rather than just the individual elements in the list. In addition, when describing embodiments of the present application, "may" is used to mean "one or more embodiments of the present application". And, the term "exemplary" is intended to refer to an example or illustration.
[0036] Unless otherwise specified, all words (including engineering terms and scientific and technological terms) used in this article have the same meaning as those commonly understood by ordinary technicians in the field 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 the same meaning as their meaning in the context of the relevant technology, and should not be interpreted in an idealized or overly formal sense.
[0037] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. In addition, unless explicitly limited or contradictory to the context, the specific steps included in the method described in the present application are not necessarily limited to the order described, but can be performed in any order or in parallel. The present application will be described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
[0038] Figure 1 An exemplary system architecture 100 is shown to which embodiments of the method, apparatus, electronic device, and computer-readable storage medium for controlling an application of the present disclosure may be applied.
[0039] like Figure 1 As shown, the system architecture 100 may include a first device 101, and may also include a second device 102 and / or a third device 103. The first device 101, the second device 102, and the third device 103 may be connected via a network. The network is used to provide a medium for a communication link between the first device 101, the second device 102, and the third device 1035. The network may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.
[0040] The first device 101, the second device 102 and the third device 103 can be hardware or software. When the first device 101, the second device 102 and the third device 103 are hardware, they can be various electronic devices, including but not limited to vehicle-mounted devices, central control screens, co-pilot screens, rear screens, vehicle systems, smart phones, tablet computers, laptop computers, and desktop computers, etc.; when the first device 101, the second device 102 and the third device 103 are software, they can be installed in the electronic devices listed above, which can be implemented as multiple software or software modules, or as a single software or software module, which is not specifically limited here.
[0041] Please refer to Figure 2 , Figure 2 A flowchart of a method for controlling an application provided in an embodiment of the present disclosure is applied to a first device, wherein process 200 includes the following steps:
[0042] Step 201: In response to obtaining an operation of starting a first working mode, a first interface is displayed, and a setting method for prohibiting the application from starting is obtained through the first interface.
[0043] In this embodiment, the execution subject may display a first interface in response to obtaining an operation to start the first working mode, and obtain a setting method for prohibiting the application from starting through the first interface.
[0044] Exemplarily, the first working mode may refer to the working mode of the application, such as whether the application is turned on. The working mode of the application (or application working mode) includes but is not limited to: safety mode, child mode, passenger mode and privacy mode. For example, the safety mode may be a mode to prevent the driver from being disturbed while driving, such as prohibiting the launch of certain applications for driving safety during the driving of the car. The child mode may be to prevent children from being addicted to games, etc., and prohibit the launch of certain applications. The passenger mode may be to restrict passengers from launching certain applications. The privacy mode may be to prohibit the launch of certain privacy applications.
[0045] Exemplarily, the operation of starting the first working mode can be obtained based on touching the screen of the first device, pressing a hardware button combination of the first device, and / or voice control.
[0046] Optionally, the first interface may display a setting method for prohibiting the application from starting, and the user may set the setting method for prohibiting the application from starting based on the first interface. The setting method for prohibiting the application from starting may include a custom method and a default method.
[0047] Step 202: In response to the setting mode being the custom mode, displaying a first window including application information, setting a first application selected based on the application information in the first window to an allowed startup state, and setting applications other than the first application to a prohibited startup state.
[0048] In this embodiment, the customized mode may mean that the user can customize the working modes of various applications. The above-mentioned execution entity can, in response to the setting mode being the customized mode, display a first window including application information, set one or more first applications selected in the first window based on the application information to an allowed startup state, and set applications other than the first application to a prohibited startup state.
[0049] In the present disclosure, launching an application may include launching the application in various ways such as clicking, voice control, etc.
[0050] Optionally, the application information may include an application icon and / or an application category option. For example, the application category may include but is not limited to: tools, games, navigation, entertainment, and shopping. The application category option may be displayed in the first window in the form of text or category images, and an application category option may include one or more applications.
[0051] Optional, Figure 2 The provided method may further include: the execution subject may classify the application based on the purpose and / or name information of the application to obtain the application category options. For example, the types of applications may be recorded, such as games, navigation, entertainment, and shopping. Optionally, the execution subject may classify the new application based on the purpose and / or name information of the new application in response to the installation of the new application to obtain the updated application category options. The application may be classified when the application is installed.
[0052] In some embodiments, the application information includes an application icon, and setting the first application selected in the first window based on the application information to the start-up allowed state in the above step 202 may include: setting the first application whose application icon is selected in the first window to the start-up allowed state. In this way, the user can select the application icon that he wants to set to the start-up allowed state, and the above execution subject sets the application corresponding to the application icon selected by the user to the start-up allowed state.
[0053] In some embodiments, the application information includes an application category option, and setting the first application selected in the first window based on the application information to the allowed startup state in the above step 202 may include: setting the application corresponding to the application category option selected in the first window to the allowed startup state. In this way, the user can directly select a certain category or several categories of applications, and set the applications belonging to these categories to the allowed startup state, thereby improving setting efficiency.
[0054] Step 203: In response to the setting mode being the default mode, the second application associated with the first working mode in the preset default information is set to be in the start-up allowed state, and the applications other than the second application are set to be in the start-up prohibited state.
[0055] In this embodiment, the above-mentioned execution entity can set one or more second applications associated with the first working mode in the local pre-set default information to an allowed startup state in response to the setting mode being the default mode, and set applications other than one or more second applications to a prohibited startup state.
[0056] Optionally, the pre-set default information may be set before the first device leaves the factory, or may be set by the user before starting the first working mode, for example, it may be obtained by the user adjusting the factory default information, or adjusting the previous default information.
[0057] Optionally, the default information may be used to indicate applications that are allowed to be started in different working modes, and the default information may include an association between the working mode and the application, and / or an association between the working mode and different categories of applications. The number of second applications is multiple, and the multiple second applications include the second category application associated with the first working mode in the default information.
[0058] Taking the safety mode as an example, the default information includes the association between the safety mode and the navigation application, and the association between the safety mode and the music application, and the plurality of second applications include the navigation application and the music application.
[0059] In the method for controlling applications provided by the embodiments of the present disclosure, when it is desired to set applications that are allowed to be started and applications that are not allowed to be started in the first working mode, the desired setting method can be flexibly selected through the first interface, and when setting based on the custom method, the desired applications and the prohibited applications can be flexibly and quickly selected, and the application control can be quickly set based on the default method. In this way, the application control can be set flexibly and quickly.
[0060] Please refer to Figure 3 , Figure 3A flowchart of a method for controlling an application provided in an embodiment of the present disclosure is applied to a first device, wherein process 300 includes the following steps 301-302, and steps 301-302 can be used in combination with the above steps 201-203.
[0061] Step 301: When the setting mode for obtaining the prohibition of starting an application through the first interface is a customized mode, first indication information is sent to the second device.
[0062] In this embodiment, after the first device obtains the operation of starting the first working mode, it can also send an instruction message to the associated device (such as the second device) to instruct the associated device to start the first working mode. For example, assuming that the first device is a car system, the second device can be a central control screen, a co-pilot screen, or a rear screen. Assuming that the first device is a central control screen, the second device can be a co-pilot screen or a rear screen. Of course, the first device can also be a co-pilot screen, and the second device can be a central control screen or a rear screen.
[0063] Exemplarily, the first indication information may be used to indicate that the first application in the second device is set to be in the start-up allowed state, and that applications other than the first application in the second device are set to be in the start-up prohibited state.
[0064] The execution subject may generate first indication information according to the operation of selecting the first application based on the application information in the first window, and send the first indication information to the second device, instructing the second device to set the applications allowed to be started and the applications prohibited to be started in the same way, so that the second device starts the first working mode, when the setting mode of obtaining the application prohibited to be started through the first interface is a custom mode. After receiving the first indication information, the second device sets the applications allowed to be started and the applications prohibited to be started according to the first indication information, and starts the first working mode.
[0065] Step 302: When the setting mode of obtaining the prohibition of starting the application through the first interface is the default mode, second indication information is sent to the second device.
[0066] Exemplarily, the second indication information may be used to indicate that the second application associated with the first working mode in the default information is set to an allowed startup state, and that applications other than the second application are set to a prohibited startup state.
[0067] In this embodiment, if the execution subject obtains that the user wants to set the first working mode in a default manner, the second indication information is generated based on the default information to instruct the second device to set the applications that are allowed to be started and the applications that are prohibited from being started, so that the second device starts the first working mode. After receiving the second indication information, the second device sets the applications that are allowed to be started and the applications that are prohibited from being started according to the second indication information, and starts the first working mode.
[0068] In this way, when the first device starts the first working mode, it can directly instruct the second device in the vehicle system to start the first working mode with the same settings, thereby quickly completing the configuration of the devices in the entire space.
[0069] Please refer to Figure 4 , Figure 4 A flowchart of a method for controlling an application provided in an embodiment of the present disclosure is applied to a first device, wherein process 400 includes the following steps 401-402, and steps 401-402 can be used in combination with the above steps 201-203 or can be used alone.
[0070] Step 401: Obtain an operation of starting a second working mode of a second device.
[0071] In this embodiment, it is possible to set the application working mode of the second device on the first device. For example, the operation of starting the second working mode of the second device can be obtained based on touching the screen of the first device, pressing a hardware button combination of the first device, and / or voice control.
[0072] Optionally, the second working mode may be the same as or different from the first working mode.
[0073] Exemplarily, the operation of starting the second working mode of the second device can be obtained based on touching the screen of the first device, pressing a hardware button combination of the first device, and / or voice control.
[0074] Step 401: Send third indication information to the second device.
[0075] Exemplarily, the third indication information may be used to indicate that a third application in the second device is set to be in a startup-allowed state, and that applications other than the third application are set to be in a startup-prohibited state.
[0076] In this embodiment, after receiving the operation of starting the second working mode of the second device, the first device can instruct the second device to set the third application to the allowed start state and set the applications other than the third application to the prohibited start state. After receiving the third indication information, the second device sets the applications allowed to start and the applications prohibited to start based on the third indication information to start the second working mode.
[0077] In this way, the application working mode of the second device can be set through the first device. The application working mode can be the same as or different from the application working mode of the first device, which makes the configuration of devices in the entire space more convenient. For example, through the above method, the driver can use the central control screen to configure the application working mode of the rear screen. The driver does not need to move to the back row for configuration, and can complete the configuration of the devices in the entire space simply and quickly, thereby improving the user experience.
[0078] In some embodiments, the first device generating the third indication information may include: in response to obtaining an operation of starting the second working mode of the second device, displaying the second interface, and obtaining the setting method of prohibiting the application from starting through the second interface. In response to the setting method being a custom method, displaying a second window including application information, obtaining an operation of selecting a third application based on the application information in the second window, and generating the third indication information. Alternatively, in response to the setting method being a default method, generating the third indication information based on the default information.
[0079] Optionally, the second interface may display a setting method for prohibiting the application from starting, and the user may set the setting method for prohibiting the application from starting based on the second interface. The setting method for prohibiting the application from starting may include a custom method and a default method. The specific implementation methods of the custom method, the default method, the application information, and the default information may refer to the corresponding description in the above step 202, which will not be repeated here.
[0080] Optionally, the application information includes an application icon and / or an application category option, and the operation of obtaining the third application selected in the second window based on the application information may include: selecting the application icon and / or selecting the application category option in the second window. Referring to the configuration of the application working mode of the first device in a customized manner as described in the above step 202, the application working mode of the second device may be configured in a similar customized manner on the first device.
[0081] Optionally, the default information may include an association relationship between the second working mode and the third application. Based on the default information, third indication information is generated to instruct the second device to set the third application to a start-allowed state and to set applications other than the third application to a start-prohibited state.
[0082] In some embodiments, the method provided by the present disclosure may further include: sending first notification information to the second device, and receiving first response information from the second device.
[0083] Exemplarily, the first notification information can be used to notify the start of the first working mode or the second working mode, and the first response information can be used to indicate that the second device allows the first working mode or the second working mode to be started. The first notification information and the first response information can also be used to detect the communication connection between the first device and the second device, and receiving the first response information indicates that the communication is normal.
[0084] For example, before sending indication information (such as the first indication information, the second indication information or the third indication information mentioned above) to the second device, the first device may send a first notification message to the second device, and after receiving the first response information, send an indication message again to instruct the second device to configure the applications that are allowed to be launched and the applications that are prohibited from being launched, and the configuration of the application mode can be successfully completed.
[0085] In some embodiments, the method provided by the present disclosure may further include: in response to receiving a first operation to display an application interface of a first application in a second device, if the first application has been set to a disabled startup state, discarding data of the first operation.
[0086] For example, the first operation may be a screen casting operation or a screen sharing operation, such as an operation of casting or sharing the application interface of the first application in the second device to the first device.
[0087] In this embodiment, after the execution subject (e.g., the first device) receives the first operation from another device to display the application interface of the first application in the second device, it determines the startup status of the first application in the device. If the first application has been set to a prohibited startup status, the data of the first operation is discarded, the interface of the first application is not displayed, and the interface of the application that has been prohibited from being displayed is prevented. If the first application is set to an allowed startup status, the first device processes the data of the first operation and displays the application interface of the first application in the second device to achieve screen projection or screen sharing.
[0088] Exemplarily, the first device has set video application 1 to a prohibited startup state. If an operation to display the application interface of video application 1 in the second device is received, the data of the operation is discarded and the application interface of video application 1 in the second device is not displayed, to prevent other devices from displaying the interface of video application 1 on the first device by dragging and dropping, etc. when video application 1 has been prohibited from starting.
[0089] In some embodiments, the method provided by the present disclosure may also include: detecting that the second device receives a second operation from a third device to display the application interface of the first application in the third device, determining whether the first application is configured to be disabled in the second device, and if so, discarding the data of the second operation.
[0090] For example, the second operation may be a screen casting operation or a screen sharing operation, such as an operation of casting or sharing the application interface of the first application in the third device to the first device.
[0091] In this embodiment, the execution subject (e.g., the first device) detects that the second device receives an operation of casting or sharing the application interface of the first application in the third device to the first device, and determines the startup status of the first application in the second device. If the first application is set to a startup-prohibited state in the second device, an indication message is sent to the second device, instructing the second device to discard the data of the operation, not to display the application interface of the first application, and to prevent the display of the interface of the application that has been prohibited from startup. If the first application is set to an enabled startup state in the second device, the first device sends an indication message to the second device, indicating that the second device is allowed to display the application interface of the first application.
[0092] Exemplarily, the vehicle system detects that rear screen 1 receives an operation to project the application interface of video application 1 in rear screen 2 to the first device. If the vehicle system determines that video application 1 in rear screen 1 is set to a prohibited startup state, rear screen 1 is not allowed to display the application interface of video application 1 in rear screen 2, and information indicating that the data of the operation is discarded is sent to rear screen 1. If the vehicle system determines that video application 1 in rear screen 1 is set to an allowed startup state, information indicating that the application interface of video application 1 in rear screen 2 is allowed is sent to rear screen 1.
[0093] In some embodiments, the method provided by the present disclosure may further include: in response to obtaining an operation to turn off the startup function, setting the startup flag to prohibit startup and setting all applications to a prohibit startup state. In response to receiving a startup operation, based on the startup flag being prohibit startup, discarding data of the startup operation.
[0094] Exemplarily, the operation of turning off the startup function may be to turn off the startup functions of all applications and set all applications to a startup-disabled state. For example, the operation of turning off the startup function may be obtained based on touching the screen of the first device, pressing a hardware key combination of the first device, and / or voice control.
[0095] In this embodiment, the above-mentioned execution entity (for example, the first device) can set the startup flag to prohibit startup in response to obtaining an operation to shut down the startup function, and set all applications to a prohibited startup state. If a startup operation is received, the startup operation can be an operation to start any application, and the state of the startup flag is determined. If the startup flag is to prohibit startup, the data of the startup operation is discarded and no application is started.
[0096] For example, the system bottom-level kernel of the first device receives an operation to turn off the startup function and sets the startup flag to prohibit startup. When the system bottom-level kernel receives the startup operation, it judges the startup flag. If the startup flag is to prohibit startup, the startup operation is not processed; if the startup flag is to allow startup, the startup operation is processed, and the data of the startup operation is sent to the corresponding application of the upper layer of the system to start the application.
[0097] In some embodiments, the method provided by the present disclosure may further include: before setting the startup flag to prohibit startup, saving the current working mode and the current startup state of the application as first information. In response to obtaining an operation to enable the startup function, setting the startup flag to allow startup, and restoring the working mode and the startup state of the application based on the first information.
[0098] Exemplarily, the operation of enabling the startup function may be enabling the startup functions of all applications, and setting all applications to a startup-allowed state.
[0099] In this embodiment, after the execution subject obtains the operation of closing the startup function, if the execution subject is in the first working mode, the current working mode and the current startup state of the application can be saved as the first information, and then the startup flag is set to prohibit startup, and all applications are set to the prohibit startup state, or all areas of the touch screen are set to prohibit startup or prohibit touch. In this way, after receiving the operation of opening the startup function, the working mode and the startup state of the application can be restored based on the first information, and there is no need to reset the application working mode, thereby improving the user experience.
[0100] Alternatively, before setting the startup flag to prohibit startup, the first device may not save the current working mode and the current startup state of the application. For example, after obtaining an operation to turn off the startup function, the startup flag is set to prohibit startup, and all applications are set to a prohibited startup state. In response to obtaining an operation to turn on the startup function, the startup flag is set to allow startup, and all applications are set to a allowed startup state.
[0101] Optionally, the operation of turning on the startup function may be obtained based on touching the screen of the first device, pressing a hardware button combination of the first device, and / or voice control. For example, the operation of turning on the startup function may include: long pressing the power button and the volume up button. The operation of turning off the startup function of the touch screen may include: long pressing the power button and the volume down button. Alternatively, the operation of turning on the startup function may include: long pressing the power button and the volume down button. The operation of turning off the startup function of the touch screen may include: long pressing the power button and the volume up button. In the present disclosure, the hardware button combination may include one or more hardware buttons.
[0102] In some embodiments, the method provided by the present disclosure may further include: in response to obtaining an operation of clearing the setting working mode, setting all applications to a start-up allowed state.
[0103] In this embodiment, the execution subject can clear the previously set application working mode in response to obtaining the operation of clearing the set working mode, for example, clear the first working mode that has been turned on, and set all applications to the allowed startup state.
[0104] In some embodiments, the method provided by the present disclosure may further include: in response to obtaining a restart operation, saving the current working mode and the current startup state of the application as first information, setting the startup flag to allow startup. In response to powering on, restoring the working mode and the startup state of the application based on the first information.
[0105] Exemplarily, the restart operation may be an operation of restarting the first device.
[0106] In this embodiment, after obtaining the restart operation, if the execution subject is in the first working mode, the current working mode and the current startup state of the application can be saved as the first information, and the startup flag can be set to allow startup. In response to powering on, the working mode and the startup state of the application are restored based on the first information.
[0107] Alternatively, after obtaining the restart operation, the first device may not save the current working mode and the current startup state of the application. For example, in response to obtaining the restart operation, the first device shuts down, and in response to turning on, sets the startup flag to allow startup, and sets all applications to the allowed startup state.
[0108] Optionally, taking the example of launching an application by touching the screen of the first device, in response to the new application being installed, the first device may record the location information of the application icon on its interface, for example, the location information includes the coordinate starting point and the maximum point coordinates.
[0109] In the present disclosure, setting an application to a startup-prohibited state may include searching for location information of the application, and setting the area where the application is located to a touch-prohibited state based on the location information. When a user touches the area where the application is located, data of the touch operation is discarded. Correspondingly, setting an application to a startup-allowed state may include setting the area where the application is located to a touch-allowed state based on the location information.
[0110] Exemplarily, the starting point of the coordinates may be (X=0, Y=0), such as the upper left corner of the screen. The lower right corner is the maximum resolution coordinate, such as (1920, 1080). Assuming that the starting coordinates of application A are (120, 200) and the maximum coordinates are (140, 220), the area where application 1 is located is (120, 200) to (140, 220). After setting the area where application A is located to prohibit touch, when the user touches and obtains the coordinate values X and Y, if X satisfies the condition that X is greater than or equal to 20 and less than or equal to 140, and Y satisfies the condition that Y is greater than or equal to 200 and less than or equal to 220, the data of the touch operation is discarded and not reported to application A.
[0111] Further references Figure 5 As an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a device for controlling an application. The device embodiment corresponds to the above method embodiment, and the device can be specifically applied to various electronic devices.
[0112] like Figure 5As shown, the device 500 for controlling applications in this embodiment may include: a first acquisition module 501, a first setting module 502, and a second setting module 503. Among them, the first acquisition module 501 is configured to display a first interface in response to obtaining an operation to start the first working mode, and obtain a setting method for prohibiting the application from starting through the first interface. The first setting module 502 is configured to display a first window including application information in response to the setting method being a custom method, set the first application selected in the first window based on the application information to a start-allowed state, and set applications other than the first application to a start-prohibited state. The second setting module 503 is configured to set the second application associated with the first working mode in the pre-set default information to a start-allowed state in response to the setting method being a default mode, and set applications other than the second application to a start-prohibited state.
[0113] In this embodiment, in the device 500 for controlling an application, the specific processing of the first acquisition module 501, the first setting module 502 and the second setting module 503 and the technical effects brought about by them can refer to the relevant descriptions of the above method embodiments respectively, and will not be repeated here.
[0114] In a possible embodiment, the apparatus provided in the second aspect further includes: a first sending module, configured to send a first indication message to a second device when the setting mode for prohibiting the application from starting obtained through the first interface is the custom mode; wherein the first indication message is used to indicate that the first application in the second device is set to an allowed start-up state, and the applications other than the first application in the second device are set to a prohibited start-up state. A second sending module, configured to send a second indication message to the second device when the setting mode for prohibiting the application from starting obtained through the first interface is the default mode; wherein the second indication message is used to indicate that the second application associated with the first working mode in the default information is set to an allowed start-up state, and the applications other than the second application are set to a prohibited start-up state.
[0115] In a possible embodiment, the device 500 for controlling applications further includes: a second acquisition module configured to obtain an operation of starting the second working mode of the second device. A third sending module configured to send third indication information to the second device; wherein the third indication information is used to indicate that a third application in the second device is set to a start-up allowed state, and that applications other than the third application are set to a start-up prohibited state.
[0116] In a possible embodiment, the device 500 for controlling the application also includes: a first generating module, configured to generate the third indication information including: in response to obtaining an operation of starting the second working mode of the second device, displaying a second interface, and obtaining a setting method for prohibiting the application from starting through the second interface; in response to the setting method being a custom method, displaying a second window including the application information, obtaining an operation of selecting a third application based on the application information in the second window, and generating the third indication information; or, in response to the setting method being a default method, generating the third indication information based on the default information; wherein the default information includes the association between the second working mode and the third application.
[0117] In a possible embodiment, the device 500 for controlling an application also includes: a first discarding module, configured to, in response to receiving a first operation to display an application interface of a first application in a second device, discard data of the first operation if the first application has been set to a disabled startup state.
[0118] In a possible embodiment, the apparatus 500 for controlling an application further includes: a detection module configured to detect that the second device receives a second operation from a third device to display an application interface of a first application in the third device. A second discarding module configured to determine whether the first application is configured to be disabled in the second device, and if so, discard the data of the second operation.
[0119] In a possible embodiment, the device 500 for controlling applications further includes: a third setting module configured to, in response to obtaining an operation to turn off the startup function, set the startup flag to prohibit startup, and set all applications to a prohibit startup state. A third discarding module configured to, in response to receiving a startup operation, discard data of the startup operation based on the startup flag being prohibit startup.
[0120] In a possible embodiment, the device 500 for controlling an application further includes: a saving module configured to save the current working mode and the current startup state of the application as first information before setting the startup flag to prohibit startup. A first recovery module configured to set the startup flag to allow startup in response to obtaining an operation to enable the startup function, and restore the working mode and the startup state of the application based on the first information.
[0121] In a possible embodiment, the device 500 for controlling an application further includes: a fourth setting module configured to save the current working mode and the current startup state of the application as first information in response to obtaining a restart operation, and set the startup flag to allow startup. A second recovery module configured to restore the working mode and the startup state of the application based on the first information in response to powering on.
[0122] This embodiment exists as an apparatus embodiment corresponding to the above method embodiment. The technical effects brought about by the embodiments involving the apparatus for controlling applications provided in this embodiment can be referred to the corresponding related descriptions in the above method embodiments respectively, and will not be repeated here.
[0123] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, which includes: 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 method of controlling an application described in any of the above embodiments can be implemented when the at least one processor executes the instructions.
[0124] According to an embodiment of the present disclosure, the present disclosure further provides a readable storage medium, which stores computer instructions, and the computer instructions are used to enable a computer to implement the method of controlling an application described in any of the above embodiments when executed.
[0125] According to an embodiment of the present disclosure, the present disclosure further provides a computer program product, which, when executed by a processor, can implement the method for controlling an application described in any of the above embodiments.
[0126] Figure 6 A schematic block diagram of an example electronic device 600 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0127] like Figure 6 As shown, the device 600 includes a computing unit 601, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 602 or a computer program loaded from a storage unit 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the device 600 can also be stored. The computing unit 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0128] A number of components in the device 600 are connected to the I / O interface 605, including: an input unit 606, such as a keyboard, a mouse, etc.; an output unit 607, such as various types of displays, speakers, etc.; a storage unit 608, such as a disk, an optical disk, etc.; and a communication unit 609, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 609 allows the device 600 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0129] The computing unit 601 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 601 performs the various methods and processes described above, such as the method of controlling the application. For example, in some embodiments, the method of controlling the application may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 608. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 600 via ROM 602 and / or communication unit 609. When the computer program is loaded into RAM 603 and executed by the computing unit 601, one or more steps of the method of controlling the application described above may be performed. Alternatively, in other embodiments, the computing unit 601 may be configured to execute the method of controlling the application in any other appropriate manner (e.g., by means of firmware).
[0130] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0131] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0132] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0133] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0134] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0135] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or a cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and virtual private servers (VPS) services. The server may also be a server of a distributed system, or a server combined with a blockchain.
[0136] According to the technical solution of the embodiment of the present disclosure, when you want to set the applications that are allowed to start and the applications that are not allowed to start in the first working mode, you can flexibly select the setting method you want to use through the first interface, and when setting based on the custom method, you can flexibly and quickly select the applications you want to start and the applications that are prohibited from starting, and you can quickly set the application control based on the default method. In this way, you can flexibly and quickly set the application control.
[0137] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0138] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A method for controlling an application, applied to a first device, comprising: In response to obtaining an operation of starting the first working mode, displaying a first interface, and obtaining a setting method for prohibiting the application from starting through the first interface; In response to the setting mode being the custom mode, displaying a first window including application information, setting a first application selected in the first window based on the application information to a start-allowed state, and setting applications other than the first application to a start-prohibited state; In response to the setting mode being the default mode, the second application associated with the first working mode in the preset default information is set to be in an allowed startup state, and applications other than the second application are set to be in a prohibited startup state.
2. The method according to claim 1, further comprising: When the setting mode for obtaining the prohibition of application startup through the first interface is the custom mode, sending first indication information to the second device; wherein the first indication information is used to indicate that the first application in the second device is set to be in the allowed startup state, and the applications in the second device other than the first application are set to be in the prohibited startup state; When the setting method for prohibiting the startup of an application obtained through the first interface is the default method, a second indication message is sent to the second device; wherein the second indication message is used to indicate that the second application associated with the first working mode in the default information is set to a startup-allowed state, and applications other than the second application are set to a startup-prohibited state.
3. The method according to claim 1, further comprising: Obtaining an operation of starting a second working mode of a second device; Sending third indication information to the second device; wherein the third indication information is used to indicate that a third application in the second device is set to an allowed startup state, and that applications other than the third application are set to a prohibited startup state.
4. The method according to claim 3, wherein: Generating the third indication information includes: In response to obtaining an operation of starting the second working mode of the second device, displaying a second interface, and obtaining a setting method for prohibiting the application from starting through the second interface; In response to the setting mode being the custom mode, displaying a second window including the application information, obtaining an operation of a third application selected based on the application information in the second window, and generating the third indication information; or, In response to the setting mode being a default mode, the third indication information is generated based on the default information; wherein the default information includes an association relationship between the second working mode and the third application.
5. The method according to any one of claims 1 to 4, further comprising: In response to receiving a first operation of displaying an application interface of a first application in a second device, if the first application has been set to a startup-disabled state, data of the first operation is discarded.
6. The method according to any one of claims 1 to 4, further comprising: detecting that the second device receives a second operation from the third device to display an application interface of the first application in the third device; Determine whether the first application is configured in the second device to be in a startup-prohibited state, and if so, discard data of the second operation.
7. The method according to any one of claims 1 to 4, further comprising: In response to obtaining an operation of shutting down the startup function, setting the startup flag to prohibit startup, and setting all applications to a prohibit startup state; In response to receiving a start operation, based on the start flag indicating that start is prohibited, discarding data of the start operation.
8. The method according to claim 7, further comprising: Before setting the startup flag to prohibit startup, saving the current working mode and the current startup state of the application as first information; In response to obtaining an operation of starting the startup function, the startup flag is set to allow startup, and the working mode and the startup state of the application are restored based on the first information.
9. The method according to any one of claims 1 to 4, further comprising: In response to obtaining the restart operation, saving the current working mode and the current startup state of the application as first information, and setting the startup flag to allow startup; In response to powering on, the working mode and the startup state of the application are restored based on the first information.
10. A device for controlling an application, comprising: An acquisition module is configured to display a first interface in response to obtaining an operation of starting the first working mode, and obtain a setting method of prohibiting the application from starting through the first interface; A first setting module is configured to, in response to the setting mode being a custom mode, display a first window including application information, set a first application selected in the first window based on the application information to be in an allowed startup state, and set applications other than the first application to be in a prohibited startup state; The second setting module is configured to set the second application associated with the first working mode in the preset default information to the allowed startup state in response to the setting mode being the default mode, and set the applications other than the second application to the prohibited startup state.
11. An electronic device, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed 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 according to any one of claims 1 to 9.
12. A non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause the computer to execute the method for controlling an application according to any one of claims 1 to 9.
13. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the steps of the method for controlling an application according to any one of claims 1 to 9 are implemented.
