Application running method, device, electronic device and storage medium
By detecting and setting virtual memory on the TV, the problem of insufficient memory is solved, and the function expansion of running large memory applications on low-end TVs is realized.
Patent Information
- Application Number
- CN202211570044.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-07
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2042-12-07
AI Technical Summary
The existing TV has small memory and cannot run applications that require large memory, resulting in improved hardware configuration.
By detecting the operation and storage requirements of the target application, if it is greater than the physical operation and storage, use the virtual operation and storage permissions in the preset application information collection to set the TV's storage space to virtual operation and run the required applications.
Running applications that require large memory on TVs with smaller physical memory has expanded the functions of low-end TVs and avoids the need for improved hardware configuration.
Smart Images

Figure CN116156258B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of television, and in particular to an application running method, device, electronic device and storage medium. Background Art
[0002] In the prior art, some TVs have small RAM. For example, the RAM capacity of some low-end TVs is less than 1 Gigabyte (GB). As a result, some applications that require large RAM cannot run. Therefore, in order to run the above applications that require large RAM, it is often necessary to improve the hardware configuration of the TV.
[0003] It can be seen that how to run applications that require larger physical memory on a TV with smaller physical memory is a technical issue worthy of attention. Summary of the invention
[0004] In view of this, in order to solve some or all of the above-mentioned technical problems, the embodiments of the present application provide an application running method, device, electronic device and storage medium.
[0005] In a first aspect, an embodiment of the present application provides an application running method, the method comprising:
[0006] detecting a running operation for a target application, wherein the running operation indicates running the target application on a target television;
[0007] In response to the running operation, determining a target operating memory occupied by running the target application;
[0008] Determine whether the target RAM is greater than or equal to the physical RAM of the target TV;
[0009] In a case where the target running memory is greater than or equal to the physical running memory, determining whether the preset application information set includes the target application information of the target application, wherein the application indicated by the application information in the preset application information set has permission to open the virtual running memory;
[0010] In a case where the preset application information set includes the target application information, setting the target storage space of the target TV as a virtual operating memory;
[0011] The target application is run through the virtual memory.
[0012] In a possible implementation, after running the target application through the virtual memory, the method further includes:
[0013] Determine whether the target application has exited operation;
[0014] In response to the target application exiting operation, the virtual operating memory is closed.
[0015] In a possible implementation, the running the target application through the virtual memory includes:
[0016] Determine the sum of the space size of the virtual memory and the space size of the physical memory to obtain a first space size;
[0017] Determine the space size of the target storage to obtain a second space size;
[0018] Determining whether the first space size is greater than or equal to the second space size;
[0019] When the first space size is greater than or equal to the second space size, the target application is run through the virtual memory and the physical memory.
[0020] In a possible implementation, each piece of application information in the preset application information set corresponds to a pre-stored running memory information, and the running memory represented by the running memory information is determined based on the running memory occupied by running the corresponding application; and
[0021] The determining the target operating memory occupied by running the target application includes:
[0022] A target operating memory occupied by running the target application is determined from the pre-stored operating memory information set corresponding to the preset application information set.
[0023] In a possible implementation, the running memory represented by the running memory information is a preset multiple of the running memory occupied by the corresponding application, wherein the preset multiple is greater than 1.
[0024] In a possible implementation manner, after determining whether the preset application information set includes the target application information of the target application, the method further includes:
[0025] In a case where the preset application information set does not include the target application information, prompt information is generated to indicate that the target application cannot be run.
[0026] In a possible implementation manner, after determining whether the target RAM is greater than or equal to the physical RAM of the target TV, the method further includes:
[0027] When the target operating memory is smaller than the physical operating memory, the target application is run through the physical operating memory.
[0028] In a second aspect, an embodiment of the present application provides an application running device, the device comprising:
[0029] a detection unit, configured to detect a running operation for a target application, wherein the running operation indicates running the target application on a target television;
[0030] A first determining unit, configured to determine, in response to the running operation, a target operating memory occupied by running the target application;
[0031] A second determining unit, configured to determine whether the target RAM is greater than or equal to the physical RAM of the target TV;
[0032] A third determining unit is used to determine whether the preset application information set includes the target application information of the target application when the target running memory is greater than or equal to the physical running memory, wherein the application indicated by the application information in the preset application information set has the permission to open the virtual running memory;
[0033] A setting unit, configured to set the target storage space of the target TV as a virtual memory when the preset application information set includes the target application information;
[0034] The first running unit is used to run the target application through the virtual memory.
[0035] In a possible implementation manner, after running the target application through the virtual memory, the device further includes:
[0036] A fourth determining unit, configured to determine whether the target application has exited operation;
[0037] The closing unit is used to close the virtual memory in response to the target application exiting operation.
[0038] In a possible implementation, the running the target application through the virtual memory includes:
[0039] Determine the sum of the space size of the virtual memory and the space size of the physical memory to obtain a first space size;
[0040] Determine the space size of the target storage to obtain a second space size;
[0041] Determining whether the first space size is greater than or equal to the second space size;
[0042] When the first space size is greater than or equal to the second space size, the target application is run through the virtual memory and the physical memory.
[0043] In a possible implementation, each piece of application information in the preset application information set corresponds to a pre-stored running memory information, and the running memory represented by the running memory information is determined based on the running memory occupied by running the corresponding application; and
[0044] The determining the target operating memory occupied by running the target application includes:
[0045] A target operating memory occupied by running the target application is determined from the pre-stored operating memory information set corresponding to the preset application information set.
[0046] In a possible implementation, the running memory represented by the running memory information is a preset multiple of the running memory occupied by the corresponding application, wherein the preset multiple is greater than 1.
[0047] In a possible implementation manner, after determining whether the preset application information set includes the target application information of the target application, the device further includes:
[0048] A generating unit is used to generate prompt information indicating that the target application cannot be run when the preset application information set does not include the target application information.
[0049] In a possible implementation manner, after determining whether the target operating memory is greater than or equal to the physical operating memory of the target TV, the device further includes:
[0050] The second running unit is configured to run the target application by using the physical running memory when the target running memory is smaller than the physical running memory.
[0051] In a third aspect, an embodiment of the present application provides an electronic device, including:
[0052] Memory for storing computer programs;
[0053] The processor is used to execute the computer program stored in the memory, and when the computer program is executed, the method of any embodiment of the application running method of the first aspect of the present application is implemented.
[0054] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method of any embodiment of the application running method of the first aspect described above is implemented.
[0055] In a fifth aspect, an embodiment of the present application provides a computer program, which includes a computer-readable code. When the computer-readable code is executed on a device, the processor in the device implements a method as in any embodiment of the application running method of the first aspect described above.
[0056] The application running method provided by the embodiment of the present application can detect the running operation for the target application, wherein the running operation indicates running the target application on the target TV, and then, in response to the running operation, determine the target memory occupied by running the target application, and then determine whether the target memory is greater than or equal to the physical memory of the target TV, and then, if the target memory is greater than or equal to the physical memory, determine whether the preset application information set contains the target application information of the target application, wherein the application indicated by the application information in the preset application information set has the permission to open the virtual memory, and then, if the preset application information set contains the target application information, set the target storage space of the target TV to the virtual memory, and finally, run the target application through the virtual memory. Thus, the application whose application information is contained in the preset application information set can be run by opening the virtual memory of the TV, so as to realize running the application with large memory required on the TV with small physical memory, and expand the function of the low-end TV with small physical memory. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] Figure 1 A flowchart of an application operation method provided in an embodiment of the present application;
[0058] Figure 2 A flowchart of another application running method provided in an embodiment of the present application;
[0059] Figure 3 A flowchart of another application running method provided in an embodiment of the present application;
[0060] Figure 4 A schematic diagram of the structure of an application running device provided in an embodiment of the present application;
[0061] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0062] Various exemplary embodiments of the present application will now be described in detail with reference to the accompanying drawings. It should be noted that unless otherwise specifically stated, the relative arrangement of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present application.
[0063] Those skilled in the art will understand that the terms "first" and "second" in the embodiments of the present application are only used to distinguish between different steps, devices, modules and other objects, and do not represent any specific technical meanings, nor do they indicate the logical order between them.
[0064] It should also be understood that in this embodiment, “plurality” may refer to two or more than two, and “at least one” may refer to one, two or more than two.
[0065] It should also be understood that any component, data or structure mentioned in the embodiments of the present application can generally be understood as one or more, unless explicitly limited or otherwise indicated in the context.
[0066] In addition, the term "and / or" in this application is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this application generally indicates that the associated objects before and after are in an "or" relationship.
[0067] It should also be understood that the description of the various embodiments in this application focuses on the differences between the various embodiments, and the same or similar aspects thereof can be referenced to each other, and for the sake of brevity, they will not be described one by one.
[0068] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present application, its application, or uses.
[0069] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the above-mentioned technologies, methods, and equipment should be considered as part of the specification.
[0070] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0071] It should be noted that, in the absence of conflict, the embodiments in this application and the features in the embodiments can be combined with each other. To facilitate the understanding of the embodiments of the present application, the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0072] Figure 1 A flowchart of an application operation method provided in an embodiment of the present application. Figure 1 As shown, the method specifically includes:
[0073] Step 101: Detecting a running operation for a target application, wherein the running operation indicates running the target application on a target television.
[0074] In this embodiment, the target application may be any application installed on the target TV.
[0075] The above-mentioned operation can be performed by touching the screen of the target TV or by using the remote controller of the target TV.
[0076] The target TV may be any TV with an application running function. The target TV may be installed with a preset operating system, such as an Android system.
[0077] Step 102: In response to the running operation, determine the target operating memory occupied by running the target application.
[0078] In this embodiment, the target memory may be the memory occupied by the target application during operation. The size of the target memory may be determined by testing or prediction.
[0079] Step 103: Determine whether the target RAM is greater than or equal to the physical RAM of the target TV.
[0080] In this embodiment, the physical memory may be a hardware parameter predetermined for the target TV.
[0081] 104. When the target running memory is greater than or equal to the physical running memory, determine whether the preset application information set includes the target application information of the target application, wherein the application indicated by the application information in the preset application information set has the permission to enable the virtual running memory.
[0082] In this embodiment, the preset application information set may be specified by a user or set by a developer, and the setting method is not limited here.
[0083] The target application information may represent the target application. As an example, the target application information may be a unique identifier such as a package name of the target application.
[0084] 105 . When the preset application information set includes the target application information, set the target storage space of the target TV as a virtual operating memory.
[0085] In this embodiment, the target storage space may be the storage space of the target TV. The size of the target storage space may be a fixed preset value or a value dynamically determined based on the application. As an example, the target storage space may be the FLASH (a storage space of a TV) of the target TV.
[0086] 106. Run the target application through the virtual memory.
[0087] In this embodiment, the target application may be run through the virtual memory, or may be run through the virtual memory and the physical memory.
[0088] In some optional implementations of this embodiment, the following methods may be used to perform step 106, so as to run the target application through the virtual memory:
[0089] First, the sum of the space size of the virtual memory and the space size of the physical memory is determined to obtain a first space size.
[0090] The first space size may be the sum of the space size of the virtual memory and the space size of the physical memory.
[0091] Afterwards, the space size of the target storage is determined to obtain a second space size.
[0092] Among them, the above-mentioned second space size can be the space size of the target storage.
[0093] Then, it is determined whether the first space size is greater than or equal to the second space size.
[0094] Finally, when the first space size is greater than or equal to the second space size, the target application is run through the virtual memory and the physical memory.
[0095] It can be understood that in the above optional implementation, when the sum of the space size of the virtual memory and the space size of the physical memory is greater than the space size of the target memory, the target application can be run through the virtual memory and the physical memory. Thus, it is achieved that the operating environment is provided for the target application through both the virtual memory and the physical memory, thereby avoiding the lag of the TV to a greater extent.
[0096] Optionally, when the space size of the virtual memory is larger than the space size of the target memory, the target application may be run only through the virtual memory.
[0097] In some optional implementations of this embodiment, each application information in the preset application information set corresponds to a pre-stored running memory information. The running memory represented by the running memory information is determined based on the running memory occupied by the corresponding application. For example, the running memory represented by the running memory information can be a set multiple of the running memory occupied by the corresponding application, or it can be the sum of the running memory occupied by the corresponding application and the preset space size.
[0098] On this basis, the above step 102 may be performed in the following manner to determine the target operating memory occupied by running the target application:
[0099] A target operating memory occupied by running the target application is determined from the pre-stored operating memory information set corresponding to the preset application information set.
[0100] In some cases, the preset application information set can be set in the following manner:
[0101] First, the frequency of the application set running on the target TV set within the target time is obtained.
[0102] The target TV set includes a preset number of TVs whose distances from the target TV running the target application are less than or equal to a preset distance value, and the preset number of TVs whose usage curves have similarities with the target TV running the target application that are greater than or equal to a preset similarity threshold. The usage curve represents the corresponding relationship between the playback content and the usage time.
[0103] Afterwards, from the above application set, a subset of applications whose running frequency is greater than or equal to a preset frequency threshold is determined.
[0104] Then, the application information of each application in the application subset is determined as a preset application information set.
[0105] It can be understood that in the above optional implementation, by pre-storing the operation information, the time between the execution time of the running operation and the running time of the target application can be reduced, thereby improving the running startup speed of the target application.
[0106] In some application scenarios of the above optional implementation methods, the running memory represented by the running memory information is a preset multiple of the running memory occupied by the corresponding application, wherein the preset multiple is greater than 1.
[0107] It can be understood that in the above application scenario, the size of the set virtual memory is larger than the memory required for the target application to run, thereby reducing the probability of the target application running stuck.
[0108] In some optional implementations of this embodiment, after executing the above step 104, the following steps may also be executed:
[0109] In a case where the preset application information set does not include the target application information, prompt information is generated to indicate that the target application cannot be run.
[0110] It can be understood that in the above optional implementation, when the preset application information set does not include the target application information, the user can be informed of the current state of the TV in a timely manner by generating prompt information indicating that the target application cannot run.
[0111] In some optional implementations of this embodiment, after executing the above step 103, the following steps may also be executed:
[0112] When the target operating memory is smaller than the physical operating memory, the target application is run through the physical operating memory.
[0113] It can be understood that in the above optional implementation, when the target memory is smaller than the physical memory, the target application can be run only through the physical memory, and the target application can be run without setting virtual memory.
[0114] The application running method provided by the embodiment of the present application can detect the running operation for the target application, wherein the running operation indicates running the target application on the target TV, and then, in response to the running operation, determine the target memory occupied by running the target application, and then determine whether the target memory is greater than or equal to the physical memory of the target TV, and then, if the target memory is greater than or equal to the physical memory, determine whether the preset application information set contains the target application information of the target application, wherein the application indicated by the application information in the preset application information set has the permission to open the virtual memory, and then, if the preset application information set contains the target application information, set the target storage space of the target TV to the virtual memory, and finally, run the target application through the virtual memory. Thus, the application whose application information is contained in the preset application information set can be run by opening the virtual memory of the TV, so as to realize running the application with large memory required on the TV with small physical memory, and expand the function of the low-end TV with small physical memory.
[0115] Figure 2 A flowchart of another application running method provided in an embodiment of the present application. Figure 2 As shown, the method specifically includes:
[0116] Step 201 : detecting a running operation for a target application, wherein the running operation indicates running the target application on a target television.
[0117] In this embodiment, step 201 and Figure 1 Step 101 in the corresponding embodiment is basically the same and will not be described again here.
[0118] Step 202: In response to the running operation, determine the target operating memory occupied by running the target application.
[0119] In this embodiment, step 202 and Figure 1 Step 102 in the corresponding embodiment is basically the same and will not be described again here.
[0120] Step 203: Determine whether the target RAM is greater than or equal to the physical RAM of the target TV.
[0121] In this embodiment, step 203 and Figure 1 Step 103 in the corresponding embodiment is basically the same and will not be described again here.
[0122] Step 204, when the target running memory is greater than or equal to the physical running memory, determine whether the preset application information set includes the target application information of the target application, wherein the application indicated by the application information in the preset application information set has the permission to open the virtual running memory.
[0123] In this embodiment, step 204 and Figure 1 Step 104 in the corresponding embodiment is basically the same and will not be described again here.
[0124] Step 205: When the preset application information set includes the target application information, the target storage space of the target TV is set as a virtual operating memory.
[0125] In this embodiment, step 205 and Figure 1 Step 105 in the corresponding embodiment is basically the same and will not be described again here.
[0126] 206 , running the target application through the virtual memory.
[0127] In this embodiment, step 206 Figure 1 The step 106 in the corresponding embodiment is essentially the same and will not be described again here.
[0128] 207: Determine whether the target application is to be exited.
[0129] 208. In response to the target application exiting execution, shut down the virtual operating memory.
[0130] It should be noted that, in addition to the above contents, this embodiment may also include Figure 1 The corresponding technical features described in the corresponding embodiments are realized Figure 1 For details, please refer to the technical effects of the application operation method shown. Figure 1 For the sake of brevity, the relevant description is not repeated here.
[0131] The application running method provided by the embodiment of the present application only enables the virtual memory during the running of the target application, thereby preventing the virtual memory from being in a single disabled or available state for a long time. In addition, by closing the virtual memory in time, the input / output (IO) operation frequency of the storage space corresponding to the virtual memory can be reduced, thereby increasing the service life of the above storage space.
[0132] Figure 3 A flowchart of another application running method provided for an embodiment of the present application. This method can be applied to one or more electronic devices such as smart phones, laptops, desktop computers, portable computers, servers, etc. In addition, the execution subject of this method can be hardware or software. When the above-mentioned execution subject is hardware, the execution subject can be one or more of the above-mentioned electronic devices. For example, a single electronic device can execute this method, or multiple electronic devices can cooperate with each other to execute this method. When the above-mentioned execution subject is software, this method can be implemented as multiple software or software modules, or it can be implemented as a single software or software module. It is not specifically limited here.
[0133] The following is an illustrative description of the embodiments of the present application, but it should be noted that the embodiments of the present application may have the features described below, but the following description does not constitute a limitation on the scope of protection of the embodiments of the present application.
[0134] Specifically, if Figure 3 As shown, the method specifically includes:
[0135] Before the application is started, a whitelist (i.e., the preset application information set) is first established. When the application in the whitelist is running, the virtual memory is turned on (i.e., the target storage space of the target TV is set as the virtual memory), and when exiting, the virtual memory is turned off. After the application is started, if the application information of the application is not included in the preset application information set, information on whether to update the preset application information set can be displayed to allow the user to add the application information of the application to the preset application information set.
[0136] After that, after the application is started, it is determined whether the memory required by the application (i.e. the target memory mentioned above) exceeds the physical memory of the machine. If it exceeds, it is further determined whether the application is in the whitelist. If not, the application is run normally.
[0137] Then, if it is not in the whitelist, it will prompt that it cannot run. If it is in the whitelist, it will determine whether the required memory is greater than or equal to the sum of physical memory and virtual memory.
[0138] Then, if the required memory is greater than or equal to the sum of the physical memory and the virtual memory, a prompt will be displayed that the application cannot be run. If the required memory is less than the sum of the physical memory and the virtual memory, the virtual memory will be enabled to run the application in turn, and the virtual memory will be disabled after the application exits.
[0139] Among them, the whitelist is mainly to set how much virtual memory can be enabled for each application.
[0140] Exemplarily, there are two settings as follows:
[0141] Method 1: The virtual memory of each application is set independently, with different sizes. Specifically, the whitelist can include the package name of the application and the virtual memory size corresponding to the application. For example: Com.xxx.xx, 500Mb; Com.yyy.yy, 1024Mb.
[0142] Method 2: Different applications are uniformly set to the same virtual memory. For example, the following method can be used to set: Size = 2014 (indicates the memory size); Com.xxx.xx; Com.yyy.yy.
[0143] It should be noted that, in addition to the contents recorded above, this embodiment may also include the technical features described in the above embodiments, so as to achieve the technical effects of the application running method shown above. Please refer to the above description for details. For the sake of brevity, it will not be repeated here.
[0144] The application running method provided in the embodiment of the present application can dynamically adjust the virtual running memory according to the application, thereby realizing the running of applications with large running memory requirements on small running memory devices.
[0145] Figure 4 A schematic diagram of the structure of an application running device provided in an embodiment of the present application. Specifically comprising:
[0146] A detection unit 401 is used to detect a running operation for a target application, wherein the running operation indicates running the target application on a target TV;
[0147] A first determining unit 402 is used to determine a target operating memory occupied by running the target application in response to the running operation;
[0148] A second determining unit 403 is used to determine whether the target memory is greater than or equal to the physical memory of the target TV;
[0149] A third determining unit 404 is configured to determine whether the preset application information set includes target application information of the target application when the target memory is greater than or equal to the physical memory, wherein the application indicated by the application information in the preset application information set has permission to enable the virtual memory;
[0150] A setting unit 405 is configured to set the target storage space of the target TV as a virtual memory when the preset application information set includes the target application information;
[0151] The first running unit 406 is configured to run the target application through the virtual memory.
[0152] In a possible implementation manner, after running the target application through the virtual memory, the device further includes:
[0153] A fourth determining unit (not shown in the figure), configured to determine whether the target application has exited operation;
[0154] A closing unit (not shown in the figure) is used to close the virtual memory in response to the target application exiting operation.
[0155] In a possible implementation, the running the target application through the virtual memory includes:
[0156] Determine the sum of the space size of the virtual memory and the space size of the physical memory to obtain a first space size;
[0157] Determine the space size of the target storage to obtain a second space size;
[0158] Determining whether the first space size is greater than or equal to the second space size;
[0159] When the first space size is greater than or equal to the second space size, the target application is run through the virtual memory and the physical memory.
[0160] In a possible implementation, each piece of application information in the preset application information set corresponds to a pre-stored running memory information, and the running memory represented by the running memory information is determined based on the running memory occupied by running the corresponding application; and
[0161] The determining the target operating memory occupied by running the target application includes:
[0162] A target operating memory occupied by running the target application is determined from the pre-stored operating memory information set corresponding to the preset application information set.
[0163] In a possible implementation, the running memory represented by the running memory information is a preset multiple of the running memory occupied by the corresponding application, wherein the preset multiple is greater than 1.
[0164] In a possible implementation manner, after determining whether the preset application information set includes the target application information of the target application, the device further includes:
[0165] A generating unit (not shown in the figure) is used to generate prompt information indicating that the target application cannot be run when the preset application information set does not include the target application information.
[0166] In a possible implementation manner, after determining whether the target operating memory is greater than or equal to the physical operating memory of the target TV, the device further includes:
[0167] The second running unit (not shown in the figure) is used to run the target application through the physical running memory when the target running memory is smaller than the physical running memory.
[0168] The application running device provided in this embodiment may be as follows Figure 4 The application running device shown in can execute all the steps of the application running methods described above, thereby achieving the technical effects of the application running methods described above. Please refer to the above related description for details. For the sake of brevity, it will not be repeated here.
[0169] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application, Figure 5 The electronic device 500 shown includes: at least one processor 501, a memory 502, at least one network interface 504 and other user interfaces 503. The various components in the electronic device 500 are coupled together via a bus system 505. It is understood that the bus system 505 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 505 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 505 is not shown in FIG. Figure 5 Various buses are labeled as bus system 505 .
[0170] The user interface 503 may include a display, a keyboard, or a pointing device (eg, a mouse, a trackball, a touch pad, or a touch screen).
[0171] It can be understood that the memory 502 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 (DRRAM). The memory 502 described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0172] In some implementations, the memory 502 stores the following elements, executable units or data structures, or a subset thereof, or an extended set thereof: an operating system 5021 and an application program 5022 .
[0173] Among them, the operating system 5021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application 5022 includes various application programs, such as a media player (Media Player), a browser (Browser), etc., which are used to implement various application services. The program for implementing the method of the embodiment of the present application can be included in the application 5022.
[0174] In this embodiment, by calling the program or instruction stored in the memory 502, specifically, the program or instruction stored in the application 5022, the processor 501 is used to execute the method steps provided by each method embodiment, for example, including:
[0175] detecting a running operation for a target application, wherein the running operation indicates running the target application on a target television;
[0176] In response to the running operation, determining a target operating memory occupied by running the target application;
[0177] Determine whether the target RAM is greater than or equal to the physical RAM of the target TV;
[0178] In a case where the target running memory is greater than or equal to the physical running memory, determining whether the preset application information set includes the target application information of the target application, wherein the application indicated by the application information in the preset application information set has permission to open the virtual running memory;
[0179] In a case where the preset application information set includes the target application information, setting the target storage space of the target TV as a virtual operating memory;
[0180] The target application is run through the virtual memory.
[0181] The method disclosed in the above embodiment of the present application can be applied to the processor 501, or implemented by the processor 501. The processor 501 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 501. The above processor 501 can be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to execute, or the hardware and software units in the decoding processor can be executed. The software unit can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 502, and the processor 501 reads the information in the memory 502 and completes the steps of the above method in combination with its hardware.
[0182] It is understood that the embodiments described herein may be implemented in 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 (ASIC), digital signal processors (DSP), digital signal processing devices (DSPDevice, DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the above functions of the present application, or a combination thereof.
[0183] For software implementation, the technology described above in this article can be implemented by a unit that performs the functions described above in this article. 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.
[0184] The electronic device provided in this embodiment may be Figure 5 The electronic device shown in can execute all the steps of the above-mentioned application running methods, thereby achieving the technical effects of the above-mentioned application running methods. Please refer to the above related description for details. For the sake of brevity, it will not be repeated here.
[0185] The embodiment of the present application also provides a storage medium (computer-readable storage medium). The storage medium here stores one or more programs. The storage medium may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a read-only memory, a flash memory, a hard disk or a solid-state drive; the memory may also include a combination of the above-mentioned types of memory.
[0186] When one or more programs in the storage medium can be executed by one or more processors, the above-mentioned application running method executed on the electronic device side can be implemented.
[0187] The processor is used to execute the application running program stored in the memory to implement the following steps of the application running method executed on the electronic device side:
[0188] detecting a running operation for a target application, wherein the running operation indicates running the target application on a target television;
[0189] In response to the running operation, determining a target operating memory occupied by running the target application;
[0190] Determine whether the target RAM is greater than or equal to the physical RAM of the target TV;
[0191] In a case where the target running memory is greater than or equal to the physical running memory, determining whether the preset application information set includes the target application information of the target application, wherein the application indicated by the application information in the preset application information set has permission to open the virtual running memory;
[0192] In a case where the preset application information set includes the target application information, setting the target storage space of the target TV as a virtual operating memory;
[0193] The target application is run through the virtual memory.
[0194] The 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 with electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0195] The steps of the method or algorithm 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 running 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.
[0196] The specific implementation methods described above further describe the purpose, technical solutions and beneficial effects of the present application in detail. It should be understood that the above description is only the specific implementation method of the present application and is not intended to limit the scope of protection of the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application. In addition, for the aforementioned embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present invention is not limited by the described order of actions, because according to the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present invention.
Claims
1. An application running method, characterized in that: The method comprises: detecting a running operation for a target application, wherein the running operation indicates running the target application on a target television; In response to the running operation, determining a target operating memory occupied by running the target application; Determine whether the target RAM is greater than or equal to the physical RAM of the target TV; In a case where the target running memory is greater than or equal to the physical running memory, determining whether the preset application information set includes the target application information of the target application, wherein the application indicated by the application information in the preset application information set has permission to open the virtual running memory; In a case where the preset application information set includes the target application information, setting the target storage space of the target TV as a virtual operating memory; Running the target application through the virtual memory; The preset application information set is set in the following manner: Get the running frequency of the applications in the target TV set running application set within the target time; Determine, from the application set, a set of applications whose running frequency is greater than or equal to a preset frequency threshold, to obtain an application subset; A set of application information of each application in the application subset is determined as a preset application information set.
2. The method according to claim 1, characterized in that After running the target application through the virtual memory, the method further includes: Determine whether the target application has exited operation; In response to the target application exiting operation, the virtual operating memory is closed.
3. The method according to claim 1, characterized in that: The running the target application through the virtual memory includes: Determine the sum of the space size of the virtual memory and the space size of the physical memory to obtain a first space size; Determine the space size of the target storage to obtain a second space size; Determining whether the first space size is greater than or equal to the second space size; When the first space size is greater than or equal to the second space size, the target application is run through the virtual memory and the physical memory.
4. The method according to claim 1, characterized in that Each piece of application information in the preset application information set corresponds to a pre-stored running memory information, and the running memory represented by the running memory information is determined based on the running memory occupied by the corresponding application; as well as The determining the target operating memory occupied by running the target application includes: A target operating memory occupied by running the target application is determined from the pre-stored operating memory information set corresponding to the preset application information set.
5. The method according to claim 4, characterized in that The running memory represented by the running memory information is a preset multiple of the running memory occupied by the corresponding application, wherein the preset multiple is greater than 1.
6. The method according to any one of claims 1 to 5, characterized in that: After determining whether the preset application information set includes the target application information of the target application, the method further includes: In a case where the preset application information set does not include the target application information, prompt information is generated to indicate that the target application cannot be run.
7. The method according to any one of claims 1 to 5, characterized in that: After determining whether the target memory is greater than or equal to the physical memory of the target TV, the method further includes: When the target operating memory is smaller than the physical operating memory, the target application is run through the physical operating memory.
8. An application running device, characterized in that: The device comprises: a detection unit, configured to detect a running operation for a target application, wherein the running operation indicates running the target application on a target television; A first determining unit, configured to determine, in response to the running operation, a target operating memory occupied by running the target application; A second determining unit, configured to determine whether the target RAM is greater than or equal to the physical RAM of the target TV; A third determining unit is used to determine whether the preset application information set includes the target application information of the target application when the target running memory is greater than or equal to the physical running memory, wherein the application indicated by the application information in the preset application information set has the permission to open the virtual running memory; A setting unit, configured to set the target storage space of the target TV as a virtual memory when the preset application information set includes the target application information; A first running unit, configured to run the target application through the virtual memory; The preset application information set is set in the following manner: Get the running frequency of the applications in the target TV set running application set within the target time; Determine, from the application set, a set of applications whose running frequency is greater than or equal to a preset frequency threshold, to obtain an application subset; A set of application information of each application in the application subset is determined as a preset application information set.
9. An electronic device, characterized in that: include: Memory for storing computer programs; A processor is used to execute the computer program stored in the memory, and when the computer program is executed, the method described in any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method described in any one of claims 1 to 7 is implemented.
