Application program operation method and apparatus, and terminal and storage medium

By obtaining terminal hardware information and dynamically switching operation mode, the application lag and unresponsive problems caused by limited memory of terminal devices are solved, and the user experience is improved.

WO2024230232A1PCT designated stage expired Publication Date: 2024-11-14ZTE CORP
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/071844
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-05-10
Filing Date
2024-01-11
Publication Date
2024-11-14

AI Technical Summary

Technical Problem

The terminal device has limited memory, which leads to lag or unresponsiveness when the application runs, affecting the user experience.

Method used

By obtaining terminal hardware information, we can determine whether the preset standards are met. If it does not, run the application in low memory mode and dynamically switch to normal operation mode to reduce memory consumption and avoid lag and unresponsiveness.

Benefits of technology

It effectively reduces the number of lags and unresponsive times when the application runs, improves the user experience, and ensures that the application runs stably under the effective consumption of terminal hardware.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024071844_14112024_PF_FP_ABST
    Figure CN2024071844_14112024_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the embodiments of the present application are an application program operation method and apparatus, and a terminal and a storage medium. The method comprises: in response to a starting operation for an application program, acquiring terminal hardware information, and when the terminal hardware information does not conform to preset hardware information, operating the application program on the basis of a low-memory mode; and when the terminal hardware information conforms to the preset hardware information, operating the application program in a normal operation mode, and acquiring, in real time in the normal operation mode, an available memory for operating interface operation information under the current interface and a terminal, performing dynamic switching between the low-memory mode and the normal operation mode according to the available memory and the interface operation information, and operating the application program on the basis of the low-memory mode or the normal operation mode.
Need to check novelty before this filing date? Find Prior Art

Description

Application program running method, device, terminal and storage medium

[0001] Related applications

[0002] This application claims priority to Chinese patent application No. 202310532559.8 filed on May 10, 2023, the entire contents of which are incorporated by reference into this application. Technical Field

[0003] The embodiments of the present application relate to the field of communication technology, and in particular to a method, device, terminal, and storage medium for running an application. Background Art

[0004] With the popularization of terminals and the rapid development of mobile Internet, various industries including banks, game companies, terminal equipment manufacturers, and various Internet companies (online games, browsers, Alipay, travel, social networking, etc.) have developed their own terminal-based applications for users to use.

[0005] Currently, in order to better attract users' attention, many pictures or animations are added to the application interface. Due to the limited memory of the terminal, this practice will increase memory usage, causing the application to become stuck or even unresponsive, seriously affecting the user experience.

[0006] Summary of the Invention

[0007] In view of this, the embodiments of the present application provide an application running method, device, terminal and storage medium, which can effectively reduce the number of freezes or unresponsiveness during application running, thereby greatly improving the user experience.

[0008] In a first aspect, an embodiment of the present application provides a method for running an application program, the method being applicable to a terminal; the method comprising:

[0009] In response to a startup operation for an application, obtaining terminal hardware information; wherein the terminal hardware information is used to characterize the hardware performance of the terminal;

[0010] Determine whether the terminal hardware information meets the preset hardware information;

[0011] When the terminal hardware information does not meet the preset hardware information, the application is run in low memory mode; wherein the low memory mode is a working mode that reduces the terminal's available memory consumption;

[0012] When the terminal hardware information meets the preset hardware information, the application runs in normal operating mode, and obtains the interface operating information of the current interface and the available memory of the terminal in real time in normal operating mode, dynamically switches between low memory mode and normal operating mode according to the available memory and interface operating information, and runs the application based on low memory mode or normal operating mode; among which, the current interface is the program interface of the currently running application, and the normal operating mode is a working mode that normally consumes the available memory of the terminal.

[0013] In a second aspect, an embodiment of the present application provides an application running device, wherein the device is applicable to a terminal; the device includes:

[0014] An acquisition module, configured to acquire terminal hardware information in response to a startup operation on an application program; wherein the terminal hardware information is used to characterize the hardware performance of the terminal;

[0015] The judgment module is used to judge whether the terminal hardware information conforms to the preset hardware information;

