A method and apparatus for managing applications

By optimizing and adjusting the characteristic parameters of multimedia files, the problems of poor keep-alive effect and high resource consumption in existing technologies have been solved, thereby improving the user experience and resource utilization efficiency of applications.

CN115481087BActive Publication Date: 2026-06-16JD DIGITS HAIYI INFORMATION TECHNOLOGY CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
JD DIGITS HAIYI INFORMATION TECHNOLOGY CO LTD
Filing Date
2022-09-30
Publication Date
2026-06-16

AI Technical Summary

Technical Problem

Existing keep-alive methods are ineffective and consume a lot of resources, which affects user experience.

Method used

By optimizing and analyzing the characteristic parameters of the multimedia files included in the application, adjusting the parameter values ​​to optimize the multimedia files, and running the multimedia files based on the optimized parameter values, the application can be kept alive.

🎯Benefits of technology

It improves the user experience of application push services, reduces resource consumption, and enhances the reliability and stability of multimedia file operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115481087B_ABST
    Figure CN115481087B_ABST
Patent Text Reader

Abstract

The application discloses a kind of methods and devices for managing application, it is related to application development technical field.The specific embodiment of the method includes: the current parameter value of one or more characteristic parameters of multimedia file contained by application is optimized and analyzed, and the multimedia file is adjusted according to the result of analysis, and the application is kept alive by running the adjusted multimedia file.The embodiment of the application overcomes the problem that the keeping-alive effect of the application in the prior art is poor and resource consumption is high, and improves the user experience of using application push service.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of application development technology, and in particular to a method and apparatus for managing applications. Background Technology

[0002] Some internet applications include push services. To ensure the stability and real-time performance of these services, guaranteeing users receive the messages and notifications they need promptly and improving the user experience, a keepalive approach is often used to enhance the stability and real-time performance of the application's push service in scenarios requiring timely message delivery. Existing keepalive methods primarily involve adding the application to the system's startup whitelist. This method requires complex user operations, resulting in a poor user experience and ineffective keepalive functionality, thus impacting the application's push service. Summary of the Invention

[0003] In view of this, embodiments of the present invention provide a method and apparatus for managing applications, which can perform optimization analysis on the current parameter values ​​of one or more feature parameters of multimedia files contained in the application, adjust the multimedia files according to the analysis results, and keep the application alive by running the adjusted multimedia files. Embodiments of the present invention overcome the problems of poor application keep-alive performance and high resource consumption in the prior art, and improve the user experience of using push services in applications.

[0004] To achieve the above objectives, according to one aspect of the present invention, a method for managing an application is provided, characterized by comprising: determining multimedia files contained in the application; performing optimization analysis on the current parameter values ​​of one or more feature parameters of the multimedia files, and adjusting the multimedia files according to the analysis results, wherein the adjusted multimedia files include optimized parameter values ​​corresponding to one or more feature parameters; and running the adjusted multimedia files based on the optimized parameter values ​​to keep the application alive.

[0005] Optionally, determining the multimedia files contained in the application includes: searching for the multimedia files in a designated storage space corresponding to the application, and locating the multimedia files if it is determined that the multimedia files are in a normal state.

[0006] Optionally, determining the multimedia files included in the application further includes: if no multimedia file is found in the designated storage space corresponding to the application or if a multimedia file in an abnormal state is found, generating a new multimedia file for the application and using the new multimedia file as the multimedia file of the application.

[0007] Optionally, the step of optimizing and analyzing the current parameter values ​​of one or more feature parameters of the multimedia file, and adjusting the multimedia file according to the analysis results, includes: for each feature parameter's current parameter value, performing the following operations: comparing the current parameter value with a set reference range; if the comparison result indicates that the current parameter value does not match the set reference range, then determining an optimized parameter value corresponding to the feature parameter according to the set reference range; and adjusting the multimedia file based on the optimized parameter values ​​of one or more feature parameters.

[0008] Optionally, adjusting the multimedia file includes: determining a parameter type for a target feature parameter, wherein the target feature parameter is a feature parameter whose current parameter value does not match the corresponding set reference range among one or more of the feature parameters; generating a new multimedia file based on the optimized parameter value of the target feature parameter and the multimedia file when the number of target feature parameters is one or more and the parameter type of any target feature parameter indicates an attribute feature; and changing the current parameter value in the multimedia file corresponding to the target feature parameter to the optimized reference value when the number of target feature parameters is one or more and the parameter type of all target feature parameters indicates a playback feature.

