CN113474756A - Application processing method and device, storage medium and electronic equipment - Google Patents

Application processing method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN113474756A
CN113474756A CN201980092366.7A CN201980092366A CN113474756A CN 113474756 A CN113474756 A CN 113474756A CN 201980092366 A CN201980092366 A CN 201980092366A CN 113474756 A CN113474756 A CN 113474756A
Authority
CN
China
Prior art keywords
application
application program
page
data
program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201980092366.7A
Other languages
Chinese (zh)
Inventor
帅朝春
张寅祥
陆天洋
戴堃
吴建文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Shenzhen Huantai Technology Co Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Shenzhen Huantai Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd, Shenzhen Huantai Technology Co Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Publication of CN113474756A publication Critical patent/CN113474756A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating

Abstract

The application discloses a processing method of an application program, which comprises the following steps: after the target application program is frozen, whether a first use frequency of the target application program in a preset time period is smaller than a preset frequency is judged, if yes, application data of the application program are saved, the application program is deleted, an instruction for restarting the application program is received, and an application page is created according to the application data. The application also provides a processing device, a storage medium and an electronic device of the application program.

Description

Application processing method and device, storage medium and electronic equipment Technical Field
The present application belongs to the technical field of electronic devices, and in particular, to a method and an apparatus for processing an application program, a storage medium, and an electronic device.
Background
With the development of terminal technology, terminals have begun to change from simply providing telephony devices to a platform for running general-purpose software. The platform no longer aims at providing call management, but provides an operating environment including various application software such as call management, game and entertainment, office events, mobile payment and the like, and with a great deal of popularization, the platform has been deeply developed to the aspects of life and work of people.
A wide variety of applications may be installed on a smartphone, such as a camera application, a gaming application, a mapping application, and so forth, for use by a user. However, as the functions of the applications are more and more powerful, the storage space occupied by each application is also more and more large, and the normal operation of the smartphone system is likely to be affected.
Disclosure of Invention
The application provides a processing method and device of an application program, a storage medium and an electronic device, which can save the storage space of the electronic device.
In a first aspect, an embodiment of the present application provides an application processing method, including:
after the target application program is frozen by the electronic equipment, acquiring a first use frequency of the target application program in a preset time period;
judging whether the first using frequency is smaller than a preset frequency or not;
if so, saving the application data and the application icon of the application program, and deleting the application program;
and receiving an instruction for restarting the application program, and creating an application page according to the instruction and the application data.
In a second aspect, an embodiment of the present application provides an apparatus for processing an application program, including: the device comprises a first acquisition module, a first judgment module, a deletion module and a creation module;
the first obtaining module is used for obtaining a first use frequency of a target application program in a preset time period after the target application program is frozen by the electronic equipment;
the first judging module is used for judging whether the first using frequency is smaller than a preset frequency;
the deleting module is used for saving the application data and the application icon of the application program and deleting the application program when the first judging module judges that the application data and the application icon are positive;
and the creating module is used for receiving an instruction for restarting the application program and creating an application page according to the instruction and the application data.
In a third aspect, an embodiment of the present application provides a storage medium, on which a computer program is stored, and when the computer program runs on a computer, the computer is caused to execute the processing method of the application program.
In a fourth aspect, an embodiment of the present application provides an electronic device, including a processor and a memory, where the memory stores a plurality of instructions, and the processor loads the instructions in the memory to perform the following steps:
after the target application program is frozen by the electronic equipment, acquiring a first use frequency of the target application program in a preset time period;
judging whether the first using frequency is smaller than a preset frequency or not;
if so, saving the application data and the application icon of the application program, and deleting the application program;
and receiving an instruction for restarting the application program, and creating an application page according to the instruction and the application data.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments will be briefly introduced below. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.
Fig. 1 is a schematic diagram of an implementation environment of an application processing method according to an embodiment of the present application
Fig. 2 is a schematic flowchart of a processing method of an application according to an embodiment of the present disclosure.
Fig. 3 is another schematic flow chart of a processing method of an application program according to an embodiment of the present application.
Fig. 4 is a schematic structural diagram of a processing device of an application according to an embodiment of the present application.
Fig. 5 is another schematic structural diagram of a processing device of an application according to an embodiment of the present disclosure.
Fig. 6 is a schematic structural diagram of a processing device of an application according to an embodiment of the present application.
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 8 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements, the principles of the present application are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the application and should not be taken as limiting the application with respect to other embodiments that are not detailed herein.
In the description that follows, specific embodiments of the present application will be described with reference to steps and symbols executed by one or more computers, unless otherwise indicated. Accordingly, these steps and operations will be referred to, several times, as being performed by a computer, the computer performing operations involving a processing unit of the computer in electronic signals representing data in a structured form. This operation transforms the data or maintains it at locations in the computer's memory system, which may be reconfigured or otherwise altered in a manner well known to those skilled in the art. The data maintains a data structure that is a physical location of the memory that has particular characteristics defined by the data format. However, while the principles of the application have been described in language specific to above, it is not intended to be limited to the specific form set forth herein, and it will be recognized by those of ordinary skill in the art that various of the steps and operations described below may be implemented in hardware.
The terms "first", "second", and "third", etc. in this application are used to distinguish between different objects and not to describe a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or modules is not limited to only those steps or modules listed, but rather, some embodiments may include other steps or modules not listed or inherent to such process, method, article, or apparatus.
In the prior art, an electronic device can run a plurality of applications, and the electronic device can prioritize the applications according to a standby grouping function, so that the applications call different scheduling of device resources such as a CPU or a network. However, the priority level applied in this way is fixed, the application programs in the same layer are not in sequence, and the way of scheduling the device resources is not intelligent and accurate enough.
An execution main body of the processing method of the application program may be a processing device of the application program provided in the embodiment of the application program, or an electronic device integrated with the processing device of the application program, where the processing device of the application program may be implemented in a hardware or software manner.
The embodiments of the present application will be described from the perspective of a processing device of an application, which may be specifically integrated in an electronic device. The processing method of the application program comprises the following steps: after the target application program is frozen by the electronic equipment, acquiring a first use frequency of the target application program in a preset time period;
judging whether the first using frequency is smaller than a preset frequency or not;
if so, saving the application data and the application icon of the application program, and deleting the application program;
and receiving an instruction for restarting the application program, and creating an application page according to the instruction and the application data.
In one embodiment, after creating the application page according to the instruction and the application data, the method further comprises:
acquiring a second use frequency of the application page in a preset time period;
judging whether the second use frequency is smaller than a preset frequency or not;
and if not, reinstalling the application program.
In one embodiment, reinstalling the application includes:
downloading an installation file of the application program;
and installing the application program according to the installation file and the application data.
In one embodiment, the step of receiving an instruction to restart the application includes:
judging whether the application icon receives a clicking operation of a user;
and if so, determining to start the application program.
In one embodiment, creating an application page according to the instruction and the application data includes:
acquiring an application identifier of the application program, sending the application identifier to a configuration server, and receiving a configuration file returned by the configuration server according to the application identifier;
and generating an application page according to the configuration file and the application data, and displaying the application page.
In one embodiment, the configuration file includes global configuration information describing the application page, an application page is generated according to the configuration file and the application data, and the application page is displayed, including:
loading and operating a script file in the electronic equipment system;
analyzing the global configuration information through the script file to generate a native page of the application;
and generating an application page according to the native page and the user data, and displaying the application page.
In one embodiment, before saving the application data and the application icon of the application program and deleting the application program, the method further includes:
acquiring the current residual storage space of the electronic equipment;
judging whether the residual storage space is smaller than a preset value or not;
and if so, executing the steps of saving the application data and the application icons of the application programs and deleting the application programs.
Referring to fig. 1, fig. 1 is a schematic diagram of an implementation environment of a processing method of an application program according to an embodiment of the present application, and as shown in fig. 1, the implementation environment includes a smart phone 10, a communication network 20, and a server 30.
The operating system of the smartphone 10 may be an android system, a blackberry system, an apple system, or the like. The smartphone 10 and the server 30 are connected via a communication network 20.
The communication network 20 includes a wireless network and a wired network. Wherein the wireless network comprises a combination of one or more of a wireless wide area network, a wireless local area network, a wireless metropolitan area network, and a wireless personal network.
The server 30 stores therein a configuration file of an application, which contains data necessary for running the application. The smart phone 10 can obtain a configuration file of an application from the server 30, generate and display a page of an application page according to the configuration file, and it should be understood that the application page is an application that can be used without downloading and installing, it realizes the dream of "touch and reach" of the application, a user can open the application by scanning or searching, the smart phone is an application software that operates on the internet or an intranet by using a web browser, and is an application program written in a web language (for example, programming languages such as HTML, JavaScript, Java, and the like), and needs to be executed through the browser, for example, the smart phone can be accessed uniformly through an open platform, which is commonly called "fast application". It should be explained that the installation package of the existing "fast application" and the cache data generated during the operation are both stored in the server of the open platform, and it is not required to install and operate in the user equipment, so as to save the memory resource of the user equipment as much as possible, and the user equipment can perform data communication with the manufacturer server of the application page through the application interface in the open platform, so as to realize the access to the application page, at this time, the server of the open platform acts as a proxy server, and each application page corresponds to one application interface. Therefore, on the premise that the application program is not installed, the running of the application is realized, and the data required by the running of the application can be immediately acquired from the server 30.
The server 30 may also perform an update operation on the profile of the application to provide the updated profile to the smartphone 10.
In an embodiment, the server 30 may further store an installation file of the application, and the smartphone 10 may further obtain the installation file of the application from the server 30 and completely run the application by installing the installation file. For example, when a user uses a certain application page, the native application of the application can be further installed. It is easily conceivable that the server 30 may also update the installation files of the application to provide the smartphone 10 with updated installation files.
The embodiment will be described from the perspective of an application processing apparatus, which may be specifically integrated in an electronic device, such as a mobile interconnection network device (e.g., a smart phone, a tablet computer), and the like.
Referring to fig. 2, fig. 2 is a flowchart illustrating a processing method of an application according to an embodiment of the present disclosure. The processing method of the application program provided by the embodiment of the application program is applied to the electronic equipment, and the specific flow can be as follows:
step 101, after the electronic device freezes a target application program, acquiring a first use frequency of the target application program in a preset time period.
In an embodiment, the present application is directed to an application frozen by an electronic device, and specifically, it may be determined whether a currently running application in the electronic device meets a freezing condition, where the application may be a background application, and the freezing condition may be set by a user, for example, the freezing condition for the application is set in a setting page of the electronic device, and when the freezing condition is met, the application is frozen. For example, isolating system resources occupied by the application, isolating the application in the system framework, sending a freeze signal to a process group of the application, and so on. The application program is frozen to avoid that the application program placed in the background continuously occupies system resources, so that the system resources occupied by the application program need to be isolated, and the system resources include resources that the application program cannot be released when being frozen, such as wake-up lock resources, GPS resources, sensor resources, and the like. In one embodiment of the present application, the isolation refers to releasing system resources occupied by the application program or disconnecting the application program from the system resources.
When the electronic device freezes the application program, a first usage frequency of the application program within a preset time period is obtained, and the preset time period can be one week. In an embodiment, the first usage frequency may be calculated according to a number of times of starting the application program, for example, obtaining a number of times of starting the application program in a preset time period, obtaining a total number of times of starting all the application programs in the electronic device, and then calculating the first usage frequency of the application program in the preset time period according to the number of times of starting and the total number of times of starting. The number of times of starting the application program may include the number of times of starting according to a user instruction (user click), the number of times of self-starting of the electronic device, and the number of times of associated starting of other application programs.
In other embodiments, the usage frequency may also be calculated according to the running duration of the application program, for example, the running duration of the application program in a preset time period is obtained, and then the first usage frequency of the application program in the preset time period is calculated according to the running duration and the preset time period. The running duration may include a foreground running duration and a background running duration of the application.
Step 102, determining whether the first usage frequency is less than a preset frequency, if yes, executing step 103.
In an embodiment, the determination criterion needs to be set, and for a user, if the frequency of use of the application is low or never used within a week or more, it is proved that the application is not necessary, and the application may be deleted.
And 103, saving the application data and the application icons of the application programs, and deleting the application programs.
In one embodiment, the installation files of the application program can be deleted in a silent uninstalling mode. When the electronic equipment deletes the installation file of the application program, silent unloading is adopted, the user does not need to confirm, the process of interaction with the user is reduced, the use is more convenient, and the user experience is better.
In one embodiment, before deleting the installation file of the application, application data of the application may be saved, and the application data may include data generated during the use of the application by the user and stored in the electronic device, and may include user cache data, cookies (user identity data), history data, and the like. And since each user operates differently in using the application program, the application data is also different. The application data is generally stored in a specific folder, and the data folder of the corresponding application data can be found by determining the storage path of the data used by the user and the storage path of the data used by the user, so as to store the files in the folder.
Further, in view of that the embodiment of the present application may delete an installation file of an application program with a low frequency of use, thereby saving a storage space of the electronic device, before deleting the installation file of the application program, the current remaining storage space of the electronic device may also be obtained, and it is determined whether the installation file of the application program needs to be deleted according to the remaining storage space. That is, before saving the application data of the application program and deleting the installation file of the application program, the method further includes:
acquiring the current residual storage space of the electronic equipment;
judging whether the residual storage space is smaller than a preset value or not;
and if so, executing the steps of saving the application data of the application program and deleting the installation file of the application program.
And 104, receiving an instruction for restarting the application program, and creating an application page according to the instruction and the application data.
And after the installation file of the application program is deleted, if the instruction of opening the application program by the user is received again, creating and displaying an application page according to the instruction and the application data.
In an embodiment, the application data may include user data and an application icon of the application program, and after the installation file of the application program is deleted, the icon of the application program is retained on the human-computer interaction interface of the electronic device, but the icon is marked as a program deleted state. After the application program is deleted, the icon of the application program is reserved and marked as a deleted state, if a gray icon is adopted, on one hand, a user can directly determine the current state of the application program through an interactive interface, on the other hand, when the user needs to operate the deleted application program again, the user can directly click the icon of the application program, an application page is directly created according to application data and displayed, and the application program is more convenient to use. That is, the step of restarting the application includes:
judging whether the application icon receives a clicking operation of a user;
and if so, determining to start the application program.
As can be seen from the above, the processing method of the application program provided in the embodiment of the present application can obtain the first usage frequency of the application program in the preset time period when the electronic device freezes the application program, determine whether the first usage frequency is less than the preset frequency, if so, save the application data of the application program, delete the installation file of the application program, and create and display an application page according to the application data when the application program is restarted. According to the application program, the frozen application program is unloaded according to the use frequency of the application program, meanwhile, the application data are reserved, and when the user opens the application program again after unloading, the application page of the application program is created according to the application data. The storage space of the electronic equipment can be saved, and the use efficiency of the application page is improved.
The cleaning method of the present application will be further described below on the basis of the method described in the above embodiment. Referring to fig. 3, fig. 3 is another schematic flow chart of a processing method of an application program according to an embodiment of the present application, where the processing method of the application program includes:
step 201, when the electronic device freezes the application program, acquiring a first use frequency of the application program within a preset time period.
When the electronic device freezes the application program, a first usage frequency of the application program within a preset time period is obtained, and the preset time period can be one week. In an embodiment, the usage frequency may be calculated according to the number of times of starting the application program, for example, obtaining the number of times of starting the application program in a preset time period, obtaining the total number of times of starting all the application programs in the electronic device, and then calculating the first usage frequency of the application program in the preset time period according to the number of times of starting and the total number of times of starting. The number of times of starting the application program may include the number of times of starting according to a user instruction (user click), the number of times of self-starting of the electronic device, and the number of times of associated starting of other application programs.
Step 202, determine whether the first usage frequency is less than the predetermined frequency, if yes, go to step 203.
In one embodiment, the determination criterion needs to be set, and if the application is used less frequently or never used within a week or more, the user proves that the application is not necessary, and the application can be deleted, so the determination criterion needs to be set. If the first using frequency is less than the preset frequency, executing the step of deleting the installation file of the application program, and if not, ending the process.
Step 203, saving the application data of the application program, and deleting the installation file of the application program.
In one embodiment, before deleting the installation file of the application, application data of the application may be saved, and the application data may include data generated during the use of the application by the user and stored in the electronic device, and may include user cache data, cookies (user identity data), history data, and the like. Furthermore, the application data may further include an application icon, and after the installation file of the application program is deleted, the icon of the application program is retained on the human-computer interaction interface of the electronic device.
And step 204, when the application program is restarted, acquiring the application identifier of the application program, sending the configuration server, and receiving a configuration file returned by the configuration server according to the application identifier.
For example, when the user clicks the application icon again, it is determined that the user starts the application program again, at this time, the application identifier of the application program is obtained and sent to the configuration server, and the configuration file returned by the configuration server according to the application identifier is received. The configuration server stores a configuration file corresponding to each application, the configuration file comprises data and operation logic required by the operation of the application and global configuration information, the global configuration information indicates which pages the application is composed of, configures the background color of the window of the application page, configures the style of a navigation bar, configures a default title and the like.
The electronic equipment sends the application identifier to the configuration server, the configuration server matches the configuration file corresponding to the application identifier after receiving the application identifier, and the obtained configuration file is returned to the electronic equipment. The application identification may be an application name.
And step 205, generating an application page according to the configuration file and the user data, and displaying the application page.
In one embodiment, when it is determined that the user starts the application again, a script file in the operating system is loaded and run. In an embodiment, the script file may be a JavaScript script language file, and JavaScript is a script language belonging to a Web, has been widely used for Web application development, and is often used to add various dynamic functions to a Web page, so as to provide a smoother and more beautiful browsing effect for a user. Usually, JavaScript scripts implement their functions by being embedded in HTML.
Based on the method, the global configuration information in the configuration file is analyzed through the loaded and operated JavaScript language file to generate a native page of the application, then an application page is generated according to the native page and user data, and the application page is displayed. That is, generating an application page according to the configuration file and the user data, and displaying the application page, including:
loading and operating a script file in the electronic equipment system;
analyzing the global configuration information through the script file to generate a native page of the application;
and generating an application page according to the native page and the user data, and displaying the application page.
And step 206, acquiring a second use frequency of the application page in a preset time period.
Step 207, determine whether the second usage frequency is less than the predetermined frequency, if not, execute step 208.
In an embodiment, if the usage habit of the user changes after the installation file of the application program is deleted, and the usage frequency of the application page is high, the application program can be downloaded again. Specifically, the determination may be performed by determining a second usage frequency of the application page within a preset time period.
In one embodiment, the predetermined time period may be one week. The second usage frequency may be calculated according to the number of times of starting the application program, for example, acquiring the number of times of starting the application program in a preset time period, then acquiring the total number of times of starting all the application programs in the electronic device, and then calculating the second usage frequency of the application program in the preset time period according to the number of times of starting and the total number of times of starting.
And step 208, downloading the installation file of the application program, and installing the application program according to the installation file and the application data.
In one embodiment, the configuration server may further store an installation file of the application, where the installation file is used to install the corresponding application. Further, the configuration file and the installation file are uploaded to the configuration server through a third-party supplier or a developer, and the third-party supplier and the developer can update and delete the configuration file and the installation file in the configuration server. And when the second use frequency is determined to be not less than the preset frequency, the installation file of the application program is downloaded again from the configuration server and installed, and the application data is copied to the corresponding file directory to recover the data.
From the above, the processing method of the application program provided by the embodiment of the application program can be used when the electronic device freezes the application program, acquiring a first use frequency of the application program in a preset time period, judging whether the first use frequency is less than a preset frequency, if so, the application data of the application program is saved and the installation file of the application program is deleted, and when the application program is started again, acquiring application identification of the application program, sending the application identification to the configuration server, receiving configuration files returned by the configuration server according to the application identification, generating an application page according to the configuration file and the user data, displaying the application page, acquiring a second use frequency of the application page in a preset time period, judging whether the second use frequency is less than the preset frequency, if not, the installation file of the application program is downloaded and the application program is installed according to the installation file and the application data. According to the application program, the frozen application program is unloaded according to the use frequency of the application program, meanwhile, the application data are reserved, and when the user opens the application program again after unloading, the application page of the application program is created according to the application data. The storage space of the electronic equipment can be saved, and the use efficiency of the application page is improved.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a processing device of an application according to an embodiment of the present disclosure. The processing device 300 of the application program comprises a first obtaining module 301, a first judging module 302, a deleting module 303 and a creating module 304;
the first obtaining module 301 is configured to obtain a first usage frequency of a target application program within a preset time period after the target application program is frozen by an electronic device;
the first determining module 302 is configured to determine whether the first usage frequency is less than a preset frequency;
the deleting module 303 is configured to, if the first determining module 302 determines that the application data and the application icon of the application program are stored, delete the application program;
the creating module 304 is configured to receive an instruction to restart the application program, and create an application page according to the instruction and the application data.
In an embodiment, please refer to fig. 5, fig. 5 is a schematic structural diagram of a processing device of an application program according to an embodiment of the present application, wherein the device 30 further includes: a second obtaining module 305, a second judging module 306 and an installing module 307;
the second obtaining module 305 is configured to obtain a second usage frequency of the application page within a preset time period after the application page is created according to the instruction and the application data;
the second determining module 306 is configured to determine whether the second usage frequency is smaller than a preset frequency;
the installing module 307 is configured to reinstall the application program when the second determining module 306 determines that the application program is not installed.
In one embodiment, the installation module 307 comprises: download submodule 3071 and install submodule 3072;
the download submodule 3071 is configured to download the installation file of the application program;
the installation submodule 3072 is configured to install the application program according to the installation file and the application data.
In an embodiment, the application data comprises user data and an application icon of the application program. As shown in fig. 6, the creating module 304 may include: a judgment sub-module 3041 and a determination sub-module 3042;
the determining sub-module 3041 is configured to determine whether the application icon receives a click operation of a user;
the determining submodule 3042 is configured to determine to start the application program when the determining submodule 3041 determines that the application program is started.
In an embodiment, the creating module 304 may further include: an acquisition submodule 3043 and a generation submodule 3044;
the obtaining submodule 3043 is configured to obtain an application identifier of the application program, send the application identifier to a configuration server, and receive a configuration file returned by the configuration server according to the application identifier;
the generating sub-module 3044 is configured to generate an application page according to the configuration file and the application data, and display the application page.
As can be seen from the above, the processing device for an application program according to the embodiment of the present application may obtain the first usage frequency of the application program in a preset time period when the electronic device freezes the application program, determine whether the first usage frequency is less than the preset frequency, if so, save application data of the application program, delete an installation file of the application program, and create and display an application page according to the application data when the application program is restarted. According to the application program, the frozen application program is unloaded according to the use frequency of the application program, meanwhile, the application data are reserved, and when the user opens the application program again after unloading, the application page of the application program is created according to the application data. The storage space of the electronic equipment can be saved, and the use efficiency of the application page is improved.
In this embodiment, the processing apparatus of the application program and the processing method of the application program in the above embodiments belong to the same concept, and any method provided in the embodiment of the processing method of the application program may be run on the processing apparatus of the application program, and a specific implementation process thereof is described in detail in the embodiment of the processing method of the application program, and is not described herein again.
The term "module" as used herein may be considered a software object executing on the computing system. The different components, modules, engines, and services described herein may be considered as implementation objects on the computing system. The apparatus and method described herein may be implemented in software, but may also be implemented in hardware, and are within the scope of the present application.
The embodiment of the present application also provides a storage medium, on which a computer program is stored, and when the computer program runs on a computer, the computer is caused to execute the processing method of the application program.
The embodiment of the application also provides an electronic device, such as a tablet computer, a mobile phone and the like. The processor in the electronic device loads instructions corresponding to processes of one or more application programs into the memory according to the following steps, and the processor runs the application programs stored in the memory, so that various functions are realized:
after the target application program is frozen by the electronic equipment, acquiring a first use frequency of the target application program in a preset time period;
judging whether the first using frequency is smaller than a preset frequency or not;
if so, saving the application data and the application icon of the application program, and deleting the application program;
and receiving an instruction for restarting the application program, and creating an application page according to the instruction and the application data.
In an embodiment, after creating the application page according to the instructions and the application data, the processor is further configured to perform the steps of:
acquiring a second use frequency of the application page in a preset time period;
judging whether the second use frequency is smaller than a preset frequency or not;
and if not, reinstalling the application program.
In one embodiment, when the application is reinstalled, the processor is configured to perform the steps of:
downloading an installation file of the application program;
and installing the application program according to the installation file and the application data.
In one embodiment, when receiving an instruction to restart the application, the processor is configured to perform the following steps:
judging whether the application icon receives a clicking operation of a user;
and if so, determining to start the application program.
In one embodiment, when creating an application page according to the instructions and the application data, the processor is configured to perform the following steps:
acquiring an application identifier of the application program, sending the application identifier to a configuration server, and receiving a configuration file returned by the configuration server according to the application identifier;
and generating an application page according to the configuration file and the user data, and displaying the application page.
In an embodiment, the configuration file includes global configuration information describing the application page, the processor is configured to execute the following steps when generating an application page according to the configuration file and the application data, and displaying the application page:
loading and operating a script file in the electronic equipment system;
analyzing the global configuration information through the script file to generate a native page of the application;
and generating an application page according to the native page and the application data, and displaying the application page.
In one embodiment, before saving the application data and the application icon of the application program and deleting the application program, the processor is further configured to perform the following steps:
acquiring the current residual storage space of the electronic equipment;
judging whether the residual storage space is smaller than a preset value or not;
and if so, executing the steps of saving the application data and the application icons of the application programs and deleting the application programs.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
Referring to fig. 7, the electronic device 400 includes a processor 401 and a memory 402. The processor 401 is electrically connected to the memory 402.
The processor 400 is a control center of the electronic device 400, connects various parts of the entire electronic device using various interfaces and lines, performs various functions of the electronic device 400 by running or loading a computer program stored in the memory 402 and calling data stored in the memory 402, and processes the data, thereby monitoring the electronic device 400 as a whole.
The memory 402 may be used to store software programs and modules, and the processor 401 executes various functional applications and data processing by operating the computer programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, a computer program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the electronic device, and the like. Further, the memory 402 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 access to the memory 402.
In this embodiment, the processor 401 in the electronic device 400 loads instructions corresponding to one or more processes of the computer program into the memory 402 according to the following steps, and the processor 401 runs the computer program stored in the memory 402, so as to implement various functions, as follows:
when the electronic equipment freezes an application program, acquiring a first use frequency of the application program in a preset time period;
judging whether the first using frequency is smaller than a preset frequency or not;
if so, saving the application data of the application program, and deleting the installation file of the application program;
and when the application program is started again, creating an application page according to the application data and displaying the application page.
Referring to fig. 8, in some embodiments, the electronic device 400 may further include: a display 403, radio frequency circuitry 404, audio circuitry 405, and a power supply 406. The display 403, the rf circuit 404, the audio circuit 405, and the power source 406 are electrically connected to the processor 401.
The display 403 may be used to display information entered by or provided to the user as well as various graphical user interfaces, which may be made up of graphics, text, icons, video, and any combination thereof. The Display 403 may include a Display panel, and in some embodiments, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The rf circuit 404 may be used for transceiving rf signals to establish wireless communication with a network device or other electronic devices through wireless communication, and for transceiving signals with the network device or other electronic devices.
The audio circuit 405 may be used to provide an audio interface between the user and the electronic device through a speaker, microphone.
The power supply 406 may be used to power various components of the electronic device 400. In some embodiments, power supply 406 may be logically coupled to processor 401 via a power management system, such that functions to manage charging, discharging, and power consumption management are performed via the power management system.
Although not shown in fig. 8, the electronic device 400 may further include a camera, a bluetooth module, and the like, which are not described in detail herein.
In the embodiment of the present application, the storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
It should be noted that, for the processing method of the application program in the embodiment of the present application, it can be understood by a person skilled in the art that all or part of the flow of the processing method of the application program in the embodiment of the present application can be completed by controlling the relevant hardware through a computer program, the computer program can be stored in a computer readable storage medium, such as a memory of an electronic device, and executed by at least one processor in the electronic device, and the flow of the embodiment of the processing method of the application program can be included in the execution process. The storage medium may be a magnetic disk, an optical disk, a read-only memory, a random access memory, etc.
In the processing apparatus of the application program according to the embodiment of the present application, each functional module may be integrated into one processing chip, or each module may exist alone physically, or two or more modules may be integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium, such as a read-only memory, a magnetic or optical disk, or the like.
The foregoing detailed description is directed to a method, an apparatus, a storage medium, and an electronic device for processing an application program provided in an embodiment of the present application, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the foregoing embodiment is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (20)

  1. A method for processing an application program, wherein the method comprises the steps of:
    after the target application program is frozen by the electronic equipment, acquiring a first use frequency of the target application program in a preset time period;
    judging whether the first using frequency is smaller than a preset frequency or not;
    if so, saving the application data and the application icon of the application program, and deleting the application program;
    and receiving an instruction for restarting the application program, and creating an application page according to the instruction and the application data.
  2. The processing method of the application program according to claim 1, wherein after creating an application page from the instruction and application data, the method further comprises:
    acquiring a second use frequency of the application page in a preset time period;
    judging whether the second use frequency is smaller than a preset frequency or not;
    and if not, reinstalling the application program.
  3. The processing method of the application program according to claim 2, wherein reinstalling the application program comprises:
    downloading an installation file of the application program;
    and installing the application program according to the installation file and the application data.
  4. The processing method of the application program according to claim 1, wherein the step of receiving an instruction to restart the application program comprises:
    judging whether the application icon receives a clicking operation of a user;
    and if so, determining to start the application program.
  5. The processing method of the application program according to claim 1, wherein creating the application page according to the instruction and the application data comprises:
    acquiring an application identifier of the application program, sending the application identifier to a configuration server, and receiving a configuration file returned by the configuration server according to the application identifier;
    and generating an application page according to the configuration file and the application data, and displaying the application page.
  6. The processing method of the application program according to claim 5, wherein the configuration file includes global configuration information describing the application page, and generating the application page according to the configuration file and the application data and displaying the application page comprises:
    loading and operating a script file in the electronic equipment system;
    analyzing the global configuration information through the script file to generate a native page of the application;
    and generating an application page according to the native page and the application data, and displaying the application page.
  7. The processing method of the application program according to claim 1, wherein before saving the application data and the application icon of the application program and deleting the application program, the method further comprises:
    acquiring the current residual storage space of the electronic equipment;
    judging whether the residual storage space is smaller than a preset value or not;
    and if so, executing the steps of saving the application data and the application icons of the application programs and deleting the application programs.
  8. An apparatus for processing an application, wherein the apparatus comprises: the device comprises a first acquisition module, a first judgment module, a deletion module and a creation module;
    the first obtaining module is used for obtaining a first use frequency of a target application program in a preset time period after the target application program is frozen by the electronic equipment;
    the first judging module is used for judging whether the first using frequency is smaller than a preset frequency;
    the deleting module is used for saving the application data and the application icon of the application program and deleting the application program when the first judging module judges that the application data and the application icon are positive;
    and the creating module is used for receiving an instruction for restarting the application program and creating an application page according to the instruction and the application data.
  9. The application processing apparatus of claim 8, wherein the apparatus further comprises: the device comprises a second acquisition module, a second judgment module and an installation module;
    the second obtaining module is configured to obtain a second usage frequency of the application page within a preset time period after the creating module creates the application page according to the instruction and the application data;
    the second judging module is used for judging whether the second using frequency is smaller than a preset frequency;
    and the installation module is used for reinstalling the application program when the second judgment module judges that the application program is not installed.
  10. The processing device of the application program according to claim 9, wherein the installation module comprises: a downloading submodule and an installing submodule;
    the download submodule is used for downloading the installation file of the application program;
    and the installation submodule is used for installing the application program according to the installation file and the application data.
  11. The processing device of the application program of claim 8, wherein the creation module comprises: a judgment submodule and a determination submodule;
    the judging submodule is used for judging whether the application icon receives the clicking operation of the user;
    and the determining submodule is used for determining to start the application program when the judging submodule judges that the application program is started.
  12. The processing device of the application program of claim 8, wherein the creation module further comprises: obtaining a submodule and a generating submodule;
    the obtaining submodule is used for obtaining an application identifier of the application program, sending the application identifier to a configuration server, and receiving a configuration file returned by the configuration server according to the application identifier;
    and the generation submodule is used for generating an application page according to the configuration file and the application data and displaying the application page.
  13. A storage medium having stored thereon a computer program, wherein the computer program, when run on a computer, causes the computer to execute a processing method of an application program according to any one of claims 1 to 7.
  14. An electronic device comprising a processor and a memory, the memory storing a plurality of instructions, wherein the instructions in the memory are loaded by the processor for performing the steps of:
    after the target application program is frozen by the electronic equipment, acquiring a first use frequency of the target application program in a preset time period;
    judging whether the first using frequency is smaller than a preset frequency or not;
    if so, saving the application data and the application icon of the application program, and deleting the application program;
    and receiving an instruction for restarting the application program, and creating an application page according to the instruction and the application data.
  15. The electronic device of claim 14, wherein after creating an application page from the instructions and application data, the processor is further configured to:
    acquiring a second use frequency of the application page in a preset time period;
    judging whether the second use frequency is smaller than a preset frequency or not;
    and if not, reinstalling the application program.
  16. The electronic device of claim 15, wherein, upon reinstallation of the application, the processor is configured to perform the steps of:
    downloading an installation file of the application program;
    and installing the application program according to the installation file and the application data.
  17. The electronic device of claim 14, wherein the processor, upon receiving an instruction to restart the application, is configured to:
    judging whether the application icon receives a clicking operation of a user;
    and if so, determining to start the application program.
  18. The electronic device of claim 14, wherein an application page is created from the instructions and application data, the processor to perform the steps of:
    acquiring an application identifier of the application program, sending the application identifier to a configuration server, and receiving a configuration file returned by the configuration server according to the application identifier;
    and generating an application page according to the configuration file and the user data, and displaying the application page.
  19. The electronic device of claim 18, wherein the configuration file includes global configuration information describing the application page, and wherein the processor is configured to perform the following steps when generating an application page from the configuration file and the application data and presenting the application page:
    loading and operating a script file in the electronic equipment system;
    analyzing the global configuration information through the script file to generate a native page of the application;
    and generating an application page according to the native page and the application data, and displaying the application page.
  20. The electronic device of claim 14, wherein, prior to saving the application data and application icon for the application and deleting the application, the processor is further configured to:
    acquiring the current residual storage space of the electronic equipment;
    judging whether the residual storage space is smaller than a preset value or not;
    and if so, executing the steps of saving the application data and the application icons of the application programs and deleting the application programs.