[0016] A first running module is configured to run the application in a low memory mode when the terminal hardware information does not conform to the preset hardware information; wherein the low memory mode is a working mode that reduces the consumption of available memory of the terminal;

[0017] The second operation module is used to run the application in the normal operating mode when the terminal hardware information meets the preset hardware information, and obtain the interface operation information of the current interface and the available memory of the terminal in real time in the normal operating mode, dynamically switch between the low memory mode and the normal operating mode according to the available memory and the interface operation information, and run the application based on the low memory mode or the normal operating mode; wherein, the current interface is the program interface of the currently running application, and the normal operating mode is a working mode that normally consumes the available memory of the terminal.

[0018] In a third aspect, an embodiment of the present application provides a terminal, which includes: a processor and a memory, and the processor is used to execute an application running program stored in the memory to implement the above-mentioned application running method.

[0019] In a fourth aspect, an embodiment of the present application provides a storage medium, wherein the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the above-mentioned application running method. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] FIG1 is a flow chart of an embodiment of a method for running an application program provided in an embodiment of the present application;

[0021] FIG2 is a schematic diagram of an interface for switching operation modes provided in an embodiment of the present application;

[0022] FIG3 is a flow chart of another embodiment of a method for running an application program provided in an embodiment of the present application;

[0023] FIG4 is a schematic diagram of an interface of a settings menu provided in an embodiment of the present application;

[0024] FIG5 is a block diagram of an embodiment of an application program running device provided in an embodiment of the present application;

[0025] FIG6 is a schematic structural diagram of a terminal provided in an embodiment of the present application. DETAILED DESCRIPTION

[0026] To make the purpose, technical solutions, and advantages of the embodiments of this application more clear, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0027] To facilitate understanding of the embodiments of the present application, further explanation will be given below with reference to specific embodiments in conjunction with the accompanying drawings. The embodiments do not constitute a limitation on the embodiments of the present application.

[0028] An embodiment of the present application provides a method for running an application program. The method is applicable to a terminal, which may be an electronic device such as a mobile phone, a computer, or a tablet computer capable of installing an application program. Referring to FIG. 1 , a flowchart of an embodiment of a method for running an application program is shown. As shown in FIG. 1 , the method specifically includes the following steps:

[0029] Step 101, in response to a startup operation for an application, obtaining terminal hardware information;

[0030] The startup operation can be understood as a user performing an operation such as single-clicking or double-clicking on the program icon of the application program, so as to open the application program for the user to use through the startup operation.

[0031] When the application is started, the terminal hardware information of the terminal can be obtained through the preset system interface. The terminal hardware information refers to the hardware information data of the terminal when it leaves the factory and is not used. The terminal hardware information is used to characterize the hardware performance of the terminal, that is, the terminal hardware information can reflect the quality of the terminal's hardware performance.

[0032] Step 102, determining whether the terminal hardware information conforms to the preset hardware information;

[0033] Since the terminal hardware information can characterize the hardware performance of the terminal, in this embodiment, the quality of the terminal hardware performance is intuitively determined by whether the terminal hardware information conforms to the preset hardware information. If the terminal hardware information does not conform to the preset hardware information, it is determined that the hardware performance of the terminal is poor, and the terminal cannot support the normal operation of the application, that is, the application is prone to freeze or even become unresponsive when running on the terminal. At this time, step 103 can be executed to reduce the number of freezes or unresponsiveness during the application operation.

[0034] If the terminal hardware information meets the preset hardware information, it is determined that the hardware performance of the terminal is good, and the terminal can support the normal operation of the application, that is, the application is not prone to lag or even unresponsiveness when running on the terminal. However, as the available memory of the terminal is occupied more, the application may become stuck or even unresponsive. At this time, step 104 can be executed to reduce the number of times the application is stuck or unresponsive.

[0035] The terminal hardware information includes at least the following information: CPU (Central Processing Unit), memory, GPU (Graphics Processing Unit), and disk space. The CPU, memory, GPU, and disk space are all hardware information data of the terminal when it leaves the factory and is not used.