[0009] Optionally, when the multimedia file is an audio file, the feature parameters include any one or more of the following: audio sampling rate, audio sampling bit depth, number of audio channels, audio amplitude, audio duration, audio format, playback volume, and playback interval.

[0010] Optionally, the method for managing the application further includes: setting a file running process for the multimedia file; running the adjusted multimedia file includes: using the file running process to monitor the running status of the multimedia file, and rerunning the multimedia file when the running status of the multimedia file is detected to be abnormal.

[0011] Optionally, the method for managing the application further includes: managing the file running process using the main process of the application; and, when the main process detects that the process state of the file running process is non-running, starting the file running process to a running state using the main process, so as to run the multimedia file using the file running process.

[0012] To achieve the above objectives, according to a second aspect of the present invention, an application management apparatus is provided, characterized in that it includes: a file determination module, a parameter determination module, and a keep-alive execution module; wherein,

[0013] The file determination module is used to determine the multimedia files contained in the application;

[0014] The parameter determination module is used to perform optimization analysis on the current parameter values ​​of one or more feature parameters of the multimedia file, and adjust the multimedia file according to the analysis results, wherein the adjusted multimedia file includes optimized parameter values ​​corresponding to one or more feature parameters;

[0015] The execution keep-alive module is used to run the adjusted multimedia file based on the optimized parameter values, so as to keep the application alive.

[0016] Optionally, the device for managing the application is used to determine the multimedia files contained in the application, including: searching for the multimedia files in a designated storage space corresponding to the application, and locating the multimedia files if it is determined that the multimedia files are in a normal state.

[0017] Optionally, the device for managing the application, used to determine the multimedia files contained in the application, further includes: if no multimedia file is found in the designated storage space corresponding to the application or if a multimedia file in an abnormal state is found, generating a new multimedia file for the application and using the new multimedia file as the multimedia file of the application.

[0018] Optionally, the management application device is configured to perform optimization analysis on the current parameter values ​​of one or more feature parameters of the multimedia file, and adjust the multimedia file according to the analysis results, including: for each feature parameter's current parameter value, performing the following operations: comparing the current parameter value with a set reference range; if the comparison result indicates that the current parameter value does not match the set reference range, then determining an optimized parameter value corresponding to the feature parameter according to the set reference range; and adjusting the multimedia file based on the optimized parameter values ​​of one or more feature parameters.

[0019] Optionally, the device for managing the application is used to adjust the multimedia file, including: determining a parameter type for a target feature parameter, wherein the target feature parameter is a feature parameter whose current parameter value does not match a corresponding set reference range among one or more of the feature parameters; generating a new multimedia file based on the optimized parameter value of the target feature parameter and the multimedia file when the number of target feature parameters is one or more and the parameter type of any target feature parameter indicates an attribute feature; and changing the current parameter value in the multimedia file corresponding to the target feature parameter to the optimized reference value when the number of target feature parameters is one or more and the parameter type of all target feature parameters indicates a playback feature.

[0020] Optionally, the device for managing the application includes, when the multimedia file is an audio file, any one or more of the following characteristic parameters: audio sampling rate, audio sampling bit depth, number of audio channels, audio amplitude, audio duration, audio format, playback volume, and playback interval.

[0021] Optionally, the device for managing the application is further configured to set a file running process for the multimedia file; running the adjusted multimedia file includes: using the file running process to monitor the running status of the multimedia file, and rerunning the multimedia file when the running status of the multimedia file is detected to be abnormal.

[0022] Optionally, the device for managing the application is further configured to manage the file running process using the main process of the application; when the main process detects that the process state of the file running process is non-running, the main process starts the file running process to a running state so as to run the multimedia file using the file running process.

[0023] To achieve the above objectives, according to a third aspect of the present invention, an electronic device for managing applications is provided, characterized in that it includes: one or more processors; and a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors perform any of the methods described above for managing applications.

[0024] To achieve the above objectives, according to a fourth aspect of the present invention, a computer-readable medium is provided having a computer program stored thereon, characterized in that, when the program is executed by a processor, it implements any of the methods described above for managing applications.

