Application processing method and apparatus, and electronic device
By detecting and prohibiting the launch of applications of the same type, the problem of resource conflicts and performance degradation caused by multiple applications running simultaneously is solved, thereby improving system performance and user experience.
Patent Information
- Application Number
- CN202510213560.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-25
- Publication Date
- 2026-08-25
AI Technical Summary
Starting multiple applications of the same type simultaneously may lead to resource conflicts or performance degradation.
By obtaining the application type, it detects whether the same type of application exists on multiple operating systems, and if it does, it prevents the new application from starting, generates a mutual exclusion prompt message, or clears the page information to start the new application.
This avoids resource conflicts or performance degradation caused by launching the same type of application at the same time, thus improving system performance and user experience.
Smart Images

Figure CN122633320A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of vehicle software technology, specifically relating to an application processing method, device, and electronic device. Background Technology
[0002] Currently, when users use applications, multiple applications may be launched simultaneously. However, multiple applications of the same type running at the same time may compete for the same resources, leading to resource conflicts or performance degradation. Summary of the Invention
[0003] The purpose of this application is to provide an application processing method, apparatus, and electronic device that can at least partially solve the above-mentioned problems.
[0004] In a first aspect, embodiments of this application provide an application processing method, including:
[0005] If a startup input for the first application is obtained, the type of the first application is determined;
[0006] Based on the type of the first application, detect whether there is a second application of the same type as the first application among the applications that are in the startup state under multiple operating systems;
[0007] If the second application is present in an application that is already running, the first application should be prevented from starting.
[0008] Optionally, the method further includes:
[0009] If the second application is present in the application that is in the running state, a mutual exclusion message is generated, which indicates that the type of the second application in the running state is the same as the type of the first application.
[0010] Optionally, the method further includes:
[0011] When the second application switches from the started state to the closed state, the page information of the second application is cleared and the start command of the first application is generated. When the second application is in the started state, the page information of the second application is acquired and recorded.
[0012] The startup command controls the startup of the first application.
[0013] Optionally, the method further includes:
[0014] If the second application is not present in the application that is in the startup state, a startup command for the first application is generated and the startup command is used to control the startup of the first application;
[0015] When the first application is in the running state, obtain and record the page information of the first application.
[0016] Secondly, embodiments of this application provide an application processing apparatus, including:
[0017] The first acquisition module is used to acquire the type of the first application when the startup input for the first application is acquired;
[0018] The detection module is used to detect, based on the type of the first application, whether there is a second application of the same type as the first application among the applications that are in the startup state under multiple operating systems;
[0019] The first processing module is configured to prevent the first application from starting if the second application is present in an application that is already in the running state.
[0020] Optionally, the device further includes:
[0021] The generation module is used to generate a mutual exclusion message when the second application exists in the application that is in the startup state. The mutual exclusion message is used to indicate that the type of the second application in the startup state is the same as the type of the first application.
[0022] Optionally, the device further includes:
[0023] The second processing module is used to clear the page information of the second application and generate a startup command for the first application when the second application switches from the startup state to the shutdown state. The page information of the second application is acquired and recorded when the second application is in the startup state.
[0024] The sending module is used to control the startup of the first application via the startup command.
[0025] Optionally, the device further includes:
[0026] The third processing module is used to generate a startup instruction for the first application and control the startup of the first application by means of the startup instruction when the second application does not exist in the application in the startup state.
[0027] The second acquisition module is used to acquire and record the page information of the first application when the first application is in the running state.
[0028] Thirdly, embodiments of this application also provide an electronic device, including a memory, a transceiver, and a processor:
[0029] The memory is used to store computer programs; the transceiver is used to send and receive data under the control of the processor; the processor is used to read the computer programs in the memory and execute the method described in the first aspect above.
[0030] Fourthly, embodiments of this application also provide a processor-readable storage medium storing a computer program for causing a processor to perform the method described in the first aspect above.
[0031] Fifthly, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the method described in the first aspect.
[0032] In this embodiment of the application, when a startup input for a first application is obtained, the type of the first application is obtained, and based on the type of the first application, it is detected whether there is a second application of the same type as the first application among the applications in the startup state under multiple operating systems. If the second application exists among the applications in the startup state, the startup of the first application is prohibited. Thus, the problem of resource conflict or performance degradation caused by the simultaneous startup of applications of the same type can be avoided, thereby improving system performance and user experience. Attached Figure Description
[0033] Figure 1 This is a flowchart illustrating the application processing method provided in the embodiments of this application;
[0034] Figure 2 This is a schematic flowchart illustrating the application processing method provided in the embodiments of this application;
[0035] Figure 3 This is a schematic diagram of the structure of the application processing device provided in the embodiments of this application;
[0036] Figure 4 This is a structural block diagram of the electronic device provided in the embodiments of this application. Detailed Implementation
[0037] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0038] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such terms can be used interchangeably where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0039] The application processing method provided in this application embodiment will be described below with reference to the accompanying drawings, through specific embodiments and application scenarios.
[0040] like Figure 1 As shown in the figure, this application embodiment provides an application processing method, which may specifically include the following steps:
[0041] Step 101: If the startup input for the first application is obtained, the type of the first application is obtained.
[0042] Users launch the first application (e.g., a game application) by clicking on the desktop or using voice input. The vehicle system then obtains the launch input for the first application and its type, such as game application or communication application.
[0043] In addition, a step to determine the type of the first application can be added, such as: determining whether the type of the first application is a preset type. If the type of the first application is a preset type, then continue to execute step 102. If the type of the first application is not a preset type, then the vehicle system directly starts the first application.
[0044] It should be noted that the default type is one where launching two applications of the same type simultaneously would cause resource conflicts or performance degradation. If the first application's type is not the default type, it means that launching two applications of the same type simultaneously will not cause resource conflicts or performance degradation, and the first application can be launched directly.
[0045] Step 102: Based on the type of the first application, detect whether there is a second application of the same type as the first application among the applications that are in the startup state under multiple operating systems.
[0046] Modern in-vehicle infotainment systems typically employ a multi-operating system architecture, with communication between these operating systems to meet the needs of different functional modules. The system synchronizes startup input to a mutex service via a development toolset (such as OpenSdk). Since the mutex service can run simultaneously on different operating systems, the system can use this service to detect whether a second application of the same type is running among applications currently in the startup state on multiple operating systems. This allows for cross-system detection of whether applications of the same type are currently in the startup state.
[0047] For example: The first application is game application A, and the second application is game application B. Both game applications A and B are game-type applications. Mutually exclusive services run on a first operating system and a second operating system. The front display screen runs the first operating system, and the rear display screen runs the second operating system. After a user launches game application B through the front display screen, if the user wants to open game application A through the rear display screen, it needs to check if any game-type applications are running on either the first or second operating system. Since game application B is running on the first operating system, it indicates that game application B is detected running on the first operating system, thus completing the cross-system detection.
[0048] Among them, the game application integrates OpenSdk. OpenSdk is a software development kit used to integrate various services, such as advertising, analytics, and payments.
[0049] Step 103: If the second application exists in the applications that are already running, prevent the first application from starting.
[0050] If the vehicle system detects a second application that is running through the mutual exclusion service, and since the first application and the second application are of the same type, in order to avoid resource conflicts or performance degradation caused by the simultaneous running of applications of the same type, the vehicle system will prohibit the first application from running, and only one application of the same type will be kept running.
[0051] For example, the first application is game application A, and the second application is game application B. Both applications are game-type applications, and game application B is currently running. When a user launches game application A via voice, the vehicle system, upon receiving the launch input for game application A, determines that game application A is a game. It then checks if any game-type applications are currently running. Since game application B is running, the vehicle system prevents game application A from launching.
[0052] In this embodiment of the application, when a startup input for a first application is obtained, the type of the first application is obtained, and based on the type of the first application, it is detected whether there is a second application of the same type as the first application among the applications in the startup state under multiple operating systems. If the second application exists among the applications in the startup state, the startup of the first application is prohibited. Thus, the problem of resource conflict or performance degradation caused by the simultaneous startup of applications of the same type can be avoided, thereby improving system performance and user experience.
[0053] As an optional specific embodiment, the method further includes:
[0054] If the second application is present in the application that is in the running state, a mutual exclusion message is generated, which indicates that the type of the second application in the running state is the same as the type of the first application.
[0055] If the vehicle system detects a second application that is already running through the mutual exclusion service, and since the first and second applications are of the same type, in order to avoid resource conflicts or performance degradation caused by the simultaneous startup of applications of the same type, the vehicle system generates a mutual exclusion prompt message to inform the user that the first and second applications are of the same type and that the second application is already running, and therefore the first application cannot be started.
[0056] For example, the first application is game application A, and the second application is game application B. Both applications are game-type applications, and game application B is currently running. When a user launches game application A via voice, the vehicle's infotainment system, upon receiving the launch input for game application A, determines that game application A is a game. It then checks if any other game-type application is already running. Since game application B is running, the system generates a mutual exclusion message to inform the user that a game application of the same type as game application A, B, is running, and therefore game application A cannot be launched.
[0057] As another optional specific embodiment, the method further includes:
[0058] When the second application switches from the started state to the closed state, the page information of the second application is cleared and the start command of the first application is generated. When the second application is in the started state, the page information of the second application is acquired and recorded.
[0059] The startup command controls the startup of the first application.
[0060] The page information includes, but is not limited to, page status information and / or page feature information.
[0061] Specifically, after the user actively closes the second application, the second application switches from the started state to the closed state. At this time, the vehicle system clears the page information of the second application recorded in the mutual exclusion service, generates the start command of the first application through the mutual exclusion service, and synchronizes the start command to the first application through the development toolset to start it.
[0062] Page status information includes, but is not limited to, whether the page is visible to the user (i.e., whether the page is displayed to the user in the foreground or running in the background). Page characteristic information includes, but is not limited to, package name and hash algorithm value.
[0063] The launch process of the second application: The user launches the second application (e.g., a game application) via desktop clicks or voice input. The vehicle's infotainment system then obtains the launch input for the second application and identifies its type. The system synchronizes this input to a mutual exclusion service using a development toolset (e.g., OpenSdk). Since the mutual exclusion service can run on different operating systems simultaneously, the system can detect whether an application of the same type as the second application exists among those currently running on multiple operating systems. If no application of the same type is detected, the system generates a launch command for the second application and synchronizes it to the second application via the development toolset for launch. After the second application launches, the system's mutual exclusion service obtains and records the application's page information using the development toolset.
[0064] As another optional specific embodiment, the method further includes:
[0065] If the second application is not present in the application that is in the startup state, a startup command for the first application is generated and the startup command is used to control the startup of the first application;
[0066] When the first application is in the running state, obtain and record the page information of the first application.
[0067] If the vehicle infotainment system does not detect a second application in a running state through the mutual exclusion service, it generates a startup command for the first application and synchronizes the startup command of the first application to the first application via the development toolset. After the first application starts, the vehicle infotainment system's mutual exclusion service obtains and records the page information of the first application through the development toolset.
[0068] It should be noted that the vehicle system records the page information of each launched application through a mutual exclusion service. Therefore, when the system receives the launch input, it can detect whether any applications of the same type have already been launched based on the recorded page information. This can avoid resource conflicts or performance degradation caused by the simultaneous launch of applications of the same type, thereby improving system performance and user experience.
[0069] like Figure 2 As shown below, the relationship between the first application, development toolset, and mutually exclusive services in the vehicle infotainment system is illustrated through a specific embodiment:
[0070] Step 201: Obtain startup input for the first application through the first application.
[0071] Step 202: Obtain startup input through the development toolset and synchronize it to the mutex service.
[0072] Step 203: Detect whether there is a second application of the same type as the first application among the applications that are in the startup state under multiple operating systems through the mutual exclusion service. If not, proceed to step 204; if yes, proceed to step 205.
[0073] Step 204: Generate the startup command for the first application through the mutex service and instruct the first application to start.
[0074] Step 205: Prevent the first application from starting by using a mutual exclusion service and generate a mutual exclusion message.
[0075] In summary, the embodiments of this application, upon receiving startup input for a first application, determine the type of the first application and, based on the type of the first application, detect whether there is a second application of the same type as the first application among the applications in the startup state under multiple operating systems. If the second application exists among the applications in the startup state, the startup of the first application is prohibited and a mutual exclusion prompt message is generated. Thus, the user is notified that the first application and the second application are of the same type and the second application is in the startup state, preventing the startup of the first application. This avoids the problem of resource conflicts or performance degradation caused by the simultaneous startup of one or more applications of the same type under one operating system, thereby improving system performance and user experience.
[0076] The application processing method provided in this application embodiment can be executed by an application processing device. This application embodiment uses an application processing device executing the application processing method as an example to illustrate the application processing device provided in this application embodiment.
[0077] like Figure 3 As shown in the figure, this application embodiment also provides an application processing device 300, specifically including:
[0078] The first acquisition module 301 is used to acquire the type of the first application when a startup input for the first application is acquired;
[0079] The detection module 302 is used to detect, based on the type of the first application, whether there is a second application of the same type as the first application among the applications that are in the startup state under multiple operating systems;
[0080] The first processing module 303 is used to prevent the first application from starting if the second application exists in an application that is already in the startup state.
[0081] Optionally, the device further includes:
[0082] The generation module is used to generate a mutual exclusion message when the second application exists in the application that is in the startup state. The mutual exclusion message is used to indicate that the type of the second application in the startup state is the same as the type of the first application.
[0083] Optionally, the device further includes:
[0084] The second processing module is used to clear the page information of the second application and generate a startup command for the first application when the second application switches from the startup state to the shutdown state. The page information of the second application is acquired and recorded when the second application is in the startup state.
[0085] The sending module is used to control the startup of the first application via the startup command.
[0086] Optionally, the device further includes:
[0087] The third processing module is used to generate a startup instruction for the first application and control the startup of the first application by means of the startup instruction when the second application does not exist in the application in the startup state.
[0088] The second acquisition module is used to acquire and record the page information of the first application when the first application is in the running state.
[0089] It should be noted that the application processing apparatus provided in this application embodiment can implement all the method steps implemented in the application processing method embodiment and can achieve the same technical effect. Here, the parts that are the same as those in the method embodiment and the beneficial effects will not be described in detail.
[0090] It should be noted that the division of units in the embodiments of this application is illustrative and only represents one logical functional division. In actual implementation, other division methods may be used. Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated units described above can be implemented in hardware or as software functional units.
[0091] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a processor-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0092] like Figure 4 As shown, embodiments of this application also provide an electronic device, including a memory 420, a transceiver 410, and a processor 400:
[0093] Memory 420 is used to store computer programs;
[0094] Transceiver 410 is used to send and receive data under the control of the processor;
[0095] Processor 400 is configured to read a computer program from memory and execute the steps of the application processing method as described in any of the above embodiments.
[0096] Among them, Figure 4In this context, the bus architecture can include any number of interconnected buses and bridges, specifically linking various circuits together, represented by one or more processors (processor 400) and memory (memory 420). The bus architecture can also link various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and therefore will not be described further herein. The bus interface provides an interface. The transceiver 410 can be multiple elements, including transmitters and receivers, providing a unit for communicating with various other devices over transmission media, including wireless channels, wired channels, optical fibers, etc. The processor 400 is responsible for managing the bus architecture and general processing, and the memory 420 can store data used by the processor 400 during operation.
[0097] The processor 400 can be a central processing unit (CPU), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or a complex programmable logic device (CPLD). The processor can also adopt a multi-core architecture.
[0098] The processor executes the application processing method provided in the embodiments of this application by calling a computer program stored in memory, according to the obtained executable instructions. The processor and memory can also be physically separated.
[0099] It should be noted that the electronic device provided in this application embodiment can implement all the method steps implemented in the above application processing method embodiment and can achieve the same technical effect. Here, the parts that are the same as those in the method embodiment and the beneficial effects will not be described in detail.
[0100] Embodiments of this application also provide a processor-readable storage medium storing a computer program for causing the processor to execute the above-described application processing method.
[0101] This application also provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the application processing method embodiments described above, and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0102] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0103] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) to execute the methods described in the various embodiments of this application.
[0104] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. An application processing method, characterized in that, include: If a startup input for the first application is obtained, the type of the first application is determined; Based on the type of the first application, detect whether there is a second application of the same type as the first application among the applications that are in the startup state under multiple operating systems; If the second application is present in an application that is already running, the first application should be prevented from starting.
2. The method according to claim 1, characterized in that, The method further includes: If the second application is present in the application that is in the running state, a mutual exclusion message is generated, which indicates that the type of the second application in the running state is the same as the type of the first application.
3. The method according to claim 1 or 2, characterized in that, The method further includes: When the second application switches from the started state to the closed state, the page information of the second application is cleared and the start command of the first application is generated. When the second application is in the started state, the page information of the second application is acquired and recorded. The startup command controls the startup of the first application.
4. The method according to claim 1, characterized in that, The method further includes: If the second application is not present in the application that is in the startup state, a startup command for the first application is generated and the startup command is used to control the startup of the first application; When the first application is in the running state, obtain and record the page information of the first application.
5. An application processing device, characterized in that, include: The first acquisition module is used to acquire the type of the first application when the startup input for the first application is acquired; The detection module is used to detect, based on the type of the first application, whether there is a second application of the same type as the first application among the applications that are in the startup state under multiple operating systems; The first processing module is configured to prevent the first application from starting if the second application is present in an application that is already in the running state.
6. The apparatus according to claim 5, characterized in that, The device further includes: The generation module is used to generate a mutual exclusion message when the second application exists in the application that is in the startup state. The mutual exclusion message is used to indicate that the type of the second application in the startup state is the same as the type of the first application.
7. The apparatus according to claim 5 or 6, characterized in that, The device further includes: The second processing module is used to clear the page information of the second application and generate a startup command for the first application when the second application switches from a startup state to a shutdown state. The page information of the second application is acquired and recorded when the second application is in a startup state. The sending module is used to control the startup of the first application via the startup command.
8. The apparatus according to claim 5, characterized in that, The device further includes: The third processing module is used to generate a startup instruction for the first application and control the startup of the first application by means of the startup instruction when the second application is not present in the application in the startup state. The second acquisition module is used to acquire and record the page information of the first application when the first application is in the running state.
9. An electronic device, characterized in that, Includes memory, transceiver, and processor: The memory is used to store computer programs; the transceiver is used to send and receive data under the control of the processor; the processor is used to read the computer programs in the memory and execute the steps of the application processing method as described in any one of claims 1-4.
10. A processor-readable storage medium, characterized in that, The processor-readable storage medium stores a computer program that causes the processor to perform the steps of the application processing method as described in any one of claims 1-4.
11. A computer program product, characterized in that, The computer program product is stored in a storage medium, and the computer program product is executed by at least one processor to implement the steps of the application processing method as described in any one of claims 1-4.