[0036] In actual application, if the hardware information data of the CPU is within the preset CPU data range, or the hardware information data of the memory is within the preset memory data range, or the hardware information data of the GPU is within the preset GPU data range, or the hardware information data of the disk space is within the preset disk space data range, the terminal hardware information is deemed to comply with the preset hardware information; if the hardware information data of the CPU is not within the preset CPU data range, the hardware information data of the memory is not within the preset memory data range, the hardware information data of the GPU is not within the preset GPU data range, and the hardware information data of the disk space is not within the preset disk space data range, the terminal hardware information is deemed to not comply with the preset hardware information.

[0037] Step 103: running the application program in low memory mode;

[0038] Among them, low memory mode is a working mode that reduces the consumption of terminal available memory; in low memory mode, it can effectively reduce the consumption of terminal available memory when the application is running, so that the terminal can ensure that the application will not experience lag or unresponsiveness during operation.

[0039] Step 104: The application runs in the normal operating mode, and in the normal operating mode, the interface operating information of the current interface and the available memory of the terminal are obtained in real time, and the low memory mode and the normal operating mode are dynamically switched according to the available memory and the interface operating information, and the application runs in the low memory mode or the normal operating mode.

[0040] The current interface is the program interface of the currently running application, and the normal operation mode is a working mode that normally consumes the available memory of the terminal.

[0041] In specific implementation, when the terminal hardware information meets the preset hardware information, it means that the terminal can currently meet the hardware consumption when the application is running. At this time, the application runs in normal operating mode on the terminal. When the application runs in normal operating mode, in order to determine in real time whether the terminal hardware meets the operating consumption of the current interface to avoid freezes or even no response, in this embodiment, the interface operation information and the available memory of the terminal can be obtained in real time, and the low memory mode and normal operating mode can be dynamically switched according to the available memory and interface operation information, so that when the terminal's available memory is low, the application can run in low memory mode, effectively reducing the number of freezes or no responses during application operation, thereby greatly improving the user experience.

[0042] The application running method provided in the embodiment of the present application can enable the application to run in a low-memory mode that reduces the terminal's available memory consumption when the terminal hardware information does not conform to the preset hardware information. When the terminal hardware information conforms to the preset hardware information, intelligent adjustment of the normal running mode and the low-memory mode is implemented, so that the application can meet the consumption of the terminal hardware during operation, effectively reducing the number of times the application becomes stuck or unresponsive during operation, thereby greatly improving the user experience.

[0043] The above-mentioned interface operation information includes: frame rate and required operation memory, wherein the frame rate is the frequency (rate) at which the bitmap interface image in units of frames appears continuously on the terminal display, and the required operation memory is the memory consumed when the current interface operates normally.

[0044] In one embodiment, the process of dynamically switching between the low memory mode and the normal operating mode according to the available memory and the interface operation information in step 104 may be implemented through steps A1 to A4:

[0045] Step A1: generating an operation mode switching interface when the required operation memory is greater than the available memory or the frame rate is less than the preset frame rate;

[0046] The required running memory is greater than the available memory, which directly indicates that the terminal's hardware cannot support the normal consumption of the current interface during operation. The frame rate is less than the preset frame rate, which means that the interface image of the current interface has dropped frames, which can also indirectly indicate that the terminal's hardware cannot support the normal consumption of the current interface during operation. When the above situation occurs, it means that if the application is still running in normal operating mode, it will be stuck or unresponsive. Therefore, in this embodiment, the user can independently switch between low memory mode and normal operating mode through the generated operating mode switching interface, so that the application can run in low memory mode, reducing the number of times the application is stuck or unresponsive during operation.

[0047] Step A2, in response to a determination operation on a switch control in the operation mode switching interface, switching from the normal operation mode to the low memory mode;

[0048] Step A3, in response to a confirmation operation on a cancel control in the operation mode switching interface, maintaining the normal operation mode;

[0049] Typically, the generated operating mode switching interface is displayed on the current interface of the application. For ease of understanding, FIG2 shows an interface diagram of an operating mode switching interface. As shown in FIG2 , the operating mode switching interface includes a switch control 201, a cancel control 202, and a prompt of “whether to switch to low memory mode”. If the user selects the switch control, then the normal operating mode is switched to the low memory mode, so that the application runs in the low memory mode; if the user selects the cancel control, then the normal operating mode is used, that is, the application still runs in the normal operating mode. At this time, the user actually knows that the available memory of the terminal is at a low level, and the user can manually clean up the memory.