[0025] One embodiment of the above invention has the following advantages or beneficial effects: it can perform optimization analysis on the current parameter values ​​of one or more feature parameters of the multimedia files included in the application, adjust the multimedia files according to the analysis results, and keep the application alive by running the adjusted multimedia files. The embodiments of the present invention overcome the problems of poor application keep-alive effect and high resource consumption in the prior art, reduce the power consumption of running applications, and improve the user experience when using application push services.

[0026] The further effects of the aforementioned unconventional alternative methods will be explained below in conjunction with specific implementation methods. Attached Figure Description

[0027] The accompanying drawings are provided to better understand the invention and are not intended to unduly limit the scope of the invention. Wherein:

[0028] Figure 1 This is a flowchart illustrating a method for managing an application according to an embodiment of the present invention;

[0029] Figure 2 This is a flowchart illustrating a management application provided in one embodiment of the present invention;

[0030] Figure 3 This is a schematic diagram of the structure of a management application device provided in one embodiment of the present invention;

[0031] Figure 4 This is an exemplary system architecture diagram in which embodiments of the present invention can be applied;

[0032] Figure 5 This is a schematic diagram of the structure of a computer system suitable for implementing terminal devices or servers of the present invention. Detailed Implementation

[0033] The following description, in conjunction with the accompanying drawings, illustrates exemplary embodiments of the present invention, including various details to aid understanding. These details should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the invention. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.

[0034] like Figure 1 As shown in the figure, an embodiment of the present invention provides a method for managing applications, which may include the following steps:

[0035] Step S101: Determine the multimedia files included in the application.

[0036] Specifically, the application described in this embodiment of the invention includes services that require keepalive functionality, such as push services in instant messaging applications; further, a multimedia file is determined for keeping the application alive, such as an audio file or a video file; the application is kept alive by running this multimedia file. This multimedia file may be stored in a designated storage space within the application (e.g., a designated file directory), or the multimedia file may have a pre-defined file identifier.

[0037] Furthermore, in one embodiment of the present invention, there are two methods for determining the multimedia files included in the application:

[0038] The first method involves searching for multimedia files in the designated storage space corresponding to the application, and locating the multimedia file if it is determined to be in a normal state. Specifically, for example, if the multimedia file is \aaa\bbb\ccc\abcd.wav, then the application's multimedia file abcd.wav is searched in the designated storage space \aaa\bbb\ccc\. It is then determined whether abcd.wav is in a normal state (e.g., a valid file, playable). If the multimedia file is found and determined to be in a normal state, the application's multimedia file is located.

[0039] The second method: If no multimedia file is found in the designated storage space corresponding to the application, or if a multimedia file is found but is in an abnormal state, a new multimedia file is generated for the application, and this new multimedia file is used as the application's multimedia file. Specifically, for example: if no multimedia file for keeping the application alive is found in the designated storage space \aaa\bbb\ccc\, or if abcd.wav is found but is in an abnormal state (e.g., corrupted, unplayable, or unable to achieve the desired keep-alive effect), then a new multimedia file is generated for the application, and this new multimedia file is used as the application's multimedia file to achieve the application's keep-alive function.

[0040] Step S102: Optimize and analyze the current parameter values ​​of one or more feature parameters of the multimedia file, and adjust the multimedia file according to the analysis results, wherein the adjusted multimedia file includes optimized parameter values ​​corresponding to one or more feature parameters.

[0041] Specifically, after locating the multimedia file, the current parameter values ​​of one or more feature parameters of the multimedia file are optimized and analyzed, and the multimedia file is adjusted according to the analysis results. The method for obtaining the current parameter values ​​of one or more feature parameters of the multimedia file is as follows: the current parameter values ​​corresponding to the feature parameters stored for the multimedia file are retrieved. The feature parameter information matching the multimedia file can be stored in data sources such as files or databases within the application. The correspondence between the file identifier of the multimedia file and the corresponding current parameter value of the feature parameter, as well as the correspondence between each feature parameter and its corresponding current parameter value, can be stored using key-value pairs (key:value). If the current parameter value of any feature parameter changes, the stored current parameter value of the feature parameter is updated to ensure that the stored current parameter value of the feature parameter remains synchronized with the current multimedia file.

[0042] Further, the current parameter values ​​of one or more feature parameters of the multimedia file are optimized and analyzed, and the multimedia file is adjusted according to the analysis results, including: for each feature parameter's current parameter value, performing the following operations: comparing the current parameter value with a set reference range; if the comparison result indicates that the current parameter value does not match the set reference range, then determining an optimized parameter value corresponding to the feature parameter according to the set reference range; and adjusting the multimedia file based on the optimized parameter values ​​of one or more feature parameters.