CN201980092366.7A 2019-04-12 2019-04-12 Application processing method and device, storage medium and electronic equipment Pending CN113474756A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/082506 WO2020206691A1 (en) 2019-04-12 2019-04-12 Application processing method and apparatus, storage medium, and electronic device

Publications (1)

Publication Number Publication Date
CN113474756A true CN113474756A (en) 2021-10-01

Family

ID=72752189

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201980092366.7A Pending CN113474756A (en) 2019-04-12 2019-04-12 Application processing method and device, storage medium and electronic equipment

Country Status (2)

Country Link
CN (1) CN113474756A (en)
WO (1) WO2020206691A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113608794A (en) * 2021-05-28 2021-11-05 北京达佳互联信息技术有限公司 Applet processing method, device and system, electronic equipment and storage medium
CN113485929A (en) * 2021-07-12 2021-10-08 北大方正集团有限公司 Data processing method, device, equipment, storage medium and program product
CN113625680A (en) * 2021-07-13 2021-11-09 深圳市元征未来汽车技术有限公司 Diagnostic software processing method and device and computer equipment
CN113467858A (en) * 2021-07-23 2021-10-01 北京光启元数字科技有限公司 Program starting method, device, equipment and medium
CN114090133A (en) * 2021-11-30 2022-02-25 深圳市元征科技股份有限公司 Application program configuration method and device, electronic equipment and storage medium
CN117785394A (en) * 2022-09-28 2024-03-29 华为终端有限公司 Application management method, electronic device, and readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105843367A (en) * 2016-03-24 2016-08-10 维沃移动通信有限公司 Application processing method and electronic device
CN106095482A (en) * 2016-05-31 2016-11-09 宇龙计算机通信科技(深圳)有限公司 The freezing method of application program and device
CN106293921A (en) * 2016-08-15 2017-01-04 宇龙计算机通信科技(深圳)有限公司 A kind of method freezing application program and terminal
CN108459884A (en) * 2018-02-13 2018-08-28 广东欧珀移动通信有限公司 Closing application program method, apparatus, storage medium and electronic equipment
CN109117153A (en) * 2018-08-28 2019-01-01 上海闻泰电子科技有限公司 Processing method, device, terminal and the storage medium of application program
CN109388453A (en) * 2018-09-07 2019-02-26 Oppo广东移动通信有限公司 Methods of exhibiting, device, storage medium and the electronic equipment of application page
CN109408150A (en) * 2018-10-30 2019-03-01 维沃移动通信有限公司 It is a kind of to apply loading method and mobile terminal fastly
WO2019061045A1 (en) * 2017-09-27 2019-04-04 深圳传音通讯有限公司 Application management method, terminal and computer readable storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10089093B1 (en) * 2011-05-24 2018-10-02 BlueStack Systems, Inc. Apparatuses, systems and methods of switching operating systems
CN106201464A (en) * 2016-06-27 2016-12-07 宇龙计算机通信科技(深圳)有限公司 A kind of application icon processing method freezing application and mobile terminal
CN106325993A (en) * 2016-08-22 2017-01-11 宇龙计算机通信科技(深圳)有限公司 Freezing method of application program and terminal

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105843367A (en) * 2016-03-24 2016-08-10 维沃移动通信有限公司 Application processing method and electronic device
CN106095482A (en) * 2016-05-31 2016-11-09 宇龙计算机通信科技(深圳)有限公司 The freezing method of application program and device
CN106293921A (en) * 2016-08-15 2017-01-04 宇龙计算机通信科技(深圳)有限公司 A kind of method freezing application program and terminal
WO2019061045A1 (en) * 2017-09-27 2019-04-04 深圳传音通讯有限公司 Application management method, terminal and computer readable storage medium
CN108459884A (en) * 2018-02-13 2018-08-28 广东欧珀移动通信有限公司 Closing application program method, apparatus, storage medium and electronic equipment
CN109117153A (en) * 2018-08-28 2019-01-01 上海闻泰电子科技有限公司 Processing method, device, terminal and the storage medium of application program
CN109388453A (en) * 2018-09-07 2019-02-26 Oppo广东移动通信有限公司 Methods of exhibiting, device, storage medium and the electronic equipment of application page
CN109408150A (en) * 2018-10-30 2019-03-01 维沃移动通信有限公司 It is a kind of to apply loading method and mobile terminal fastly