[0050] Step A4: In the low memory mode, if it is detected that the required operating memory of any current interface is less than the available memory or the frame rate is greater than the preset frame rate, the low memory mode is switched to the normal operating mode.

[0051] In this embodiment, if the running memory required for a current interface in the application is greater than the available memory, or the frame rate is less than the preset frame rate, the application can be made to always run in low memory mode through step A2. However, when the application runs in low memory mode, the available memory consumption is reduced by reducing the animations, pictures, etc. on the current interface. If the application always runs in low memory mode, the user's interest in using the application will be greatly reduced. Therefore, the terminal can detect that the running memory required for any current interface is less than the available memory or the frame rate is greater than the preset frame rate, and then automatically switch from low memory mode to normal running mode to enable the application to run in normal running mode.

[0052] The aforementioned "any current interface" refers to any other program interface within the application, excluding the current interface corresponding to the interface operating information during dynamic mode switching based on available memory and interface operating information. This intelligent adjustment between normal operation mode and low memory mode, when the terminal hardware information meets the preset hardware information, ensures that the application's runtime meets the terminal hardware requirements, effectively reducing the number of times the application freezes or becomes unresponsive during runtime, thereby greatly improving the user experience.

[0053] In one embodiment, the process of running the application in low memory mode may be implemented through steps B1 to B4:

[0054] Step B1, determining a memory difference based on the required running memory and the available memory;

[0055] The above-mentioned memory difference is obtained by subtracting the available memory from the required running memory. Existing technologies for memory optimization mainly focus on the system level. Monitoring and killing background applications is a system-level operation. For applications actually used by users, they can only observe the system status at this time. The applications themselves cannot be optimized. When the system memory is insufficient, it is easy to experience lag or even unresponsiveness. In this embodiment, the terminal can be optimized at the system level and / or application level based on the memory difference, so that the application runs in an operating mode that consumes less available memory, which can effectively reduce the occurrence of lag or unresponsiveness during application operation.

[0056] Step B2: When the memory difference is within the first memory threshold, use the application side optimization method to process and run the application; or

[0057] This application-side optimization method includes at least the following: reducing image resolution, replacing images with text, clearing cached data, releasing unused objects and programs, and deregistering components. This method is used to optimize application-level memory on the terminal to reduce the number of times an application freezes or becomes unresponsive.

[0058] Step B3: When the memory difference is within the second memory threshold range, the terminal system of the terminal is processed and operated using a system-side optimization method; or

[0059] This system-side optimization method includes at least the following: disabling system animations and limiting the number of application processes. The number of application processes can be limited to 4, 6, or 8, depending on actual needs and is not limited here. Using this system-side optimization method to optimize terminal system-level memory can also reduce the number of times an application freezes or becomes unresponsive while running.

[0060] Step B4: When the memory difference is within a third memory threshold range, the application is processed and run using an application-side optimization method, and the terminal system of the terminal is processed and run using a system-side optimization method;

[0061] The maximum memory threshold in the first memory threshold range is smaller than the minimum memory threshold in the second memory threshold range, and the maximum memory threshold in the second memory threshold range is smaller than the minimum memory threshold in the third memory threshold range.

[0062] When the memory difference is large, using only the system-side optimization method or the application-side optimization method alone cannot perform memory optimization well. In this case, the system-side optimization method and the application-side optimization method can be used together to perform memory optimization.

[0063] In this embodiment, the threshold ranges of the first memory threshold range, the second memory threshold range, and the third memory threshold range can be set according to actual needs and are not limited here. In actual use, when the memory difference is within the first memory threshold range, the system-side optimization method can be used to process and run the application, or when the memory difference is within the second memory threshold range, the application-side optimization method can be used to process and run the application, or when the memory difference is within the first or second memory threshold range, the application-side optimization method can be used to process and run the application, and the system-side optimization method can be used to process and run the terminal system of the terminal. The specific memory optimization method is not limited here.