[0043] In one embodiment of the present invention, when the multimedia file is an audio file, the feature parameters include any one or more of the following: audio sampling rate, audio sampling bit depth, number of audio channels, audio amplitude, audio duration, audio format, playback volume, and playback interval. The reference range can be a single value, multiple values, or multiple value ranges. For example, the current parameter value of the audio sampling rate is 10000Hz, and the corresponding setting reference range is no greater than 4000Hz; the current parameter value of the audio sampling bit depth is 16bit, and the corresponding setting reference range is 8bit; the current parameter value of the number of audio channels is 2, and the corresponding setting reference range is 1; the current parameter value of the audio amplitude is 1, and the corresponding setting reference range is 0.1; the current parameter value of the audio duration is 30s, and the corresponding setting reference range is 15s; the current parameter value of the audio format is compressed audio format, and the corresponding setting reference range is lossless uncompressed audio format; the current parameter value of the playback volume is 2, and the corresponding setting reference range is 0; the current parameter value of the playback interval is 10s, and the corresponding setting reference range is 55s, etc. It can be understood that the settings can be adjusted multiple times for multimedia files of the same application to achieve the best keep-alive effect. Therefore, by adjusting the current parameter value (e.g., lowering or reducing the current parameter value), the above-mentioned setting reference range allows the setting reference range (i.e., optimized parameter value) of each feature parameter to maximize the saving of energy consumption during application operation (e.g., saving power consumption, saving computing resource consumption) while achieving the keep-alive function.

[0044] Furthermore, the current parameter values ​​of one or more feature parameters of the multimedia file are optimized and analyzed. For example, the optimization and analysis method involves comparing the current parameter value with a set reference range to determine that the current parameter value (e.g., 10s) of the playback interval indicator of the audio file abcd.wav does not match the set reference range (e.g., 55s). Then, the optimized parameter value corresponding to the feature parameter (playback interval) is determined to be 55s. That is, the optimized parameter value corresponding to the feature parameter is determined according to the set reference range.

[0045] In one embodiment of the present invention, the multimedia file is further adjusted based on the optimized parameter values ​​of one or more of the said feature parameters. The step of adjusting the multimedia file can be performed by the application's keep-alive module. First, the parameter type is determined for the target feature parameter, wherein the target feature parameter is a feature parameter among one or more of the said feature parameters whose current parameter value does not match the corresponding set reference range; further, there are two methods for adjusting the multimedia file:

[0046] The first method: When there are one or more target feature parameters, and the parameter type of any of the target feature parameters indicates an attribute feature, a new multimedia file is generated based on the optimized parameter values ​​of the target feature parameters and the multimedia file.

[0047] Specifically, when the multimedia file is an audio file, the parameter type corresponding to the attribute feature is one or more of the following: audio sampling rate, audio sampling bit depth, number of audio channels, audio amplitude, audio duration, and audio format. If it is determined that any target feature parameter to be optimized is an attribute feature, the existing multimedia file can be deleted, and a new multimedia file can be generated. The new multimedia file contains feature parameters corresponding to each attribute feature with optimized parameter values. For example, if the target feature parameters to be optimized are audio sampling rate and audio sampling bit depth, the new multimedia file contains an audio sampling rate of 4000Hz (i.e., the optimized parameter value) and an audio sampling bit depth of 8 bits (i.e., the optimized parameter value). The optimization of the audio sampling bit depth is related to the sampling bit depth supported by the system. Preferably, the application's keep-alive module can automatically determine the audio sampling bit depth supported by the system before optimizing the audio sampling bit depth. If it is determined that the system can support 8 bits, the audio sampling bit depth is changed to the optimized parameter value of 8 bits; otherwise, the minimum audio sampling bit depth supported by the system is used, thereby saving resource consumption.

[0048] During the iterative update of one or more feature parameters, the new multimedia file can inherit other feature parameters from the original multimedia file. These other feature parameters are those other than the target feature parameter to be optimized. For example, parameters contained in other audio files besides the target feature parameter. Furthermore, the step of generating a multimedia file containing the various optimized parameter values ​​can be executed through code contained in the application's keep-alive module.

