[0028] In order to be able to understand the above objectives, features and advantages of the present invention more clearly, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.
[0029] In the following description, many specific details are set forth in order to fully understand the present invention. However, the present invention can also be implemented in other ways different from those described here. Therefore, the present invention is not limited to the specific embodiments disclosed below. limit.
[0030] figure 1 It is a flowchart of a method for controlling parallel running of multiple applications according to an embodiment of the present invention. Such as figure 1 As shown, the method for controlling the parallel operation of multiple applications according to an embodiment of the present invention includes: step 102, determining and recording all the resources according to the size and type of resources occupied by each of the multiple applications. The parallel running relationship between the multiple application programs; step 104, when any one of the multiple application programs is started, the parallel running relationship between the multiple application programs Control of other applications in multiple applications.
[0031] In the above technical solution, preferably, the parallel operation relationship may include: mutual exclusion, recommendation, and non-recommendation. In step 102, it may include: judging whether the types of resources occupied by any two of the multiple application programs are the same, and if they are the same, determining that the parallel running relationship between any two application programs is The mutual exclusion; if they are different, it is determined whether the sum of the size of the resources occupied by any two applications exceeds a threshold, and if it exceeds, it is determined that the parallel operation relationship between any two applications is the Not recommended, otherwise, it is determined to be the recommendation. Here, it should be understood that the parallel operation relationship may also include other relationships as required, for example, recommendation order, level, and so on.
[0032] In the above technical solution, preferably, in step 104, the control may include: disabling the mutually exclusive application in the parallel operation relationship with any of the started applications; prompting and starting the application in different ways. The parallel running relationship of any application program is the recommended application program and the non-recommended application program.
[0033] In the above technical solution, preferably, step 104 may further include: when the parallel running relationship with any of the started applications is the recommended application and/or the non-recommended application, opening a new Interface, the new interface prompts in different ways that the parallel running relationship with any one of the applications that is started is the recommended application and the non-recommended application; When the program is closed, the new interface is closed at the same time.
[0034] In the above technical solution, preferably, in step 102, the parallel running relationship between the multiple applications is recorded in the configuration file; step 104 may also include: reading when any of the applications is started Take the configuration file.
[0035] In the above technical solution, preferably, it may further include: modifying the configuration file. Users can customize the parallel control of the application by modifying the configuration file. Here, those skilled in the art should understand that there are many ways to modify the configuration file. For example, a custom configuration interface can be provided for the user, and the user can be provided with options on the custom configuration interface. The user can customize the configuration file according to their preferences. Determine the final configuration file.
[0036] According to the method for controlling the parallel operation of multiple applications according to the present invention, the parallel operation relationship between multiple applications is determined according to the mutual relationship between each application, resource usage, etc., and when a certain application is used, According to the parallel operation relationship, determine which applications can be used, which applications are not recommended, and so on. According to the method of the present invention, the system can well coordinate operations between various applications, thereby bringing a better user experience, and at the same time avoiding the problems of reduced system operating speed and accelerated battery life.
[0037] figure 2 It is a block diagram of a device for controlling parallel running of multiple applications according to an embodiment of the present invention. Such as figure 2 As shown, the apparatus 200 for controlling the parallel operation of multiple applications includes: a relationship determining unit 202, which determines and records the parallelism between the multiple applications according to the size and type of resources occupied by each of the multiple applications. Operation relationship; and the control unit 204, when any one of the multiple application programs is started, runs the multiple applications in parallel according to the parallel operation relationship of the multiple applications determined by the relationship determination unit Control other applications in the application.
[0038] In this embodiment, preferably, the parallel operation relationship may include: mutual exclusion, recommendation, and non-recommendation.
[0039] In this embodiment, preferably, the relationship determining unit 202 may include: a type determination module 2022, configured to determine whether the types of resources occupied by any two of the multiple applications are the same, and if they are the same, then It is determined that the parallel running relationship between any two application programs is the mutual exclusion; the size judgment module 2024 is configured to, when the type judgment module determines that the types between any two application programs are different, It is determined whether the sum of the size of the resources occupied by any two application programs exceeds a threshold, and if it exceeds, it is determined that the parallel operation relationship between any two application programs is not recommended, otherwise, it is determined to be recommended.
[0040] In this embodiment, preferably, the control unit 204 may include: a disabling module 2041 for disabling applications whose parallel operation relationship with any one of the started applications is mutually exclusive; and a prompt module 2042 for disabling Different methods are used to prompt that the parallel running relationship with any one of the started applications is a recommended application and a non-recommended application.
[0041] In this embodiment, preferably, the control unit 204 may further include: an interface opening module 2043, configured to run in parallel with any of the started applications as the recommended application and/or the non- When recommending an application, a new interface is opened, and the parallel running relationship with any one of the started applications is respectively prompted in different ways on the new interface as a recommended application and a non-recommended application; the interface close module 2044 When any of the started applications is closed, the new interface is closed at the same time.
[0042] In this embodiment, preferably, the parallel running relationship between multiple applications can be recorded in a configuration file, where the control unit 204 can further include: a reading module 2045, which is configured to be used when any one of the applications is started. When, read the configuration file.
[0043] In this embodiment, preferably, the control unit 204 may further include a modification module 2046 for modifying the configuration file.
[0044] According to the device for controlling the parallel operation of multiple application programs according to the present invention, the parallel operation relationship between multiple application programs can be determined according to the relationship between each application program, resource usage, etc., and when a certain application program is used , According to the parallel running relationship to determine which applications can be used, which applications are not recommended, and so on. Thus, the system can coordinate operations between various applications well, thereby bringing a better user experience.
[0045] image 3 It is a block diagram of a terminal for controlling multiple applications to run in parallel according to an embodiment of the present invention. Such as image 3 As shown, the terminal 300 includes figure 2 The device 200 shown in. Here, those skilled in the art should understand that the terminal may include a mobile phone, a player, a PDA, a portable computer, and the like.
[0046] Figure 4 It is a schematic diagram of performing parallel operation control of multiple application programs according to an embodiment of the present invention. Such as Figure 4 As shown, in this embodiment, a mobile phone is taken as an example to describe the entire framework for parallel operation control of multiple applications in a mobile phone, which mainly includes three modules:
[0047] 1. Mobile phone configuration file generation module 402. This module can include, but is not limited to, mobile phone resource occupation information and mutual exclusion information between mobile phone applications. By counting the resource information occupied by mobile phone applications, the mobile phone applications When two applications that can run in parallel need to run in parallel, it can be judged whether the resources required by each application are very large. If both applications occupy relatively large resource information, for example , When the sum of the resources occupied by the two applications is greater than the predetermined threshold, it can be classified as a non-recommended application, otherwise it can be considered as a recommended application. The criterion for judging the mutual exclusion between applications is whether they occupy the same resources. For example, a music player and a video player both occupy audio resources, and the two are mutually exclusive resources. The collected information is filled into the configuration file, for example as follows:
[0048] Application name: Application A;
[0049] Memory required for operation: ** M;
[0050] The number of mutually exclusive applications: * A
[0051] Mutually exclusive application name: application M, application N;
[0052] Recommended number of applications: * A
[0053] Recommended application name: application B[Y], application C[Y], application D[N]; (here, Y\N indicates whether the user chooses to be parallel to the current application, Y indicates selection, N indicates not selected, this option is In the case of allowing the user to customize the configuration, for the user to choose and use);
[0054] Number of applications not recommended: * A
[0055] Not recommended application name: application E[N], application F[Y], application G[N];
[0056] The information in the configuration file is configured by the software developer by default, but it can also support the provision of a configuration interface for user-defined configuration. The user-defined configuration interface is shown in the following table:
[0057]
[0058] After providing this user-defined configuration interface, although some applications are not recommended to run in parallel (such as music player online listening and browser), they can indeed run in parallel, if the user does not mind affecting the quality of listening to songs or browsing Due to the lag of the webpage, I hope that the two can run in parallel, and the program can also support the user's idea, so that the mobile phone operation can meet the user's needs as much as possible, instead of forcing certain operations.
[0059] 2. The program discrimination module 404 and the application program coordination display module 406 are implemented as follows Figure 5 Shown.
[0060] In step 502, when the user starts an application program A, the program discrimination module 404 starts to read the relevant information in the configuration file;
[0061] In step 504, firstly read the names of the applications that are mutually exclusive with the application A and display them in the operation interface A', for example, including but not limited to automatically hiding or graying out the icons of these applications;
[0062] In step 506, read the recommended applications to run in parallel with application A, record which applications the user has selected to run in parallel with application A, and display the icons of the applications selected by the user to run in parallel with application A On the operation interface A', it is marked as recommended to run (the identification method can include Tip prompt, or color difference, or icon difference), and the icons of applications that the user has not selected are automatically hidden;
[0063] In step 508, read applications that are not recommended to run in parallel with application A, and record which applications are selected by the user to run in parallel with application A, and the applications selected by the user to run in parallel with application A The icon is displayed on the operation interface A', and it is marked as not recommended to run (the identification method can be prompted by Tip, or the color difference, or the icon difference), and the icon of the application that the user has not selected is automatically hidden;
[0064] In step 510, a new operation interface A'related to this application is created based on related information. This operation interface A'only displays applications that can run in parallel with the current application. The user can control to turn off this operation interface A'at any time. And the currently launched application A is also closed, and the phone interface returns to its usual normal state.
[0065] In this embodiment, the purpose of adding the operating interface A'is to facilitate the user to clearly see the operations that can run in parallel with the application A at this time, and to close the interface to close the corresponding application, which is convenient for the user operating. However, it should also be understood that instead of adding the operation interface A', it is possible to set directly on the original interface, such as graying out mutually exclusive applications or displaying them in different colors in the original main interface as mentioned above. .
[0066] In summary, according to the technical solution of the present invention, by judging the parallel running relationship between multiple applications, the user may be prompted to conflicting applications, for example, when the user turns on the music player to listen to songs, it is mutually exclusive with Some applications, such as video playback, mobile TV, etc., are automatically hidden (or grayed out) on the operating interface of the music player, without the need for the user to pop up a prompt box when they click to facilitate the user's operating experience. In addition, through the technical solution of the present invention, users can also be provided with applications that are recommended or not recommended for parallel use, and users can also configure parallel running programs (including recommended and not recommended) of a certain application on a custom interface, such as When the user is using the music player to listen to songs online, he wants to browse the web at the same time, but because the browser and the music player both occupy the network download speed, the user will see the The browser is identified as a non-recommended application, so that users can know that running both at the same time will affect each other. Therefore, according to the technical solution of the present invention, the operations between various applications can be well coordinated to prevent unnecessary running speed reduction, thereby avoiding accelerating battery consumption, and bringing a good experience to the user.
[0067] The above are only preferred embodiments of the present invention and are not used to limit the present invention. For those skilled in the art, the present invention can have various modifications and changes. Any modification, equivalent replacement, improvement, etc., made within the spirit and principle of the present invention should be included in the protection scope of the present invention.