[0064] In addition to adjusting the application's operating mode as described in the embodiment of FIG. 1 , the user can also independently adjust the application's operating mode during the application's operation. Referring to FIG. 3 , another embodiment of a method for operating an application is shown. As shown in FIG. 3 , the method specifically includes the following steps:

[0065] Step 301: In response to a startup operation for an application, terminal hardware information is obtained; wherein the terminal hardware information is used to characterize the hardware performance of the terminal;

[0066] Step 302, determining whether the terminal hardware information conforms to the preset hardware information;

[0067] If the terminal hardware information does not conform to the preset hardware information, execute step 303 ; if the terminal hardware information conforms to the preset hardware information, execute step 304 .

[0068] Step 303: Run the application program in low memory mode; wherein the low memory mode is a working mode that reduces the consumption of available memory of the terminal;

[0069] Step 304: The application is running in the normal operating mode. In response to an opening operation on a setting control in the application, a setting menu corresponding to the setting control is displayed on the current interface. The setting menu includes a low memory mode switch control and a normal operating mode control.

[0070] FIG4 shows a schematic diagram of an interface of a setting menu, wherein the setting menu 400 includes a low memory mode control 401 and a normal operating mode control 402 , so that the user can automatically switch the application operating mode through the low memory mode control and the normal operating mode control.

[0071] Step 305 , in response to a selection operation on the low memory mode control, switching from the normal operation mode to the low memory mode;

[0072] Currently, when an application is running in normal operating mode, when a user performs a selection operation such as single-clicking or double-clicking on a low memory mode control, the application can be switched from normal operating mode to low memory mode.

[0073] Step 306 : In response to a selection operation on the normal operating mode control, switching from the low memory mode to the normal operating mode.

[0074] Currently, when an application is running in low memory mode, when a user performs a selection operation such as single-clicking or double-clicking on a normal operating mode control, the application can be switched from low memory mode to normal operating mode.

[0075] The application running method provided in the embodiment of the present application can realize autonomous adjustment of the application's running mode through the low memory mode control and the normal running mode control on the setting menu, so that the application can meet the consumption of terminal hardware during operation, effectively reduce the number of times the application becomes stuck or unresponsive during operation, and increase the interactivity between the application and the user, thereby improving the user experience.

[0076] The present application embodiment provides an application running device, which is applicable to a terminal. Referring to FIG5 , there is shown a block diagram of an embodiment of the application running device provided by the present application embodiment. As shown in FIG5 , the device may include:

[0077] The acquisition module 501 is configured to acquire terminal hardware information in response to a startup operation on an application program; wherein the terminal hardware information is used to characterize the hardware performance of the terminal;

[0078] The judging module 502 is used to judge whether the terminal hardware information conforms to the preset hardware information;

[0079] The first running module 503 is configured to run the application in a low memory mode when the terminal hardware information does not conform to the preset hardware information; wherein the low memory mode is a working mode that reduces the consumption of available memory of the terminal;

[0080] The second operation module 504 is used to run the application in the normal operation mode when the terminal hardware information meets the preset hardware information, and obtain the interface operation information of the current interface and the available memory of the terminal in real time in the normal operation mode, dynamically switch between the low memory mode and the normal operation mode according to the available memory and the interface operation information, and run the application based on the low memory mode or the normal operation mode; wherein, the current interface is the program interface of the currently running application, and the normal operation mode is a working mode that normally consumes the available memory of the terminal.

[0081] The application running device provided by the embodiment of the present application includes: in response to a startup operation for an application, obtaining terminal hardware information, and determining whether the terminal hardware information meets the preset hardware information; if the terminal hardware information does not meet the preset hardware information, running the application based on low memory mode; if the terminal hardware information meets the preset hardware information, running the application in normal running mode, and in normal running mode, obtaining interface running information of the current interface and the available memory of the terminal in real time, dynamically switching between low memory mode and normal running mode according to the available memory and interface running information, and running the application based on low memory mode or normal running mode. The present application can enable the application to run in low memory mode that reduces terminal available memory consumption when the terminal hardware information does not meet the preset hardware information, that is, when the terminal cannot support the normal operation of the application, and when the terminal hardware information meets the preset hardware information, that is, when the terminal can support the normal operation of the application, dynamically switching between low memory mode and normal running mode in real time according to the interface running information and the available memory of the terminal, so that when the available memory of the terminal is low, the application can run in low memory mode, effectively reducing the number of freezes or unresponsiveness, thereby greatly improving the user experience.