[0049] The second method: When there are one or more target feature parameters, and the parameter type of all target feature parameters indicates playback features, the current parameter value corresponding to the target feature parameter in the multimedia file is changed to the optimized reference value.

[0050] Specifically, when the multimedia file is an audio file, the parameter type corresponding to the playback feature is one or more of playback volume and playback interval. When the parameter type of the target feature parameter to be optimized indicates playback feature, optimization and update can be performed directly based on the existing multimedia file. For example, MediaPlayer.setVolume(0f,0f) can be used to update the current parameter value of playback volume from 2 to the optimized parameter value of 0; the Handler.postDelayed(mActionPlay,55000) method can be used to update the current parameter value of playback interval from 10s to the optimized parameter value of 55s, etc.

[0051] Furthermore, it can be understood that when there are one or more target feature parameters, and the parameter type of the target feature parameters indicates both attribute features and playback features, that is, when the multiple target feature parameters include both attribute features and playback features, a new multimedia file can be generated first according to the steps described in the first method, and then the steps of the second method can be performed based on the new multimedia file.

[0052] Step S103: Based on the optimized parameter values, run the adjusted multimedia file to keep the application alive.

[0053] Specifically, a multimedia file containing optimized parameter values ​​is run to keep the application alive.

[0054] Preferably, a file execution process is set for the multimedia file, which can be started when the application starts; wherein, the file execution process can be a dedicated process for running multimedia, thereby improving the reliability and stability of running multimedia files, and thus improving the application's keep-alive effect.

[0055] Furthermore, running the adjusted multimedia file includes: using the file running process to monitor the running status of the multimedia file, and rerunning the multimedia file when the running status of the multimedia file is detected to be abnormal. The file running process can be started when the application starts.

[0056] Furthermore, the application's main process manages the file execution process; when the main process detects that the file execution process is in a non-running state, it restarts the file execution process to a running state, thereby running the multimedia file. Specifically, by monitoring the file execution process through the application's main process, and restarting the file execution process when it is in a non-running state (e.g., inactive or stopped), the application maintains the normal operation of the multimedia file, further improving the reliability and stability of running multimedia files, and thus enhancing the application's keep-alive effect.

[0057] like Figure 2 As shown, this embodiment of the invention provides a process for managing applications, which may include the following steps:

[0058] Step S201: Begin.

[0059] Step S202: Determine whether the multimedia file has been located. If yes, proceed to step S203; otherwise, proceed to step S207.

[0060] Step S203: Optimize and analyze the current parameter values ​​of one or more feature parameters of the multimedia file.

[0061] Step S204: Determine whether optimization is needed based on the analysis results. If yes, proceed to step S205; otherwise, proceed to step S208.

[0062] Step S205: If the number of target feature parameters is one or more, and the parameter type of any of the target feature parameters indicates an attribute feature, a new multimedia file is generated based on the optimized parameter values ​​of the target feature parameters and the multimedia file.

[0063] Step S206: When there are one or more target feature parameters, and the parameter type of all target feature parameters indicates playback features, change the current parameter value corresponding to the target feature parameter in the multimedia file to the set reference value.

[0064] In one embodiment of the present invention, the execution order of steps S205 and S206 is merely an example. If it is not necessary to optimize the target feature parameters of the attribute features, only step S206 is executed. If it is necessary to optimize both the attribute features and the target feature parameters of the playback features, step S205 is executed first to generate a new multimedia file, and then step S206 is executed based on the new multimedia file.

[0065] Step S207: Generate a new multimedia file. The new multimedia file includes optimized parameter values ​​corresponding to one or more feature parameters; based on the optimized parameter values, run the adjusted multimedia file to keep the application alive.

[0066] Step S208: End.

[0067] The method for optimizing the current parameter values ​​of one or more feature parameters of the multimedia file and optimizing one or more feature parameters based on the analysis results is consistent with the description of steps S101-S103, and will not be repeated here.

[0068] like Figure 3 As shown, this embodiment of the invention provides an application management device 300, including: a file determination module 301, a parameter determination module 302, and a keep-alive execution module 303; wherein,

[0069] The file determination module 301 is used to determine the multimedia files contained in the application;

[0070] The parameter determination module 302 is used to perform optimization analysis on the current parameter values ​​of one or more feature parameters of the multimedia file, and adjust the multimedia file according to the analysis results, wherein the adjusted multimedia file includes optimized parameter values ​​corresponding to one or more feature parameters;

