CN108549557A - Using storing method, terminal and storage medium - Google Patents

Using storing method, terminal and storage medium Download PDF

Info

Publication number
CN108549557A
CN108549557A CN201810345427.3A CN201810345427A CN108549557A CN 108549557 A CN108549557 A CN 108549557A CN 201810345427 A CN201810345427 A CN 201810345427A CN 108549557 A CN108549557 A CN 108549557A
Authority
CN
China
Prior art keywords
installation
target application
application
file
target
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
CN201810345427.3A
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.)
Meizu Technology Co Ltd
Original Assignee
Meizu 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 Meizu Technology Co Ltd filed Critical Meizu Technology Co Ltd
Priority to CN201810345427.3A priority Critical patent/CN108549557A/en
Publication of CN108549557A publication Critical patent/CN108549557A/en
Pending legal-status Critical Current

Links

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
    • G06F9/44568Immediately runnable code
    • G06F9/44573Execute-in-place [XIP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

It is a kind of to apply storing method, it is applied to terminal, this method includes:Receive the instruction of unloading intended application;Judge that the installation file of exempting from the presence or absence of the intended application in target storage, the intended application exempt from installation file for exempting from intended application described in installation and operation in the terminal;If so, obtain the intended application exempts from installation file.The present invention also provides a kind of applications to retain device, terminal and storage medium.The present invention can remain to quickly start application after application unloading, save system space, improve running efficiency of system.

Description

Application retention method, terminal and storage medium
Technical Field
The invention relates to the technical field of terminals, in particular to an application retention method, a terminal and a storage medium.
Background
With the development of internet technology, the use of terminals such as mobile phones and tablets is seen everywhere, and on the terminals, the convenience of life of people is improved by rich Application software (APP) (such as social Application, news Application, video Application and the like). At present, the number of applications available for downloading in various application stores has reached millions, and during the use process of a user, the number of applications installed on a terminal may be very limited due to the limitation of the memory resource of the terminal.
Sometimes, the user unloads the application which is not frequently used or is not used in the near period of time due to the fact that the application occupies a large storage capacity, the user is stuck during running and the like, and when the user needs to use the unloaded application again, the application is downloaded from the application store. However, system garbage is often generated by frequent installation and uninstallation of the same application, and the gradually accumulated system garbage reduces the operation efficiency of the terminal, and even enables a user to uninstall more applications due to insufficient space, thereby greatly reducing user experience.
Disclosure of Invention
In view of this, it is desirable to provide an application persistence method, an application persistence device, a terminal and a storage medium, which can still quickly start an application after the application is uninstalled, save system space and improve system operation efficiency.
The application provides an application retention method, which comprises the following steps:
receiving an instruction to uninstall a target application;
judging whether an installation-free file of the target application exists in a target storage area, wherein the installation-free file of the target application is used for installing and running the target application in the terminal in a free mode;
and if so, acquiring the installation-free file of the target application.
In another possible implementation manner, the method further includes:
if the installation-free file of the target application exists in the target storage area, saving information is output;
and if the confirmation information aiming at the saving information is received, executing the operation of acquiring the installation-free file of the target application.
In another possible implementation manner, the method further includes:
creating a shortcut of the target application according to the installation-free file; or,
and creating a shortcut of the target application according to the installation-free file, wherein the position of the shortcut is the same as the position of an application icon before the target application is uninstalled.
In another possible implementation manner, the installation-free file includes a configuration file, description information, and a resource file;
the method for obtaining the installation-free file of the target application further comprises the following steps:
acquiring an operation instruction;
generating a native interface of the target application based on the operating system of the terminal according to the installation-free file;
and displaying the native interface.
In another possible implementation manner, the method further includes:
if the installation-free file of the target application does not exist in the target storage area, judging whether the target application meets an application retention condition;
if yes, monitoring whether a newly-added installation-free file of the target application exists in the target storage area;
and if so, executing the operation of acquiring the installation-free file of the target application.
In another possible implementation manner, the determining whether the target application satisfies the application retention condition includes:
judging whether the historical installation times of the target application reach preset installation times or not; or
Judging whether the historical uninstalling times of the target application reach preset uninstalling times or not; or
Judging whether the historical use frequency of the target application reaches a preset use frequency or not;
or a combination thereof.
In another possible implementation manner, the method further includes:
and if the frequency of acquiring the operation instruction exceeds the preset operation frequency and/or the preset operation frequency, outputting recommendation information for downloading the installation file of the target application.
In another possible implementation manner, the preset operation times and the preset operation frequency are determined according to the type of the target application.
The present application further provides an application retention device, the device comprising:
the receiving module is used for receiving an instruction of uninstalling the target application;
the judging module is used for judging whether an installation-free file of the target application exists in a target storage area, and the installation-free file of the target application is used for installing and running the target application in a terminal in a free mode;
and the acquisition module is used for acquiring the installation-free file of the target application if the installation-free file of the target application exists in the target storage area.
In another possible implementation manner, the apparatus further includes:
the output module is used for outputting saving information if the installation-free file of the target application exists in the target storage area;
and the triggering module is used for triggering the acquisition module to acquire the installation-free file of the target application if the confirmation information aiming at the saving information is received.
In another possible implementation manner, the apparatus further includes a creating module, where the creating module is configured to:
creating a shortcut of the target application according to the installation-free file; or,
and creating a shortcut of the target application according to the installation-free file, wherein the position of the shortcut is the same as the position of an application icon before the target application is uninstalled.
In another possible implementation manner, the installation-free file includes a configuration file, description information, and a resource file;
wherein the device also comprises a generation module and a display module,
the acquisition module is further used for acquiring an operation instruction after acquiring the installation-free file of the target application;
the generating module is used for generating a native interface of the target application based on the operating system of the terminal according to the installation-free file;
the display module is used for displaying the native interface.
In another possible implementation manner, the apparatus further includes a monitoring module;
the judging module is further configured to judge whether the target application meets an application retention condition if the installation-free file of the target application does not exist in the target storage area;
the monitoring module is used for monitoring whether a newly-added installation-free file of the target application exists in the target storage area or not if the target application meets an application retention condition;
and the triggering module is used for triggering the acquisition module to acquire the installation-free file of the target application if the newly-added installation-free file of the target application exists in the target storage area.
In another possible implementation manner, the determining, by the determining module, whether the target application satisfies an application retention condition includes:
judging whether the historical installation times of the target application reach preset installation times or not; or
Judging whether the historical uninstalling times of the target application reach preset uninstalling times or not; or
Judging whether the historical use frequency of the target application reaches a preset use frequency or not;
or a combination thereof.
In another possible implementation manner, the output module is further configured to:
and if the frequency of acquiring the operation instruction exceeds the preset operation frequency and/or the preset operation frequency, outputting recommendation information for downloading the installation file of the target application.
In another possible implementation manner, the preset operation times and the preset operation frequency are determined according to the type of the target application.
The present application also provides a terminal comprising a processor for implementing the above-mentioned application retention method when executing a computer program stored in a memory.
The present application also provides a computer readable storage medium having stored thereon computer instructions which, when executed by a processor, implement the above-described application persistence method.
The invention receives an instruction to uninstall a target application; judging whether an installation-free file of the target application exists in a target storage area, wherein the installation-free file of the target application is used for installing and running the target application in the terminal in a free mode; and if so, acquiring the installation-free file of the target application. Since the installation-free file of the application is acquired from the target storage area after the instruction of uninstalling the application, the installation-free file can be installed and run in the terminal. Therefore, after the application is uninstalled, the application can be started through the installation-free file of the application, and the application does not need to be installed firstly when the application is started, so that the time for starting the application is saved, and the purpose of quickly starting the application after the application is uninstalled is achieved. Meanwhile, the application can still be quickly read and started after the application is unloaded, so that frequent installation and unloading of the application by the same application can be avoided, system garbage is avoided, and system resources are saved. Moreover, because the installation-free file does not need an installation package, resource files in the installation process can not be generated, and system resources are saved to a certain extent, so that the operation efficiency of the system during operation can be improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flow chart of an application persistence method provided by an embodiment of the present invention;
fig. 2 is an exemplary diagram of outputting saving information in the embodiment of the present invention;
FIG. 3 is a block diagram of an application retention device provided by the present invention;
fig. 4 is a schematic structural diagram of a terminal implementing the preferred embodiment of the application persistence method according to the present invention.
The following detailed description will further illustrate the invention in conjunction with the above-described figures.
Detailed Description
In order that the above objects, features and advantages of the present invention can be more clearly understood, a detailed description of the present invention will be given below with reference to the accompanying drawings and specific embodiments. It should be noted that the embodiments and features of the embodiments of the present application may be combined with each other without conflict.
In the following description, numerous specific details are set forth to provide a thorough understanding of the present invention, and the described embodiments are merely a subset of the embodiments of the present invention, rather than a complete embodiment. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
Examples
Fig. 1 is a schematic flow chart of an application persistence method according to an embodiment of the present invention. As shown in fig. 1, the application retention method may include the following steps:
s10: the terminal receives an instruction to uninstall the target application.
The application retention method is applied to the terminal, and the terminal can be an electronic device such as a mobile phone and a tablet. Meanwhile, application software (also referred to as an application) may be installed and run on the terminal.
The target applications are applications installed and to be uninstalled on the terminal, and the number of the target applications may be one or at least two.
Specifically, the terminal can provide the user with a service entrance such as a desktop and application management to select the application to be downloaded, and after the user selects the target application to be downloaded, an instruction for uninstalling the target application can be triggered. Or, the terminal may also determine the target application to be uninstalled according to the operating condition of the terminal, and further trigger an instruction to uninstall the target application.
S20: the terminal judges whether an installation-free file of the target application exists in a target storage area, wherein the installation-free file of the target application is used for installation-free operation of the target application in the terminal.
The target storage area is a storage area for storing an installation-free file of the target application.
In particular, the target storage area may be a remote server (e.g., an application store for installation-free file downloading) on which installation-free files for several applications are stored. Alternatively, the target storage area may be a local storage area of the terminal, and the installation-free files of the plurality of applications are stored in the local storage area.
The installation-free file of the target application file is a file which can run the target application without installation after running.
Specifically, the target application can be started through the installation-free file of the target application without operating an installation file (such as apk) for installation like a traditional application installation mode. Therefore, the target application can be quickly started through the installation file of the target application.
Preferably, the installation-free file may include a configuration file, description information, and a resource file.
In particular, the configuration file may include functional components written in front-end code (e.g., Javascript), and execution logic to execute the front-end code (e.g., how the execution process is, how to jump after a button of the front-end page is clicked).
The description information of the configuration file may include an application package name, a right declaration to the application, page information, and the like.
The resource file comprises multimedia resources such as icons, pictures (such as moving pictures) and the like to be used when the application runs.
The installation-free file of the target file may include a configuration file, description information, and a resource file for running the target application.
In particular implementations, the installation-free file may be a front-end component configuration file. The front-end component configuration file may be a file developed based on a front-end componentized development standard that runs the application without installation.
S30: and if the installation-free file of the target application exists in the target storage area, the terminal acquires the installation-free file of the target application.
Specifically, when the obtaining of the installation-free file of the target application is implemented, a download address of the target application may be obtained, and the download address is stored locally; or acquiring the installation-free file of the target application and downloading the installation-free file to the local.
Meanwhile, the method and the device can obtain the installation-free application of the target application and unload the target application at the same time.
After the terminal acquires the installation-free file of the target application, the terminal can rapidly start the target application again through the installation-free file of the target application without installing the file again, so that the application starting time is greatly shortened, and the use convenience is improved.
Specifically, after the installation-free file of the target application is acquired, the target application may be started by analyzing the installation-free file, or the target application may be restarted by another wake-up method (for example, after a voice start instruction is received).
In a specific implementation, the resource library included in the installation-free file may be a resource for performing preprocessing compression, so as to reduce the size of the installation-free file. Meanwhile, if the front-end component configuration file is an installation-free file, the size of the file can be reduced due to component packaging of the front-end component configuration file. Therefore, the storage space of the terminal can be greatly saved, and the application can be quickly started.
Optionally, in other embodiments of the present invention, after obtaining the install-free file of the target application, an entry for the user to start the target application again may be created by the following method. Specifically, the method of the present invention further comprises:
(1) the terminal creates a shortcut of the target application according to the installation-free file; or,
(2) and the terminal creates a shortcut of the target application according to the installation-free file, and the position of the shortcut is the same as the position of the application icon before the target application is uninstalled.
The shortcut of the target application refers to a shortcut for starting the target application.
For example, a shortcut is created on a desktop of the terminal to point to a download address of an installation-free file of the target application, and the installation-free file of the target application can be quickly accessed by accessing the shortcut, so that the installation-free file of the target application can be loaded to the local, and then the target application is started through the installation-free file of the target application. At this time, because no file is downloaded on the terminal, only the address of the installation-free file of the download target application is configured, the occupied storage space is extremely small, and the system resources of the terminal are greatly saved.
Or the installation-free file can be loaded to the local after the installation-free file of the target application is acquired, a shortcut is created on the desktop and points to the installation-free file of the target application, and at the moment, the installation-free file of the target application can be directly started from the local, so that the target application is quickly started.
The application icon is a display icon for starting an application. The position of the application icon before uninstalling the target application refers to a position where the application icon is displayed on the terminal before uninstalling the target application (for example, the position is a terminal desktop or a certain folder of the terminal desktop).
Typically, after an application is uninstalled from a terminal, the application's icon is deleted from the terminal. Therefore, in this embodiment, the position of the created shortcut of the target application is the same as the position of the application icon before the uninstallation of the target application, so that the user still accesses the shortcut of the target application through the position of the application icon which is originally accessed, and the user does not need to find the place where the shortcut of the target application is created.
Moreover, because the application icons can be placed at different positions or summarized differently according to the habits of each person when the user uses the application, the position of the shortcut is kept at the position of the original application icon through the embodiment of the invention, the shortcut can be established at the position which is in line with the use habits of the user according to the individual difference of the user when the shortcut is established, and the continuity of the use of the user is kept.
Optionally, in another embodiment of the present invention, the application retention method further includes:
(1) and the terminal acquires the operation instruction.
(2) And the terminal generates a native interface of the target application based on the operating system of the terminal according to the installation-free file.
(3) And the terminal displays the native interface.
The running instruction is an instruction for starting an installation-free file of the target application. For example, the installation-free file of the target application is started through a shortcut of the target application, or the installation-free file of the target application is started through a voice command.
When the installation-free file is executed, a native interface (or a native page) of the terminal-based operating system of the target application can be generated by analyzing information in the installation-free file. The native interface is another form of interface display as opposed to a web interface.
At present, applications run by a terminal are divided into a web app and a native app (or native app), a page displayed when the web app runs may be referred to as a web interface, and a page displayed when the native app is prototype may be referred to as a native interface.
Since the installation-free files of the target application can be directly started and run by the terminal without interaction with the browser, the speed is higher than that of the web app. Moreover, the installation-free file of the target application can comprise a functional component written by the front-end code, so that the display style of the native interface can be simulated by the functional component written by the front-end code, the native interface of the target application can be displayed on the terminal, and the display effect is improved.
Taking the installation-free file of the target application as the front-end component configuration file as an example, since the front-end component configuration file is developed based on the front-end component development standard, when the front-end component configuration file is executed, the front-end component configuration file can be analyzed through the operating system of the terminal and the front-end component development standard, so as to start the target application corresponding to the front-end component configuration file.
Optionally, in another embodiment of the present invention, the application retention method further includes:
and if the frequency of acquiring the operation instruction exceeds the preset operation frequency and/or the preset operation frequency, the terminal outputs recommendation information for downloading the installation file of the target application.
The preset running frequency and the preset running frequency can be set according to requirements. The preset operation times and the preset operation frequency are used for determining whether the target application is a user frequently used by the user.
When the number of times of the operation instruction exceeds the preset operation number and/or the preset operation frequency, recommendation information recommending downloading of the installation file of the target application can be output. For example, whether the terminal goes to an application store for target application downloading is displayed on a display interface of the terminal. And the download address of the simplified installation file of the target application can be recommended to the user, so that the starting speed of the user after the native app is installed through the installation file of the target application is improved, and system resources are saved.
Preferably, the preset operation times and the preset operation frequency are determined according to the type of the target application.
The actual number of uses and frequency of uses may vary from application to application. For example, for a certain social application, a weekly usage may be less frequent, whereas for a certain online banking app, a weekly usage may be moderate, so different preset running times and preset running frequencies may be set for different apps.
The preset running times and the preset running frequency are set according to the type of the target application, which applications are applications which are actually needed possibly by the user and which applications are applications which are actually not needed possibly by the user can be subdivided, and the requirements of the user are reasonably analyzed based on data.
Optionally, in another embodiment of the present invention, the application retention method further includes:
if the installation-free file of the target application exists in the target storage area according to the judgment, the terminal outputs saving information; and if the confirmation information aiming at the saving information is received, the terminal acquires the installation-free file of the target application.
The saving information can be displayed on a display interface of the terminal, the saving information can be used for prompting a user to acquire an installation-free file of the target application, and the installation-free file can be quickly started again on the terminal without occupying more resources. The saving information can be image-text information and/or sound information.
Referring to fig. 2, fig. 2 is a diagram illustrating an example of outputting saving information according to an embodiment of the present invention. In fig. 2, the user is prompted in a text manner, and is provided with a choice whether to confirm acquisition of the installation-free file of the target application.
After entering the saving information, confirmation information for the saving information may be received. For example, in fig. 2, the saving information includes a selectable button to allow the user to select whether to acquire the installation-free file of the target application, and if so, it is determined that the confirmation information for the saving information is received.
In this embodiment, by outputting the saving information, the installation-free file of the target application can be acquired according to the needs of the user, so that the user experience is improved. The user can be confused by directly creating the installation-free file without ignoring the requirement of the user (for example, the user is mistaken that the target application is not deleted, the deletion is continued, or the terminal system fails).
Also, the style of the saving information is not limited to that shown in fig. 2, and other styles of saving information may be used.
Optionally, in another embodiment of the present invention, the method of the present invention may further include:
(1) and if the installation-free file of the target application does not exist in the target storage area according to the judgment, the terminal judges whether the target application meets the application retention condition.
(2) And if the target application meets the application retention condition, the terminal monitors whether a newly-added installation-free file of the target application exists in the target storage area.
(3) And if the installation-free file of the newly added target application exists in the target storage area, the terminal acquires the installation-free file of the target application.
In the embodiment of the invention, when the installation-free file of the target application does not exist in the target storage area, whether the target application meets the application retention condition or not can be judged. The application retention condition may be used to determine whether the user uses the target application frequently.
Optionally, the determining, by the terminal, whether the target application meets the application retention condition includes:
the terminal judges whether the historical installation times of the target application reach preset installation times or not; or
The terminal judges whether the historical uninstalling times of the target application reach preset uninstalling times or not; or
The terminal judges whether the historical use frequency of the target application reaches a preset use frequency;
or a combination thereof.
Wherein the preset installation times, the preset unloading times and the preset using frequency can be set according to requirements,
preferably, the preset installation times, the preset uninstallation times and the preset use frequency may also be set according to the type of the target application.
Specifically, the monitoring whether the newly added installation-free file of the target application exists in the target storage area may be to poll the target storage area at intervals of a preset time to find whether the installation-free file of the target application exists. And if the installation-free file of the target application exists in the target storage area, determining that the newly added installation-free file of the target application exists in the target storage area.
Or, the monitoring whether the new installation-free file of the target application exists in the target storage area may be that a notification message that the new installation-free file of the target application exists is received, where the notification message is sent by the target storage area or the message server to the terminal, and if the notification message is received, it is determined that the new installation-free file of the target application exists in the target storage area.
Applications may be offloaded because a user may occupy too much capacity for one or more applications, etc., and the actual user may have a certain demand for use by those users. Therefore, in this embodiment, even if the instruction for uninstalling the target application is not received, the corresponding installation-free files are obtained, but whether the installation-free files exist is continuously monitored, and when the installation-free files exist, the files are timely downloaded for the user, so that the target application can be quickly started when the user uses the files, and the user experience is improved.
The embodiment of the invention receives the instruction of unloading the target application; judging whether an installation-free file of the target application exists in a target storage area, wherein the installation-free file of the target application is used for installing and running the target application in the terminal in a free mode; and if so, acquiring the installation-free file of the target application. Since the installation-free file of the application is acquired from the target storage area after the instruction of uninstalling the application, the installation-free file can be installed and run in the terminal. Therefore, after the application is uninstalled, the application can be started through the installation-free file of the application, and the application does not need to be installed firstly when the application is started, so that the time for starting the application is saved, and the purpose of quickly starting the application after the application is uninstalled is achieved. Meanwhile, the application can still be quickly read and started after the application is unloaded, so that frequent installation and unloading of the application by the same application can be avoided, system garbage is avoided, and system resources are saved. Moreover, because the installation-free file does not need an installation package, resource files in the installation process can not be generated, and system resources are saved to a certain extent, so that the operation efficiency of the system during operation can be improved.
The above is a detailed description of the method provided by the present invention. The execution order of the blocks in the flow chart can be changed, some blocks can be omitted, and the application retention method can be selectively combined with the application retention method or combined with other application retention methods which are not mentioned above according to different requirements. The apparatus provided by the present invention is described below.
Examples
Fig. 3 is a block diagram of an application retention apparatus according to an embodiment of the present invention, and as shown in fig. 3, the application retention apparatus may include: a receiving module 210, a judging module 220 and an obtaining module 230. The module referred to in the present invention means a series of computer program segments that can be executed by the terminal and that can perform a fixed function.
The receiving module 210 is configured to receive an instruction to uninstall the target application.
The terminal can be an electronic device such as a mobile phone and a tablet. Meanwhile, application software (also referred to as an application) may be installed and run on the terminal.
The target applications are applications installed and to be uninstalled on the terminal, and the number of the target applications may be one or at least two.
Specifically, the terminal can provide the user with a service entrance such as a desktop and application management to select the application to be downloaded, and after the user selects the target application to be downloaded, an instruction for uninstalling the target application can be triggered. Or, the terminal may also determine the target application to be uninstalled according to the operating condition of the terminal, and further trigger an instruction to uninstall the target application.
The determining module 220 is configured to determine whether an installation-free file of the target application exists in the target storage area, where the installation-free file of the target application is used to run the target application in an installation-free manner in the terminal.
The target storage area is a storage area for storing an installation-free file of the target application.
In particular, the target storage area may be a remote server (e.g., an application store for installation-free file downloading) on which installation-free files for several applications are stored. Alternatively, the target storage area may be a local storage area of the terminal, and the installation-free files of the plurality of applications are stored in the local storage area.
The installation-free file of the target application file is a file which can run the target application without installation after running.
Specifically, the target application can be started through the installation-free file of the target application without operating an installation file (such as apk) for installation like a traditional application installation mode. Therefore, the target application can be quickly started through the installation file of the target application.
Preferably, the installation-free file may include a configuration file, description information, and a resource file.
In particular, the configuration file may include functional components written in front-end code (e.g., Javascript), and execution logic to execute the front-end code (e.g., how the execution process is, how to jump after a button of the front-end page is clicked).
The description information of the configuration file may include an application package name, a right declaration to the application, page information, and the like.
The resource file comprises multimedia resources such as icons, pictures (such as moving pictures) and the like to be used when the application runs.
The installation-free file of the target file may include a configuration file, description information, and a resource file for running the target application.
In particular implementations, the installation-free file may be a front-end component configuration file. The front-end component configuration file may be a file developed based on a front-end componentized development standard that runs the application without installation.
An obtaining module 230, configured to obtain an installation-free file of the target application if the installation-free file of the target application exists in the target storage area.
Specifically, when the obtaining of the installation-free file of the target application is implemented, a download address of the target application may be obtained, and the download address is stored locally; or acquiring the installation-free file of the target application and downloading the installation-free file to the local.
Meanwhile, the method and the device can obtain the installation-free application of the target application and unload the target application at the same time.
After the terminal acquires the installation-free file of the target application, the terminal can rapidly start the target application again through the installation-free file of the target application without installing the file again, so that the application starting time is greatly shortened, and the use convenience is improved.
Specifically, after the installation-free file of the target application is acquired, the target application may be started by analyzing the installation-free file, or the target application may be restarted by another wake-up method (for example, after a voice start instruction is received).
In a specific implementation, the resource library included in the installation-free file may be a resource for performing preprocessing compression, so as to reduce the size of the installation-free file. Meanwhile, if the front-end component configuration file is an installation-free file, the size of the file can be reduced due to component packaging of the front-end component configuration file. Therefore, the storage space of the terminal can be greatly saved, and the application can be quickly started.
Optionally, in other embodiments of the present invention, after the install-free file of the target application is obtained, an entry for the user to start the target application again may be created through the creation module. Specifically, the apparatus of the present invention further comprises:
(1) creating a shortcut of the target application according to the installation-free file; or,
(2) and creating a shortcut of the target application according to the installation-free file, wherein the position of the shortcut is the same as the position of an application icon before the target application is uninstalled.
The shortcut of the target application refers to a shortcut for starting the target application.
For example, a shortcut is created on a desktop of the terminal to point to a download address of an installation-free file of the target application, and the installation-free file of the target application can be quickly accessed by accessing the shortcut, so that the installation-free file of the target application can be loaded to the local, and then the target application is started through the installation-free file of the target application. At this time, because no file is downloaded on the terminal, only the address of the installation-free file of the download target application is configured, the occupied storage space is extremely small, and the system resources of the terminal are greatly saved.
Or the installation-free file can be loaded to the local after the installation-free file of the target application is acquired, a shortcut is created on the desktop and points to the installation-free file of the target application, and at the moment, the installation-free file of the target application can be directly started from the local, so that the target application is quickly started.
The application icon is a display icon for starting an application. The position of the application icon before uninstalling the target application refers to a position where the application icon is displayed on the terminal before uninstalling the target application (for example, the position is a terminal desktop or a certain folder of the terminal desktop).
Typically, after an application is uninstalled from a terminal, the application's icon is deleted from the terminal. Therefore, in this embodiment, the position of the created shortcut of the target application is the same as the position of the application icon before the uninstallation of the target application, so that the user still accesses the shortcut of the target application through the position of the application icon which is originally accessed, and the user does not need to find the place where the shortcut of the target application is created.
Moreover, because the application icons can be placed at different positions or summarized differently according to the habits of each person when the user uses the application, the position of the shortcut is kept at the position of the original application icon through the embodiment of the invention, the shortcut can be established at the position which is in line with the use habits of the user according to the individual difference of the user when the shortcut is established, and the continuity of the use of the user is kept.
Optionally, in another embodiment of the present invention, the target application may be run and displayed through the obtaining module, the generating module and the displaying module. Specifically, the method comprises the following steps:
the acquisition module is further used for acquiring an operation instruction after acquiring the installation-free file of the target application;
and the generating module is used for generating a native interface of the target application based on the operating system of the terminal according to the installation-free file.
And the display module is used for displaying the native interface.
The running instruction is an instruction for starting an installation-free file of the target application. For example, the installation-free file of the target application is started through a shortcut of the target application, or the installation-free file of the target application is started through a voice command.
When the installation-free file is executed, a native interface (or a native page) of the terminal-based operating system of the target application can be generated by analyzing information in the installation-free file. The native interface is another form of interface display as opposed to a web interface.
At present, applications run by a terminal are divided into a web app and a native app (or native app), a page displayed when the web app runs may be referred to as a web interface, and a page displayed when the native app is prototype may be referred to as a native interface.
Since the installation-free files of the target application can be directly started and run by the terminal without interaction with the browser, the speed is higher than that of the web app. Moreover, the installation-free file of the target application can comprise a functional component written by the front-end code, so that the display style of the native interface can be simulated by the functional component written by the front-end code, the native interface of the target application can be displayed on the terminal, and the display effect is improved.
Taking the installation-free file of the target application as the front-end component configuration file as an example, since the front-end component configuration file is developed based on the front-end component development standard, when the front-end component configuration file is executed, the front-end component configuration file can be analyzed through the operating system of the terminal and the front-end component development standard, so as to start the target application corresponding to the front-end component configuration file.
Optionally, in another embodiment of the present invention, the application retention apparatus further includes:
and the output module is used for outputting recommendation information for downloading the installation file of the target application if the frequency of acquiring the operation instruction exceeds the preset operation frequency and/or the preset operation frequency.
The preset running frequency and the preset running frequency can be set according to requirements. The preset operation times and the preset operation frequency are used for determining whether the target application is a user frequently used by the user.
When the number of times of the operation instruction exceeds the preset operation number and/or the preset operation frequency, recommendation information recommending downloading of the installation file of the target application can be output. For example, whether the terminal goes to an application store for target application downloading is displayed on a display interface of the terminal. And the download address of the simplified installation file of the target application can be recommended to the user, so that the starting speed of the user after the native app is installed through the installation file of the target application is improved, and system resources are saved.
Preferably, the preset operation times and the preset operation frequency are determined according to the type of the target application.
The actual number of uses and frequency of uses may vary from application to application. For example, for a certain social application, a weekly usage may be less frequent, whereas for a certain online banking app, a weekly usage may be moderate, so different preset running times and preset running frequencies may be set for different apps.
The preset running times and the preset running frequency are set according to the type of the target application, which applications are applications which are actually needed possibly by the user and which applications are applications which are actually not needed possibly by the user can be subdivided, and the requirements of the user are reasonably analyzed based on data.
Optionally, in another embodiment of the present invention, the application retention apparatus further includes:
the output module is used for outputting saving information if the installation-free file of the target application exists in the target storage area according to the judgment;
and the triggering module is used for triggering the acquisition module to acquire the installation-free file of the target application if the confirmation information aiming at the saving information is received.
The saving information can be displayed on a display interface of the terminal, the saving information can be used for prompting a user to acquire an installation-free file of the target application, and the installation-free file can be quickly started again on the terminal without occupying more resources. The saving information can be image-text information and/or sound information.
Referring to fig. 2, fig. 2 is a diagram illustrating an example of outputting saving information according to an embodiment of the present invention. In fig. 2, the user is prompted in a text manner, and is provided with a choice whether to confirm acquisition of the installation-free file of the target application.
After entering the saving information, confirmation information for the saving information may be received. For example, in fig. 2, the saving information includes a selectable button to allow the user to select whether to acquire the installation-free file of the target application, and if so, it is determined that the confirmation information for the saving information is received.
In this embodiment, by outputting the saving information, the installation-free file of the target application can be acquired according to the needs of the user, so that the user experience is improved. The user can be confused by directly creating the installation-free file without ignoring the requirement of the user (for example, the user is mistaken that the target application is not deleted, the deletion is continued, or the terminal system fails).
Also, the style of the saving information is not limited to that shown in fig. 2, and other styles of saving information may be used.
Optionally, in another embodiment of the present invention, the apparatus of the present invention may further include a monitoring module. Specifically, the method comprises the following steps:
the judging module is further configured to judge whether the target application meets an application retention condition if the installation-free file of the target application does not exist in the target storage area.
And the monitoring module is used for monitoring whether a newly-added installation-free file of the target application exists in the target storage area or not if the target application meets the application retention condition.
And the triggering module is used for triggering the acquisition module to acquire the installation-free file of the target application if the newly-added installation-free file of the target application exists in the target storage area.
In the embodiment of the invention, when the installation-free file of the target application does not exist in the target storage area, whether the target application meets the application retention condition or not can be judged. The application retention condition may be used to determine whether the user uses the target application frequently.
Optionally, the determining, by the determining module, whether the target application satisfies an application retention condition includes:
judging whether the historical installation times of the target application reach preset installation times or not; or
Judging whether the historical uninstalling times of the target application reach preset uninstalling times or not; or
Judging whether the historical use frequency of the target application reaches a preset use frequency or not;
or a combination thereof.
Wherein the preset installation times, the preset unloading times and the preset using frequency can be set according to requirements,
preferably, the preset installation times, the preset uninstallation times and the preset use frequency may also be set according to the type of the target application.
Specifically, the monitoring whether the newly added installation-free file of the target application exists in the target storage area may be to poll the target storage area at intervals of a preset time to find whether the installation-free file of the target application exists. And if the installation-free file of the target application exists in the target storage area, determining that the newly added installation-free file of the target application exists in the target storage area.
Or, the monitoring whether the new installation-free file of the target application exists in the target storage area may be that a notification message that the new installation-free file of the target application exists is received, where the notification message is sent by the target storage area or the message server to the terminal, and if the notification message is received, it is determined that the new installation-free file of the target application exists in the target storage area.
Applications may be offloaded because a user may occupy too much capacity for one or more applications, etc., and the actual user may have a certain demand for use by those users. Therefore, in this embodiment, even if the instruction for uninstalling the target application is not received, the corresponding installation-free files are obtained, but whether the installation-free files exist is continuously monitored, and when the installation-free files exist, the files are timely downloaded for the user, so that the target application can be quickly started when the user uses the files, and the user experience is improved.
The embodiment of the invention receives an instruction for unloading the target application through a receiving module; the judging module judges whether an installation-free file of the target application exists in a target storage area, wherein the installation-free file of the target application is used for installing and running the target application in the terminal in a free mode; if the installation-free file of the target application exists in the target storage area, the acquisition module acquires the installation-free file of the target application. Since the installation-free file of the application is acquired from the target storage area after the instruction of uninstalling the application, the installation-free file can be installed and run in the terminal. Therefore, after the application is uninstalled, the application can be started through the installation-free file of the application, and the application does not need to be installed firstly when the application is started, so that the time for starting the application is saved, and the purpose of quickly starting the application after the application is uninstalled is achieved. Meanwhile, the application can still be quickly read and started after the application is unloaded, so that frequent installation and unloading of the application by the same application can be avoided, system garbage is avoided, and system resources are saved. Moreover, because the installation-free file does not need an installation package, resource files in the installation process can not be generated, and system resources are saved to a certain extent, so that the operation efficiency of the system during operation can be improved.
Examples
Referring to fig. 4, fig. 4 is a schematic structural diagram of a terminal according to a preferred embodiment of the present invention for implementing an application persistence method.
The terminal 40 is a device capable of automatically performing numerical calculation and/or information processing according to a preset or stored instruction, and the hardware thereof includes, but is not limited to, a microprocessor, an Application Specific Integrated Circuit (ASIC), a Programmable Gate Array (FPGA), a Digital Signal Processor (DSP), an embedded device, and the like.
The terminal 40 may be, but is not limited to, any electronic product capable of performing human-computer interaction with a user through a keyboard, a touch pad, or a voice control device, for example, an electronic device such as a tablet computer, a smart phone, a Personal Digital Assistant (PDA), and an intelligent wearable device.
The Network where the terminal 40 is located includes, but is not limited to, the internet, a wide area Network, a metropolitan area Network, a local area Network, a Virtual Private Network (VPN), and the like.
The terminal 40 comprises at least one transmitting means 41, at least one memory 42, at least one processor 43, at least one receiving means 44, at least one display 45 and at least one communication bus. Wherein the communication bus is used for realizing connection communication among the components.
The receiving device 44 and the transmitting device 41 may be wired transmitting ports, or may be wireless devices, for example, including antenna devices, for performing data communication with other devices.
The processor 43 may comprise one or more microprocessors, digital processors.
The memory 42 is used for storing program codes. The memory 42 may be a smart media card (smart media card), a secure digital card (secure digital card), a flash memory card (flash card), or other storage devices.
Preferably, the processor 43 can call program code stored in the memory 42 to perform the associated functions. For example, the various modules illustrated in fig. 4 are program code stored in the memory 42 and executed by the processor 43 to implement an application persistence method.
The display 45 may be a touch panel or other device for displaying images.
Examples
Embodiments of the present invention also provide a computer-readable storage medium having stored thereon computer instructions, which, when executed by a terminal comprising one or more processors, cause the terminal to perform an application persistence method as described in the above method embodiments.
In the embodiments provided in the present invention, it should be understood that the disclosed method and apparatus can be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. Several of the means recited in the apparatus claims may also be embodied by one and the same means or system in software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims (10)

1. An application retention method applied to a terminal, the method comprising:
receiving an instruction to uninstall a target application;
judging whether an installation-free file of the target application exists in a target storage area, wherein the installation-free file of the target application is used for installing and running the target application in the terminal in a free mode;
and if so, acquiring the installation-free file of the target application.
2. The method of claim 1, further comprising:
if the installation-free file of the target application exists in the target storage area, saving information is output;
and if the confirmation information aiming at the saving information is received, executing the operation of acquiring the installation-free file of the target application.
3. The method of claim 1, further comprising:
creating a shortcut of the target application according to the installation-free file; or,
and creating a shortcut of the target application according to the installation-free file, wherein the position of the shortcut is the same as the position of an application icon before the target application is uninstalled.
4. The method according to any one of claims 1 to 3, wherein the installation-free file comprises a configuration file, description information and a resource file;
the method for obtaining the installation-free file of the target application further comprises the following steps:
acquiring an operation instruction;
generating a native interface of the target application based on the operating system of the terminal according to the installation-free file;
and displaying the native interface.
5. The method of claim 1, wherein the method further comprises:
if the installation-free file of the target application does not exist in the target storage area, judging whether the target application meets an application retention condition;
if yes, monitoring whether a newly-added installation-free file of the target application exists in the target storage area;
and if so, executing the operation of acquiring the installation-free file of the target application.
6. The method of claim 5, wherein the determining whether the target application satisfies an application retention condition comprises:
judging whether the historical installation times of the target application reach preset installation times or not; or
Judging whether the historical uninstalling times of the target application reach preset uninstalling times or not; or
Judging whether the historical use frequency of the target application reaches a preset use frequency or not;
or a combination thereof.
7. The method of claim 4, wherein the method further comprises:
and if the frequency of acquiring the operation instruction exceeds the preset operation frequency and/or the preset operation frequency, outputting recommendation information for downloading the installation file of the target application.
8. The method of claim 7, wherein the preset number of times of operation and the preset operation frequency are determined according to a type of the target application.
9. A terminal, characterized in that the terminal comprises a processor for implementing the method according to any of claims 1-7 when executing a computer program stored in a memory.
10. A computer-readable storage medium having stored thereon computer instructions, characterized in that: the computer instructions, when executed by a processor, implement the method of any one of claims 1-7.
CN201810345427.3A 2018-04-17 2018-04-17 Using storing method, terminal and storage medium Pending CN108549557A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810345427.3A CN108549557A (en) 2018-04-17 2018-04-17 Using storing method, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810345427.3A CN108549557A (en) 2018-04-17 2018-04-17 Using storing method, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN108549557A true CN108549557A (en) 2018-09-18

Family

ID=63515076

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810345427.3A Pending CN108549557A (en) 2018-04-17 2018-04-17 Using storing method, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN108549557A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109753291A (en) * 2018-12-19 2019-05-14 聚好看科技股份有限公司 A kind of intelligent terminal, its application management method, device and storage medium
CN110222264A (en) * 2019-05-24 2019-09-10 苏州达家迎信息技术有限公司 Application maintenance control method, device, terminal, server and storage medium
CN113032078A (en) * 2021-03-30 2021-06-25 深圳市中科明望通信软件有限公司 Page display method and device, electronic equipment and computer readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102722392A (en) * 2012-06-07 2012-10-10 腾讯科技(深圳)有限公司 Method and system for software operation
CN103617057A (en) * 2013-11-27 2014-03-05 北京奇虎科技有限公司 Application program installation method and device
CN105700911A (en) * 2015-12-29 2016-06-22 北京金山安全软件有限公司 Application installation method and device and electronic equipment
US9378002B2 (en) * 2006-12-22 2016-06-28 Core Wireless Licensing S.A.R.L. System, method, apparatus and computer program product for providing memory footprint reduction
CN107329743A (en) * 2017-06-14 2017-11-07 北京小米移动软件有限公司 Methods of exhibiting, device and the storage medium of five application page
CN107704287A (en) * 2017-09-28 2018-02-16 努比亚技术有限公司 Installation method, mobile terminal and computer-readable recording medium are exempted from program application

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9378002B2 (en) * 2006-12-22 2016-06-28 Core Wireless Licensing S.A.R.L. System, method, apparatus and computer program product for providing memory footprint reduction
CN102722392A (en) * 2012-06-07 2012-10-10 腾讯科技(深圳)有限公司 Method and system for software operation
CN103617057A (en) * 2013-11-27 2014-03-05 北京奇虎科技有限公司 Application program installation method and device
CN105700911A (en) * 2015-12-29 2016-06-22 北京金山安全软件有限公司 Application installation method and device and electronic equipment
CN107329743A (en) * 2017-06-14 2017-11-07 北京小米移动软件有限公司 Methods of exhibiting, device and the storage medium of five application page
CN107704287A (en) * 2017-09-28 2018-02-16 努比亚技术有限公司 Installation method, mobile terminal and computer-readable recording medium are exempted from program application

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109753291A (en) * 2018-12-19 2019-05-14 聚好看科技股份有限公司 A kind of intelligent terminal, its application management method, device and storage medium
CN110222264A (en) * 2019-05-24 2019-09-10 苏州达家迎信息技术有限公司 Application maintenance control method, device, terminal, server and storage medium
CN110222264B (en) * 2019-05-24 2021-10-08 苏州达家迎信息技术有限公司 Application program maintenance control method, device, terminal, server and storage medium
CN113032078A (en) * 2021-03-30 2021-06-25 深圳市中科明望通信软件有限公司 Page display method and device, electronic equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN106598655B (en) Application page processing method and device
CN108958844B (en) Application program control method and terminal
KR102150774B1 (en) Method and apparatus for loading a terminal application
CN108549568B (en) Application entry processing method and device, storage medium and electronic equipment
CN108363528B (en) Application page starting method and device, storage medium and electronic equipment
CN111427596B (en) Software upgrading method and device and terminal equipment
EP2945058A1 (en) Processing method and device for application program
CN107741844B (en) Method and device for generating application installation package
CN107291481B (en) Component updating method, device and system
CN103345405A (en) Application program starting method and device and client
CN105988805B (en) Application program management method and mobile terminal
CN108647032B (en) Application loading method and device, computer device and computer readable storage medium
CN105988837B (en) Application program installation method and device
CN108345478B (en) Application processing method and device, storage medium and electronic equipment
CN110851204B (en) Application starting method and device and application packaging method and device
CN105955770A (en) Application program uninstalling method and terminal
CN113474756A (en) Application processing method and device, storage medium and electronic equipment
CN109117153B (en) Application processing method, device, terminal and storage medium
CN108549557A (en) Using storing method, terminal and storage medium
CN108334330B (en) Application unloading method and device, storage medium and electronic equipment
CN110968331A (en) Method and device for running application program
CN109901849B (en) Application program installation method and device, electronic equipment and storage medium
CN111258800A (en) Page processing method and device and electronic equipment
CN108563476B (en) Application program running method and device, storage medium and electronic equipment
CN112416496A (en) Page display method and device and storage medium

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: 20180918

RJ01 Rejection of invention patent application after publication