[0082] Figure 6 is a schematic diagram of the structure of a terminal provided in an embodiment of the present application. The electronic device 600 shown in Figure 6 includes: at least one processor 601, memory 602, at least one network interface 604, and other user interfaces 603. The various components in terminal 600 are coupled together via a bus system 605. Bus system 605 is used to enable connection and communication between these components. In addition to including a data bus, bus system 605 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, in Figure 6, various buses are labeled as bus system 605.

[0083] The user interface 603 may include a display, a keyboard, or a pointing device (eg, a mouse, a trackball, a touchpad, or a touch screen).

[0084] The memory 602 in the embodiment of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate synchronous DRAM (DDRSDRAM), enhanced synchronous DRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM bus random access memory (DRRAM). The memory 602 described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0085] In some embodiments, the memory 602 stores the following elements, executable units, or data structures, or a subset thereof, or an extended set thereof: an operating system 6021 and application programs 6022 .

[0086] The operating system 6021 includes various system programs, such as a framework layer, a core library layer, and a driver layer, for implementing various basic services and processing hardware-based tasks. The application 6022 includes various application programs, such as a media player and a browser, for implementing various application services. The program implementing the method of the embodiment of the present application can be included in the application 6022.

[0087] In the embodiment of the present application, by calling the program or instruction stored in the memory 602, which may be the program or instruction stored in the application 6022, the processor 601 is used to execute the method steps provided by each method embodiment.

[0088] The methods disclosed in the above embodiments of the present application can be applied to or implemented by processor 601. Processor 601 may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by hardware integrated logic circuits in processor 601 or software instructions. The above processor 601 can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The various methods, steps, and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of the present application can be directly implemented and executed by a hardware decoding processor, or by a combination of hardware and software units in the decoding processor. The software units can be located in a storage medium mature in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, etc. The storage medium is located in the memory 602 , and the processor 601 reads the information in the memory 602 and completes the steps of the above method in combination with its hardware.

[0089] The embodiments described herein may be implemented using hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described herein, or a combination thereof.

[0090] For software implementation, the technology described herein can be implemented by a unit that performs the functions described herein. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.

[0091] The terminal provided in this embodiment can be a terminal as shown in Figure 6, which can execute all the steps of the application running method shown in Figures 1 and 3, and thus achieve the technical effects of the application running method shown in Figures 1 and 3. Please refer to the relevant descriptions of Figures 1 and 3 for details. For the sake of brevity, they will not be repeated here.

[0092] The present application also provides a storage medium (computer-readable storage medium). The storage medium stores one or more programs. The storage medium may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, hard disk, or solid-state drive; and the memory may also include a combination of the aforementioned types of memory.

[0093] When one or more programs in the storage medium can be executed by one or more processors, the above-mentioned application program running method can be implemented.

[0094] The processor is used to execute the application running program stored in the memory to implement the steps of the application running method.

[0095] Professionals should also be further aware that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0096] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein may be implemented using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0097] The specific implementation methods described above further illustrate the purpose, technical solutions and beneficial effects of this application. It should be understood that the above description is only the specific implementation methods of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of this application should be included in the scope of protection of this application.

Claims

1. A method for running an application, wherein: The method is applicable to a terminal; the method comprises: In response to a startup operation for an application, obtaining terminal hardware information; wherein the terminal hardware information is used to characterize the hardware performance of the terminal; Determining whether the terminal hardware information conforms to the preset hardware information; When the terminal hardware information does not conform to the preset hardware information, the application is run based on a low memory mode; wherein the low memory mode is a working mode that reduces the consumption of available memory of the terminal; When the terminal hardware information conforms to the preset hardware information, the application runs in the normal operating mode, and in the normal operating mode, the interface operating information of the current interface and the available memory of the terminal are obtained in real time, and the low memory mode and the normal operating mode are dynamically switched according to the available memory and the interface operating information, and the application runs based on the low memory mode or the normal operating mode; wherein, the current interface is the program interface of the currently running application, and the normal operating mode is a working mode that normally consumes the available memory of the terminal.