[0071] The keep-alive module 303 is used to run the adjusted multimedia file based on the optimized parameter values, so as to keep the application alive.

[0072] This invention also provides an electronic device for managing applications, comprising: one or more processors; and a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method provided in any of the above embodiments.

[0073] This invention also provides a computer-readable medium having a computer program stored thereon, which, when executed by a processor, implements the method provided in any of the above embodiments.

[0074] Figure 4 An exemplary system architecture 400 is shown, which can be applied to a method or apparatus for managing an application according to embodiments of the present invention.

[0075] like Figure 4As shown, system architecture 400 may include terminal devices 401, 402, and 403, a network 404, and a server 405. Network 404 serves as the medium for providing communication links between terminal devices 401, 402, and 403 and server 405. Network 404 may include various connection types, such as wired or wireless communication links, or fiber optic cables, etc.

[0076] Users can use terminal devices 401, 402, and 403 to interact with server 405 via network 404 to receive or send messages, etc. Various client applications can be installed on terminal devices 401, 402, and 403, such as e-commerce client applications, web browser applications, search applications, instant messaging tools, and email clients.

[0077] Terminal devices 401, 402, and 403 can be various electronic devices with displays and supporting various client applications, including but not limited to smartphones, tablets, laptops, and desktop computers.

[0078] Server 405 can be a server that provides various services, such as a background management server that supports client applications used by users through terminal devices 401, 402, and 403. The background management server can process received requests to obtain the current parameter values ​​of one or more characteristic parameters of a multimedia file and return the corresponding current parameter values ​​to the terminal device.

[0079] It should be noted that the management application method provided in the embodiments of the present invention is generally executed by terminal devices 401, 402, and 403, and correspondingly, the management application device is generally disposed in terminal devices 401, 402, and 403.

[0080] It should be understood that Figure 4 The number of terminal devices, networks, and servers shown is merely illustrative. Depending on implementation needs, any number of terminal devices, networks, and servers can be included.

[0081] The following is for reference. Figure 5 It shows a schematic diagram of the structure of a computer system 500 suitable for implementing a terminal device of the present invention. Figure 5 The terminal device shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of the present invention.

[0082] like Figure 5As shown, the computer system 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes based on programs stored in read-only memory (ROM) 502 or programs loaded from storage section 508 into random access memory (RAM) 503. The RAM 503 also stores various programs and data required for the operation of the system 500. The CPU 501, ROM 502, and RAM 503 are interconnected via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0083] The following components are connected to I / O interface 505: an input section 506 including a keyboard, mouse, etc.; an output section 507 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN card, modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to I / O interface 505 as needed. A removable medium 511, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on drive 510 as needed so that computer programs read from it can be installed into storage section 508 as needed.

[0084] In particular, according to the embodiments disclosed in this invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this invention include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 509, and / or installed from removable medium 511. When the computer program is executed by central processing unit (CPU) 501, it performs the functions defined above in the system of this invention.

[0085] It should be noted that the computer-readable medium shown in this invention can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this invention, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this invention, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media can also be any computer-readable medium other than computer-readable storage media, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.

[0086] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0087] The modules and / or units described in the embodiments of the present invention can be implemented in software or hardware. The described modules and / or units can also be located in a processor; for example, a processor can be described as including a file determination module, a parameter determination module, and a keep-alive execution module. The names of these modules do not necessarily limit the module itself; for example, the file determination module can also be described as "a module for determining multimedia files included in an application."

[0088] In another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiments; or it may exist independently and not assembled into the device. The computer-readable medium carries one or more programs that, when executed by the device, cause the device to: determine multimedia files included in an application; perform optimization analysis on the current parameter values ​​of one or more feature parameters of the multimedia file, and adjust the multimedia file according to the analysis results, wherein the adjusted multimedia file includes optimized parameter values ​​corresponding to the one or more feature parameters; and run the adjusted multimedia file based on the optimized parameter values ​​to keep the application alive.

[0089] Embodiments of the present invention can optimize and analyze the current parameter values ​​of one or more feature parameters of multimedia files included in an application, adjust the multimedia files according to the analysis results, and keep the application alive by running the adjusted multimedia files. Embodiments of the present invention overcome the problems of poor application keep-alive performance and high resource consumption in the prior art, and improve the user experience of using push services in applications.

[0090] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can occur depending on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.

Claims