Also Published As

Publication number Publication date
WO2020206691A1 (en) 2020-10-15

Similar Documents

Publication Publication Date Title
CN108363528B (en) Application page starting method and device, storage medium and electronic equipment
CN113474756A (en) Application processing method and device, storage medium and electronic equipment
US20210191996A1 (en) Method for displaying application page, non-transitory storage medium and electronic device
CN107734616B (en) Application program closing method and device, storage medium and electronic equipment
CN108319489B (en) Application page starting method and device, storage medium and electronic equipment
CN108549568B (en) Application entry processing method and device, storage medium and electronic equipment
CN108363792B (en) Link generation method and device of application page, storage medium and electronic equipment
CN109408136B (en) Information processing method, information processing apparatus, storage medium, and electronic device
US20190370657A1 (en) Method and apparatus for updating application prediction model, storage medium, and terminal
CN110825563B (en) System recovery method and device and electronic equipment
CN108287918B (en) Music playing method and device based on application page, storage medium and electronic equipment
CN108345478B (en) Application processing method and device, storage medium and electronic equipment
US10684838B2 (en) Dynamic application deployment
CN112162795B (en) Plug-in starting method and device, computer equipment and storage medium
CN108334330B (en) Application unloading method and device, storage medium and electronic equipment
CN105955770A (en) Application program uninstalling method and terminal
CN112732434A (en) Application management method and device
CN108431767A (en) A kind of method, user terminal and the storage medium of load software program
CN109117153A (en) Processing method, device, terminal and the storage medium of application program
CN108563476B (en) Application program running method and device, storage medium and electronic equipment
CN107832131B (en) Application program closing method and device, storage medium and electronic equipment
CN113672297A (en) Restarting method and terminal in recovery mode upgrading process
CN106155808B (en) Method and device for managing computer system resources
CN108268274B (en) Application management method and device, storage medium and electronic equipment
CN109634782A (en) A kind of detection method of system robustness, device, storage medium and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20211001