2. The method according to claim 1, wherein: The terminal hardware information includes at least the following information: CPU, memory, GPU, and disk space.

3. The method according to claim 1, wherein: The interface operation information includes: frame rate and required operation memory; The dynamically switching between the low memory mode and the normal operation mode according to the available memory and the interface operation information includes: When the required operating memory is greater than the available memory or the frame rate is less than a preset frame rate, generating an operating mode switching interface; In response to a determination operation on a switch control in the operation mode switching interface, switching from the normal operation mode to the low memory mode; In response to a determination operation on a cancel control in the operation mode switching interface, maintaining the normal operation mode; In the low memory mode, if it is monitored that the required running memory of any of the current interfaces is less than the available memory or the frame rate is greater than the preset frame rate, the low memory mode is switched to the normal running mode.

4. The method according to claim 3, wherein: The running of the application based on the low memory mode includes: Determining a memory difference based on the required operating memory and the available memory; When the memory difference is within the first memory threshold range, using an application-side optimization method to process and run the application; or When the memory difference is within the second memory threshold range, a system-side optimization method is used to process and operate the terminal system of the terminal; or, When the memory difference is within a third memory threshold range, the application-side optimization method is used to process and run the application, and the system-side optimization method is used to process and run the terminal system of the terminal; wherein the maximum memory threshold in the first memory threshold range is less than the minimum memory threshold in the second memory threshold range, and the maximum memory threshold in the second memory threshold range is less than the minimum memory threshold in the third memory threshold range.

5. The method according to claim 4, wherein: The application side optimization method includes at least the following methods: reducing image resolution, replacing images with text, clearing cache data, releasing useless object programs, and unregistering components.

6. The method according to claim 4, wherein: The system side optimization method includes at least the following methods: turning off system animation and limiting the number of application processes.

7. The method according to claim 1, wherein: The method further comprises: In response to an opening operation on a setting control in the application, displaying a setting menu corresponding to the setting control on the current interface, wherein the setting menu includes a low memory mode control and a normal operating mode control; In response to a selection operation on the low memory mode control, switching from the normal operating mode to the low memory mode; In response to a selection operation on the normal operating mode control, switching from the low memory mode to the normal operating mode.

8. An application program running device, wherein: The device is applicable to a terminal; the device comprises: An acquisition module, configured to acquire terminal hardware information in response to a startup operation for an application program; wherein the terminal hardware information is configured to characterize the hardware performance of the terminal; A determination module, configured to determine whether the terminal hardware information conforms to preset hardware information; A first running module, configured to run the application based on a low memory mode when the terminal hardware information does not conform to the preset hardware information; wherein the low memory mode is a working mode that reduces the consumption of available memory of the terminal; The second operation module is configured to, when the terminal hardware information conforms to the preset hardware information, run the application in the normal operation mode, and obtain the interface operation information of the current interface and the available memory of the terminal in real time in the normal operation mode, dynamically switch between the low memory mode and the normal operation mode according to the available memory and the interface operation information, and run the application based on the low memory mode or the normal operation mode; wherein, the current interface is the program interface of the currently running application, and the normal operation mode is a working mode that normally consumes the available memory of the terminal.

9. A terminal, comprising: A processor and a memory, wherein the processor is used to execute an application program running program stored in the memory to implement the application running method according to any one of claims 1 to 7.

10. A storage medium, wherein: The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the application running method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Terminal operating mode switching method, terminal and computer readable storage medium

    CN107632886A

  • Application program startup control method, device, terminal, and readable storage medium

    CN109254803A

  • Smart television player memory adaptation optimization method and device and medium

    CN115334347A

  • Application program running method and device, terminal and storage medium

    CN116643806A

  • Methods, apparatuses and computer program products for enhancing performance and controlling quality of service of devices by using application awareness

    US20140032787A1