1. A method for managing applications, characterized in that, include: Identify the multimedia files included in the application; The current parameter values ​​of one or more feature parameters of the multimedia file are optimized and analyzed, and the multimedia file is adjusted according to the analysis results. The adjusted multimedia file includes optimized parameter values ​​corresponding to one or more feature parameters. The step of optimizing and analyzing the current parameter values ​​of one or more feature parameters of the multimedia file, and adjusting the multimedia file based on the analysis results, includes: for each feature parameter's current parameter value, performing the following operations: comparing the current parameter value with a set reference range; if the comparison result indicates that the current parameter value does not match the set reference range, then determining an optimized parameter value corresponding to the feature parameter based on the set reference range; and adjusting the multimedia file based on the optimized parameter values ​​of one or more feature parameters. The adjustment of the multimedia file includes: determining the parameter type for the target feature parameter, wherein the target feature parameter is a feature parameter whose current parameter value does not match the corresponding set reference range among one or more of the feature parameters; when the number of target feature parameters is one or more, and the parameter type of any target feature parameter indicates an attribute feature, generating a new multimedia file based on the optimized parameter value of the target feature parameter and the multimedia file; when the number of target feature parameters is one or more, and the parameter type of all target feature parameters indicates a playback feature, changing the current parameter value in the multimedia file corresponding to the target feature parameter to the optimized parameter value. Based on the optimized parameter values, the adjusted multimedia file is run to keep the application alive.

2. The method according to claim 1, characterized in that, The multimedia files included in the determined application include: The application searches for multimedia files in the designated storage space, and if the multimedia files are determined to be in a normal state, the application locates the multimedia files.

3. The method according to claim 2, characterized in that, The determination of the multimedia files included in the application further includes: If no multimedia file is found in the designated storage space corresponding to the application, or if a multimedia file is found that is in an abnormal state, Generate a new multimedia file for the application, and use the new multimedia file as the multimedia file of the application.

4. The method according to claim 1, characterized in that, In the case that the multimedia file is an audio file The characteristic parameters include any one or more of the following: audio sampling rate, audio sampling bit depth, number of audio channels, audio amplitude, audio duration, audio format, playback volume, and playback interval.

5. The method according to claim 1, characterized in that, Also includes: Set the file execution process for the multimedia file; Running the adjusted multimedia file includes: The running process of the file is used to monitor the running status of the multimedia file. If the running status of the multimedia file is found to be abnormal, the multimedia file is rerun.

6. The method according to claim 5, characterized in that, Further includes: The main process of the application manages the file execution process; If the main process detects that the file running process is in a non-running state, the main process starts the file running process to a running state so that the multimedia file can be run using the file running process.

7. A device for managing applications, characterized in that, include: The module includes a file determination module, a parameter determination module, and a keep-alive execution module; among them, The file determination module is used to determine the multimedia files contained in the application; The parameter determination module is used to perform optimization analysis on the current parameter values ​​of one or more feature parameters of the multimedia file, and adjust the multimedia file according to the analysis results. The adjusted multimedia file includes optimized parameter values ​​corresponding to the one or more feature parameters. The optimization analysis on the current parameter values ​​of one or more feature parameters of the multimedia file, and the adjustment of the multimedia file according to the analysis results, includes: for each feature parameter's current parameter value, performing the following operations: comparing the current parameter value with a set reference range; if the comparison result indicates that the current parameter value does not match the set reference range, then determining an optimized parameter value corresponding to the feature parameter according to the set reference range; and adjusting the multimedia file based on the optimized parameter values ​​of one or more feature parameters. The adjustment of the multimedia file includes: determining the parameter type for the target feature parameter, wherein the target feature parameter is a feature parameter whose current parameter value does not match the corresponding set reference range among one or more of the feature parameters; when the number of target feature parameters is one or more, and the parameter type of any target feature parameter indicates an attribute feature, generating a new multimedia file based on the optimized parameter value of the target feature parameter and the multimedia file; when the number of target feature parameters is one or more, and the parameter type of all target feature parameters indicates a playback feature, changing the current parameter value corresponding to the target feature parameter in the multimedia file to the optimized parameter value; and executing the keep-alive module, which is used to run the adjusted multimedia file based on the optimized parameter value to keep the application alive.

8. An electronic device, characterized in that, include: One or more processors; Storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any one of claims 1-6.

9. A computer-readable medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the method as described in any one of claims 1-6.