CN108334330B - Application unloading method and device, storage medium and electronic equipment - Google Patents

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

Info

Publication number
CN108334330B
CN108334330B CN201810150633.9A CN201810150633A CN108334330B CN 108334330 B CN108334330 B CN 108334330B CN 201810150633 A CN201810150633 A CN 201810150633A CN 108334330 B CN108334330 B CN 108334330B
Authority
CN
China
Prior art keywords
application
interface
execution
target
target application
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.)
Active
Application number
CN201810150633.9A
Other languages
Chinese (zh)
Other versions
CN108334330A (en
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
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810150633.9A priority Critical patent/CN108334330B/en
Publication of CN108334330A publication Critical patent/CN108334330A/en
Application granted granted Critical
Publication of CN108334330B publication Critical patent/CN108334330B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/62Uninstallation
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text

Abstract

The embodiment of the application discloses an application uninstalling method, an application uninstalling device, a storage medium and electronic equipment, wherein the application uninstalling method comprises the steps of firstly determining a target application which needs to be uninstalled currently; then acquiring a configuration file corresponding to the target application from an application server according to the application information of the target application; generating an execution entry corresponding to the configuration file, wherein the execution entry is used for executing the configuration file when triggered so as to generate and display a native interface of the target application; and finally, adding the generated execution entry to the preset interface, and uninstalling the target application, so that the function of the target application is realized through the generated native interface of the target application under the condition that the target application is not installed after the target application is uninstalled, and the storage space of the electronic equipment can be saved on the premise of realizing the application function.

Description

Application unloading method and device, storage medium and electronic equipment
Technical Field
The application relates to the technical field of electronic equipment, in particular to an application uninstalling method and device, a storage medium and electronic equipment.
Background
With the popularization of electronic devices such as smart phones, users can install applications on the electronic devices to realize various functions, for example, information aggregation applications can be installed on the electronic devices, so that various types of rich information, such as news information, audio and video information, can be obtained through the information aggregation applications.
Currently, there are some unusual applications such as government affairs applications, through which users need to implement some special functions, such as online reservation, etc. However, due to its particularity, the user does not generally reuse the electronic device for a long time after performing the desired function, resulting in unnecessary waste of storage space of the electronic device.
Disclosure of Invention
The embodiment of the application uninstalling method and device, the storage medium and the electronic device can save the storage space of the electronic device on the premise of realizing the application function.
In a first aspect, an embodiment of the present application provides an application uninstalling method, including:
determining a target application which needs to be unloaded currently;
acquiring a configuration file corresponding to the target application from an application server according to the application information of the target application;
generating an execution inlet corresponding to the configuration file, wherein the execution inlet is used for executing the configuration file when triggered so as to generate and display a native interface of the target application;
and adding the execution inlet to a preset interface, and unloading the target application.
In a second aspect, an application uninstalling apparatus provided in an embodiment of the present application includes:
the determining module is used for determining the target application which needs to be unloaded currently;
the acquisition module is used for acquiring a configuration file corresponding to the target application from an application server according to the application information of the target application;
the generating module is used for generating an execution inlet corresponding to the configuration file, and the execution inlet is used for executing the configuration file when triggered so as to generate and display a native interface of the target application;
and the uninstalling module is used for adding the execution entrance to a preset interface and uninstalling the target application.
In a third aspect, a storage medium is provided in this application, where a computer program is stored, and when the computer program runs on a computer, the computer is caused to execute an application uninstalling method as provided in any embodiment of this application.
In a fourth aspect, an electronic device provided in an embodiment of the present application includes a processor and a memory, where the memory has a computer program, and the processor is configured to execute the application uninstalling method provided in any embodiment of the present application by calling the computer program.
The method comprises the steps of firstly determining a target application which needs to be unloaded currently; then acquiring a configuration file corresponding to the target application from an application server according to the application information of the target application; generating an execution entry corresponding to the configuration file, wherein the execution entry is used for executing the configuration file when triggered so as to generate and display a native interface of the target application; and finally, adding the generated execution entry to the preset interface, and uninstalling the target application, so that the function of the target application is realized through the generated native interface of the target application under the condition that the target application is not installed after the target application is uninstalled, and the storage space of the electronic equipment can be saved on the premise of realizing the application function.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, 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 only some embodiments of the present application, 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 schematic view of an application scenario of an application uninstalling method according to an embodiment of the present application.
Fig. 2 is a schematic flowchart of an application uninstalling method according to an embodiment of the present application.
Fig. 3 is a schematic diagram illustrating an operation of a user triggering uninstallation of an application D according to an embodiment of the present application.
Fig. 4 is an exemplary diagram of an electronic device displaying a prompt message interface in an embodiment of the application.
Fig. 5 is a diagram illustrating an example of adding an execution entry in a default interface according to an embodiment of the present application.
FIG. 6 is a diagram illustrating an example of adding an execution entry to a host interface of an operating system according to an embodiment of the present application.
FIG. 7 is a diagram illustrating an example of adding default tags to a population of executives in an embodiment of the present application.
FIG. 8 is a schematic diagram illustrating operation of a user input control gesture according to an embodiment of the present application.
FIG. 9 is a diagram illustrating an operation of a user inputting confirmation information for uninstalling another application according to an embodiment of the present application.
Fig. 10 is another flowchart illustrating an application uninstalling method according to an embodiment of the present application.
Fig. 11 is a schematic structural diagram of an application unloading device according to an embodiment of the present application.
Fig. 12 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 13 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 term module, as used herein, may be considered a software object executing on the computing system. The various components, modules, engines, and services described herein may be viewed as objects implemented 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 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.
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.
An execution main body of the application uninstalling method may be the application uninstalling apparatus provided in the embodiment of the present application, or an electronic device integrated with the application uninstalling apparatus, where the application uninstalling apparatus may be implemented in a hardware or software manner. The electronic device may be a smart phone, a tablet computer, a palm computer, a notebook computer, or a desktop computer.
Referring to fig. 1, fig. 1 is a schematic view of an application scenario of an application uninstalling method according to an embodiment of the present application, as shown in fig. 1, an electronic device is connected to an application server through a network.
The electronic device can be installed with an operating system adapted to hardware thereof according to actual needs, such as an android system, an apple system, a Windows system, a saiban system, and the like.
The network may be a wireless network or a wired network, and may include network entities such as routers and gateways, which are not shown in fig. 1. When the wireless network is a wireless network, one or a combination of a wireless wide area network, a wireless local area network, a wireless metropolitan area network and a wireless personal area network can be included.
The application server stores a configuration file corresponding to the application, and the configuration file generates a native interface corresponding to the application when being executed by the electronic device, that is, the same operation effect as that of installing the related application is realized on the premise that the related application is not installed. It should be noted that, in addition to generating the configuration file of the native interface, data required for the application to run may be obtained from the application server in real time. Thus, a native interface generated by an electronic device executing a configuration file may be colloquially referred to as a "fast application. In addition, the application server serves as an 'intermediate person' between the user and the application developer to provide platform services for the user and the application developer, on one hand, the developer can upload 'fast applications' (including corresponding configuration files and other files required by application running) developed by the developer to the application server and provide the fast applications for the user through the application server; on the other hand, the user can search the 'fast application' needed to be used through the application server according to the use requirement of the user, and the 'fast application' can be used quickly.
Referring to fig. 2, fig. 2 is a flowchart illustrating an application uninstalling method according to an embodiment of the present application. The specific process of the application uninstalling method provided by the embodiment of the application can be as follows:
201. and determining the target application which needs to be unloaded currently.
In the embodiment of the application, the electronic device may trigger and execute the operation of determining the target application which needs to be uninstalled currently under various conditions, and the operation may be active triggering or passive triggering.
For example, in an alternative embodiment, the step of determining the target application that needs to be uninstalled currently includes:
and receiving an application uninstalling instruction, and determining the application indicated by the application uninstalling instruction as a target application which needs to be uninstalled currently.
It is easy to understand that a user may delete an application that is not needed to be used currently according to actual needs, for example, as the usage time increases, the storage space of the electronic device is consumed continuously, if the electronic device cannot be used normally due to insufficient storage space, the user may select to delete an "application D" that is not used frequently to release the storage space occupied by the application D, please refer to fig. 3, when the user operates the electronic device to enter an "application information" interface corresponding to the "application D," the user may click an "uninstall" control provided by the application information interface, and trigger an application uninstall instruction, where the application uninstall instruction indicates that the application D is a target application that needs to be uninstalled currently. Also shown in fig. 3 is version information of application D, and a "force-to-stop" control that the user can click to instruct the electronic device to force-to-stop the running of application D.
For another example, in another optional embodiment, the step of determining the target application that needs to be uninstalled currently further includes:
and determining the application with the current accumulated running times smaller than the preset times as the current target application needing to be unloaded.
The electronic device may set a capacity threshold, determine whether the capacity value of the remaining storage space is smaller than the set capacity threshold in real time, and if it is determined that the capacity value of the remaining storage space is smaller than the set capacity threshold, obtain the cumulative number of operations of each currently installed application. It should be noted that the accumulated operation times may be accumulated operation times of the application since installation, or may be accumulated operation times within a certain time period, and specifically, may be selected by a person skilled in the art according to actual needs, and set a preset time corresponding to the selected time.
For example, in the embodiment of the present application, the cumulative operation times of each installed application within 7 days is obtained, the obtained cumulative operation times of each application is compared with a preset time "7", and an application with the cumulative operation time less than 7 is determined as a target application that needs to be currently uninstalled.
202. Acquiring a configuration file corresponding to the target application from an application server according to the application information of the target application;
the application information may be an application identifier of the target application, and the application identifier is a character or a character string that can be mapped to the target application, for example, the application identifier may be an application name of the target application, a part of the application name, or other nouns that may suggest the target application.
In the embodiment of the application, after the target application needing to be uninstalled is determined, the electronic device further acquires application information of the target application, and acquires a configuration file corresponding to the target application from an application server according to the application information. Specifically, the obtaining of the configuration file corresponding to the target application from the application server according to the application information of the target application includes:
sending a configuration file acquisition request carrying application information to an application server, wherein the configuration file acquisition request is used for indicating the application server to return a configuration file corresponding to a target application;
and caching the configuration file returned by the application server.
The method comprises the steps that an application server maintains an incidence relation between a stored configuration file and application information, and when the configuration file corresponding to a target application is obtained from the application server according to the application information of the target application, on one hand, electronic equipment firstly constructs a configuration file obtaining request according to a preset message format, wherein the configuration file obtaining request at least comprises the application information of the target application; then, the electronic equipment sends a constructed configuration file acquisition request to an application server, wherein the configuration file acquisition request is used for indicating the application server to search and return a configuration file corresponding to the target application; on the other hand, after receiving the configuration file acquisition request sent by the electronic device, the application server analyzes the application information carried by the configuration file acquisition request, acquires the configuration file associated with the application information, namely the configuration file corresponding to the target application, according to the association relationship between the configuration file and the application information, and returns the configuration file to the electronic device.
The configuration file corresponding to the target application is also a configuration file corresponding to a fast application of the target application, and the configuration file is used for the electronic device to generate and display a native interface of the target application, so that the electronic device can achieve the same operation effect as the installed target application under the condition that the target application is not installed. In addition, after receiving the configuration file corresponding to the target application returned by the application server, the electronic device caches the received configuration file in a preset cache region. It should be noted that, in the embodiment of the present application, the size of the cache area and the setting of the path are not limited, and those skilled in the art can set the size and the path according to actual needs.
Specifically, the configuration file comprises a statement describing an interface of the target application, and the statement comprises data required by interface presentation and operation logic of the interface.
The aforementioned data may include display elements that the target application interface needs to show, layout information of the display elements, resource addresses required for showing the display elements, and the like, where the layout information may include information of positions, sizes, colors, and the like of the respective display elements, and the resource addresses may be addresses of local resources of the electronic device or link addresses of resources stored on the application server.
The operation logic may include an interface address that needs to be skipped when the display element is clicked, or an operation that needs to be executed corresponding to another user operation.
In an embodiment, before acquiring the configuration file corresponding to the target application from the application server according to the application information of the target application, the method further includes:
when determining a target application which needs to be unloaded currently, searching whether an application server has a configuration file corresponding to the target application;
when a configuration file corresponding to a target application exists, outputting prompt information whether to acquire the configuration file;
and when the input confirmation information is received, acquiring a configuration file corresponding to the target application from the application server according to the application information of the target application.
When searching whether the application server has the configuration file corresponding to the target application, on one hand, the electronic equipment firstly constructs a configuration file searching request according to a preset message format, wherein the configuration file searching request at least comprises application information of the target application; then, the electronic equipment sends the constructed configuration file searching request to an application server, wherein the configuration file searching request is used for indicating the application server to search whether the configuration file corresponding to the target application is stored or not; on the other hand, after receiving the configuration file search request sent by the electronic device, the application server analyzes the application information carried by the configuration file search request, searches whether the configuration file associated with the application information is locally stored, namely the configuration file corresponding to the target application according to the association relationship between the configuration file and the application information, and returns the search result (including the searched and unsearched search results) to the electronic device.
After receiving the search result of the application server, if the received search result is found, the electronic device displays a prompt information interface, wherein the prompt information interface includes prompt information for whether to acquire the configuration file, and a user can select whether to acquire the configuration file of the target application according to actual needs. If the confirmation information input by the user is received through the prompt information interface, the configuration file corresponding to the target application is obtained from the application server according to the application information of the target application, which may specifically refer to the above related description, and the detailed table is not repeated here.
For example, referring to fig. 4, the electronic device directly superimposes a prompt information interface on the application information interface for display, where the prompt information interface includes prompt information "whether to add the fast application D", and two controls, which are a yes control and a no control respectively, and a user can click the yes control to input confirmation information and click the no control to input negative information.
203. Generating an execution inlet corresponding to the configuration file, wherein the execution inlet is used for executing the configuration file when triggered so as to generate and display a native interface of the target application;
the application entries with different presentation forms can be generated according to different target applications. It should be noted that, in the embodiment of the present application, a presentation form of the application entry is not specifically limited, and may adopt a form of a "control", or may also adopt a form of a "shortcut", and the like.
204. And adding the generated execution inlet to a preset interface, and unloading the target application.
The preset interface may be a main interface of an operating system of the electronic device, or an application interface of a certain application, and may be specifically set by the electronic device by default, or set by a user according to actual needs. In addition, the determined target application needing to be uninstalled is uninstalled simultaneously, before or after the generated execution entry is added to the preset interface.
For example, referring to fig. 5, the determined target application is application D, and after an execution entry corresponding to the configuration file of application D is generated, the execution entry is added to the initial interface of the XX browser, as shown in fig. 5, the execution entry is consistent with the application icon of application D in the presentation form; when the user needs to realize the function of the application D, the user may enter the initial interface of the browser and click the execution entry of the corresponding application D displayed in the initial interface, thereby triggering the execution of the configuration file of the application D.
In an embodiment, after adding the generated execution entry to the preset interface and uninstalling the target application, the method further includes:
and when the entrance trigger is executed, generating and displaying a native interface of the target application according to the configuration file.
The electronic device calls a frame file built in an operating system to analyze the statements according to a configuration file corresponding to a target application (namely, a configuration file corresponding to a fast application of the target application), the frame file can analyze the statements in the configuration file into display elements, the display elements obtained through analysis are converted into a native view of the target application according to a corresponding relation between the display elements set in the frame file and the native view of the target application, local rendering is performed according to the native view obtained through conversion, and an interface corresponding to the fast application of the target application, namely the native interface of the target application, is generated.
In an embodiment, when the preset interface is not the main interface of the operating system, after adding the generated execution entry to the preset interface and uninstalling the target application, the method further includes:
acquiring the accumulated triggering times of the execution entrance;
and when the acquired accumulated triggering times reach preset times, adding the execution entry to a main interface of the operating system.
In this embodiment, the electronic device further counts the number of triggers of the execution entry. For example, a variable T with an initial value of zero is set, and when it is detected that the execution entry is triggered each time, the value of T +1 is directly obtained as the accumulated trigger times of the execution entry when the accumulated trigger times of the execution entry is obtained. The accumulated triggering times may be accumulated running times generated by the execution entry, or may be accumulated running times within a certain time period, and specifically may be selected by a person skilled in the art according to actual needs, and set a preset time corresponding to the accumulated running times. The preset times are used for representing whether the user is used to use the fast application of the corresponding target application, and if the accumulated trigger times of the acquired execution entrance is larger than the corresponding preset times, the user is used to use the fast application of the corresponding target application.
When it is determined that the user is accustomed to using the "fast application" corresponding to the target application, the electronic device adds the execution entry to the main interface of the operating system, for example, please refer to fig. 6, where the target application is application D, and the electronic device adds the execution entry corresponding to application D to the main interface of the operating system.
It should be noted that, after the execution entry is added to the main interface of the operating system, the execution entry added on the preset interface may be deleted, or the execution entry added on the preset interface may not be deleted, specifically, the default setting of the electronic device (for example, the default setting is not deleted), or the user may confirm whether to delete the execution entry added on the preset interface according to actual needs.
Specifically, when the obtained accumulated triggering times reach preset times, adding the execution entry to the main interface of the operating system includes:
when the acquired accumulated triggering times reach preset times, determining a target time period with the highest execution entrance triggering frequency;
judging whether the current time is within a target time period;
and when the current time is within the target time period, adding the execution entry to a main interface of the operating system.
The time period is not particularly limited in the embodiments of the present application, and can be divided by those skilled in the art according to actual needs. In addition, the current time may be the current system time of the electronic device, or may be the current time queried in real time by providing the internet.
For example, a natural day may be divided into 12 time periods with a duration of two hours in units of hours, and through statistics, the electronic device determines that the target time period with the highest execution entry trigger frequency is 20:00-22:00, and if it is determined that the current time is within 20:00-22:00, for example, the current time is 20:01, it is determined whether the execution entry is added to the main interface of the operating system, and if not, the execution entry is added to the main interface of the operating system.
In an embodiment, after the step of determining whether the current time is within the target time period, the method further includes:
and when the current time is outside the target time period and the execution entry is added to the main interface of the operating system, deleting the execution entry from the main interface of the operating system.
For example, a natural day may be divided into 12 time periods with a duration of two hours in an hour unit, and through statistics, the electronic device determines that the target time period with the highest trigger frequency of the execution entry is 20:00-22:00, and if it is determined that the current time is located outside 20:00-22:00, and if the current time is 22:15, it is determined whether the execution entry is added to the main interface of the operating system, and if the execution entry is added, the execution entry is deleted from the main interface of the operating system.
In an embodiment, after the step of generating and presenting the native interface of the target application according to the configuration file, the method further includes:
when an interface switching request is received, switching a native interface of a target application to a background, and switching a target interface indicated by the interface switching request to a foreground;
and when the native interface of the target application is not switched to the foreground within the preset duration, releasing system resources occupied by the native interface.
The interface switching request can be triggered in various different ways, for example, a user can click a Home key of the electronic device to trigger the interface switching request, and a target interface indicated by the interface switching request is a main interface of the operating system; for another example, the user may click on a certain notification message in the "notification bar" to trigger an interface switching request, where the target interface indicated by the interface switching request is an application interface of an application corresponding to the clicked notification message.
In the embodiment of the application, when the interface switching request is received, the native interface of the target application is switched to the background, and the target interface indicated by the interface switching request is switched to the foreground, so that the native interface is prevented from being generated again when a user needs to operate the native interface in a short time.
When the native interface of the target application is switched to the background, the electronic equipment starts a timer to time, and if the native interface is not detected to be switched to the foreground when a preset time length (the preset time length is used for representing whether the requirement of operating the native interface again in a short time exists) is reached, the system resources occupied by the native interface are released.
In an embodiment, after the step of switching the native interface of the target application to the background, the method further includes:
adding a preset mark at the execution entrance during the period of switching the native interface of the target application to the background;
after the step of releasing the system resources occupied by the native interface, the method further includes:
and deleting the added preset mark from the execution entry.
The execution entry is added with a preset mark to prompt a user that the native interface resides in the background, and if necessary, the execution entry can be directly triggered to switch the native interface to the foreground for display.
For example, referring to fig. 7, the target application is application D, the target interface indicated by the interface switching request is a main interface of the operating system, and when the native interface is switched to the background and the main interface of the operating system is switched to the foreground, that is, when the main interface of the operating system is currently displayed, a preset mark "background" is added to the execution entry corresponding to application D to prompt the user that the native interface resides in the background.
In an embodiment, after the step of obtaining the accumulated number of triggers of the execution entry, the following steps are further performed:
when the acquired accumulated triggering times reach preset times, displaying a gesture configuration interface, wherein the gesture configuration interface comprises a gesture input interface;
the method comprises the steps of receiving an input control gesture through a gesture input interface, and associating the received control gesture with a configuration file of a target application, wherein the control gesture is used for triggering execution of the configuration file.
It should be noted that, in the embodiment of the present application, in addition to the manner of providing a graphical execution entry to trigger the execution of the configuration file, a gesture manner may also be provided to trigger the execution of the configuration file.
For example, referring to fig. 8, after the user inputs a zigzag control gesture through a gesture input interface of the gesture configuration interface, the electronic device triggers execution of the configuration file of the corresponding target application and generates and displays a native interface of the target application as long as the zigzag control gesture is received again after the zigzag control gesture is associated with the configuration file of the corresponding target application.
In an embodiment, after the step of adding the generated execution entry to the preset interface and uninstalling the target application, the method further includes:
judging whether other applications with the same functions as the target application exist or not;
when other applications with the same functions as the target application exist, acquiring the accumulated running times of the other applications;
and when the accumulated triggering times of the execution entries are larger than the accumulated running times of the other applications, unloading the other applications.
It should be noted that, in actual use, a user may sometimes install a plurality of applications having the same function, resulting in unnecessary waste of storage space of the electronic device. Therefore, in the embodiment of the present application, after the step of adding the generated execution entry to the preset interface and uninstalling the target application, it is further determined whether there are other applications having the same function as the target application; if yes, acquiring the accumulated running times of the other applications; after the accumulated running times of the other applications are obtained, the accumulated running times of the other applications are compared with the accumulated triggering times of the execution entry (where the accumulated running times of the other applications and the accumulated triggering times of the execution entry need to be compared under the same time dimension, for example, when the accumulated triggering times of the execution entry is the accumulated triggering times counted in a certain time period, the accumulated running times counted in the same time period of the other applications are correspondingly obtained), and if the accumulated triggering times of the execution entry is greater than the accumulated running times of the other applications, it indicates that the user is more inclined to use the "fast application" of the corresponding target application, but not the other applications, and the other applications can be deleted.
Optionally, when the accumulated number of triggers of the execution entry is greater than the accumulated number of running times of the other application, uninstalling the other application includes:
when the accumulated triggering times of the execution entrance are larger than the accumulated running times of the other applications, outputting prompt information for judging whether the other applications are unloaded;
upon receiving the entered confirmation information, the other application is uninstalled.
For example, referring to fig. 9, the determined other application is application F, and the output prompt information is: and if the application F is deleted, the display interface of the prompt message also comprises a yes control and a no control, and a user can click the yes control to input confirmation information and click the no control to input negative information.
As can be seen from the above, in the embodiment of the present application, a target application that needs to be uninstalled currently is determined; then acquiring a configuration file corresponding to the target application from an application server according to the application information of the target application; generating an execution entry corresponding to the configuration file, wherein the execution entry is used for executing the configuration file when triggered so as to generate and display a native interface of the target application; and finally, adding the generated execution entry to the preset interface, and uninstalling the target application, so that the function of the target application is realized through the generated native interface of the target application under the condition that the target application is not installed after the target application is uninstalled, and the storage space of the electronic equipment can be saved on the premise of realizing the application function.
The application uninstalling method of the present application will be further described below on the basis of the method described in the above embodiment. Referring to fig. 10, the application uninstalling method may include:
301. and determining the application with the current accumulated running times smaller than the preset times as the target application needing to be unloaded.
The electronic device may set a capacity threshold, determine whether the capacity value of the remaining storage space is smaller than the set capacity threshold in real time, and if it is determined that the capacity value of the remaining storage space is smaller than the set capacity threshold, obtain the cumulative number of operations of each currently installed application. It should be noted that the accumulated operation times may be accumulated operation times of the application since installation, or may be accumulated operation times within a certain time period, and specifically, may be selected by a person skilled in the art according to actual needs, and set a preset time corresponding to the selected time.
For example, in the embodiment of the present application, the cumulative operation times of each installed application within 7 days is obtained, the obtained cumulative operation times of each application is compared with a preset time "7", and an application with the cumulative operation time less than 7 is determined as a target application that needs to be currently uninstalled.
302. And acquiring a configuration file corresponding to the target application from the application server according to the application information of the target application.
The application information may be an application identifier of the target application, and the application identifier is a character or a character string that can be mapped to the target application, for example, the application identifier may be an application name of the target application, a part of the application name, or other nouns that may suggest the target application.
In the embodiment of the application, after the target application needing to be uninstalled is determined, the electronic device further acquires application information of the target application, and acquires a configuration file corresponding to the target application from an application server according to the application information. Specifically, the obtaining of the configuration file corresponding to the target application from the application server according to the application information of the target application includes:
sending a configuration file acquisition request carrying application information to an application server, wherein the configuration file acquisition request is used for indicating the application server to return a configuration file corresponding to a target application;
and caching the configuration file returned by the application server.
The method comprises the steps that an application server maintains an incidence relation between a stored configuration file and application information, and when the configuration file corresponding to a target application is obtained from the application server according to the application information of the target application, on one hand, electronic equipment firstly constructs a configuration file obtaining request according to a preset message format, wherein the configuration file obtaining request at least comprises the application information of the target application; then, the electronic equipment sends a constructed configuration file acquisition request to an application server, wherein the configuration file acquisition request is used for indicating the application server to search and return a configuration file corresponding to the target application; on the other hand, after receiving the configuration file acquisition request sent by the electronic device, the application server analyzes the application information carried by the configuration file acquisition request, acquires the configuration file associated with the application information, namely the configuration file corresponding to the target application, according to the association relationship between the configuration file and the application information, and returns the configuration file to the electronic device.
The configuration file corresponding to the target application is also a configuration file corresponding to a fast application of the target application, and the configuration file is used for the electronic device to generate and display a native interface of the target application, so that the electronic device can achieve the same operation effect as the installed target application under the condition that the target application is not installed. In addition, after receiving the configuration file corresponding to the target application returned by the application server, the electronic device caches the received configuration file in a preset cache region. It should be noted that, in the embodiment of the present application, the size of the cache area and the setting of the path are not limited, and those skilled in the art can set the size and the path according to actual needs.
Specifically, the configuration file comprises a statement describing an interface of the target application, and the statement comprises data required by interface presentation and operation logic of the interface.
The aforementioned data may include display elements that the target application interface needs to show, layout information of the display elements, resource addresses required for showing the display elements, and the like, where the layout information may include information of positions, sizes, colors, and the like of the respective display elements, and the resource addresses may be addresses of local resources of the electronic device or link addresses of resources stored on the application server.
The operation logic may include an interface address that needs to be skipped when the display element is clicked, or an operation that needs to be executed corresponding to another user operation.
In an embodiment, before acquiring the configuration file corresponding to the target application from the application server according to the application information of the target application, the method further includes:
when determining a target application which needs to be unloaded currently, searching whether an application server has a configuration file corresponding to the target application;
when a configuration file corresponding to a target application exists, outputting prompt information whether to acquire the configuration file;
and when the input confirmation information is received, acquiring a configuration file corresponding to the target application from the application server according to the application information of the target application.
When searching whether the application server has the configuration file corresponding to the target application, on one hand, the electronic equipment firstly constructs a configuration file searching request according to a preset message format, wherein the configuration file searching request at least comprises application information of the target application; then, the electronic equipment sends the constructed configuration file searching request to an application server, wherein the configuration file searching request is used for indicating the application server to search whether the configuration file corresponding to the target application is stored or not; on the other hand, after receiving the configuration file search request sent by the electronic device, the application server analyzes the application information carried by the configuration file search request, searches whether the configuration file associated with the application information is locally stored, namely the configuration file corresponding to the target application according to the association relationship between the configuration file and the application information, and returns the search result (including the searched and unsearched search results) to the electronic device.
After receiving the search result of the application server, if the received search result is found, the electronic device displays a prompt information interface, wherein the prompt information interface includes prompt information for whether to acquire the configuration file, and a user can select whether to acquire the configuration file of the target application according to actual needs. If the confirmation information input by the user is received through the prompt information interface, the configuration file corresponding to the target application is obtained from the application server according to the application information of the target application, which may specifically refer to the above related description, and the detailed table is not repeated here.
303. And generating an execution inlet corresponding to the configuration file, uninstalling the target application, and adding the generated execution inlet to a preset interface.
The application entries with different presentation forms can be generated according to different target applications. It should be noted that, in the embodiment of the present application, a presentation form of the application entry is not specifically limited, and may adopt a form of a "control", or may also adopt a form of a "shortcut", and the like.
The preset interface may be a main interface of an operating system of the electronic device, or an application interface of a certain application, and may be specifically set by the electronic device by default, or set by a user according to actual needs. In addition, the determined target application needing to be uninstalled is uninstalled simultaneously, before or after the generated execution entry is added to the preset interface.
For example, referring to fig. 5, the determined target application is application D, and after an execution entry corresponding to the configuration file of application D is generated, the execution entry is added to the initial interface of the XX browser, as shown in fig. 5, the execution entry is consistent with the application icon of application D in the presentation form; when the user needs to realize the function of the application D, the user may enter the initial interface of the browser and click the execution entry of the corresponding application D displayed in the initial interface, thereby triggering the execution of the configuration file of the application D.
In an embodiment, after adding the generated execution entry to the preset interface, the method further includes:
and when the entrance trigger is executed, generating and displaying a native interface of the target application according to the configuration file.
The electronic device calls a frame file built in an operating system to analyze the statements according to a configuration file corresponding to a target application (namely, a configuration file corresponding to a fast application of the target application), the frame file can analyze the statements in the configuration file into display elements, the display elements obtained through analysis are converted into a native view of the target application according to a corresponding relation between the display elements set in the frame file and the native view of the target application, local rendering is performed according to the native view obtained through conversion, and an interface corresponding to the fast application of the target application, namely the native interface of the target application, is generated.
304. And acquiring the accumulated triggering times of the execution entries.
In this embodiment, the electronic device further counts the number of triggers of the execution entry. For example, a variable T with an initial value of zero is set, and when it is detected that the execution entry is triggered each time, the value of T +1 is directly obtained as the accumulated trigger times of the execution entry when the accumulated trigger times of the execution entry is obtained. The accumulated triggering times may be accumulated running times generated by the execution entry, or may be accumulated running times within a certain time period, and specifically may be selected by a person skilled in the art according to actual needs, and set a preset time corresponding to the accumulated running times. The preset times are used for representing whether the user is used to use the fast application of the corresponding target application, and if the accumulated trigger times of the acquired execution entrance is larger than the corresponding preset times, the user is used to use the fast application of the corresponding target application.
305. And when the accumulated triggering times of the execution entries reach preset times, determining a target time period with the highest triggering frequency of the execution entries.
When the accumulated triggering times of the execution entries reach preset times, namely the 'fast application' that the user is used to use the corresponding target application is determined, the target time period with the highest triggering frequency of the execution entries is further determined.
306. And judging whether the current time is within the target time period.
307. And when the current time is within the target time period, adding the execution entry to a main interface of the operating system.
The time period is not particularly limited in the embodiments of the present application, and can be divided by those skilled in the art according to actual needs. In addition, the current time may be the current system time of the electronic device, or may be the current time queried in real time by providing the internet.
For example, a natural day may be divided into 12 time periods with a duration of two hours in units of hours, and through statistics, the electronic device determines that the target time period with the highest execution entry trigger frequency is 20:00-22:00, and if it is determined that the current time is within 20:00-22:00, for example, the current time is 20:01, it is determined whether the execution entry is added to the main interface of the operating system, and if not, the execution entry is added to the main interface of the operating system.
308. And when the current time is outside the target time period and the execution entry is added to the main interface of the operating system, deleting the execution entry from the main interface of the operating system.
For example, a natural day may be divided into 12 time periods with a duration of two hours in an hour unit, and through statistics, the electronic device determines that the target time period with the highest trigger frequency of the execution entry is 20:00-22:00, and if it is determined that the current time is located outside 20:00-22:00, and if the current time is 22:15, it is determined whether the execution entry is added to the main interface of the operating system, and if the execution entry is added, the execution entry is deleted from the main interface of the operating system.
As can be seen from the above, in the embodiment of the present application, a target application that needs to be uninstalled currently is determined; then acquiring a configuration file corresponding to the target application from an application server according to the application information of the target application; generating an execution entry corresponding to the configuration file, wherein the execution entry is used for executing the configuration file when triggered so as to generate and display a native interface of the target application; and finally, adding the generated execution entry to the preset interface, and uninstalling the target application, so that the function of the target application is realized through the generated native interface of the target application under the condition that the target application is not installed after the target application is uninstalled, and the storage space of the electronic equipment can be saved on the premise of realizing the application function.
An application offloading device is also provided in an embodiment. Referring to fig. 11, fig. 11 is a schematic structural diagram of an application offloading device 400 according to an embodiment of the present disclosure. The application uninstalling apparatus 400 is applied to an electronic device, and the application uninstalling apparatus 400 includes a determining module 401, an obtaining module 402, a generating module 403, and an uninstalling module 404, as follows:
a determining module 401, configured to determine a target application that needs to be uninstalled currently;
an obtaining module 402, configured to obtain, from an application server, a configuration file corresponding to a target application according to application information of the target application;
a generating module 403, configured to generate an execution entry corresponding to the configuration file, where the execution entry is used to execute the configuration file when triggered, so as to generate and display a native interface of the target application;
and an uninstalling module 404, configured to add an execution entry to the preset interface and uninstall the target application.
In an embodiment, the default interface is not a main interface of the operating system, and the uninstall module 404 is further configured to:
acquiring the accumulated triggering times of an execution entry;
and when the accumulated triggering times of the execution entries reach preset times, adding the execution entries to a main interface of the operating system.
In one embodiment, the offload module 404 is further configured to:
when the accumulated triggering times of the execution entrance reach preset times, determining a target time period with the highest triggering frequency of the execution entrance;
judging whether the current time is within a target time period;
and when the current time is within the target time period, adding the execution entry to a main interface of the operating system.
In one embodiment, the offload module 404 is further configured to:
and when the current time is outside the target time period and the main interface is added with the execution entry, deleting the execution entry from the main interface.
In an embodiment, the application uninstaller 400 further includes a configuration module for:
when the accumulated triggering times of the executed population reach preset times, displaying a gesture configuration interface, wherein the gesture configuration interface comprises a gesture input interface;
and receiving an input control gesture through the gesture input interface, and associating the received control gesture with the configuration file, wherein the control gesture is used for triggering execution of the configuration file.
In one embodiment, the offload module 404 is further configured to:
judging whether other applications with the same functions as the target application exist or not;
when other applications exist, acquiring the accumulated running times of the other applications;
and when the accumulated triggering times of the execution population are larger than the accumulated running times of the other applications, unloading the other applications.
In one embodiment, the application uninstaller 400 further includes a display module for:
when the entrance triggering is executed, generating and displaying a native interface of the target application according to the configuration file;
when an interface switching request is received, switching the displayed native interface to a background, and switching a target interface indicated by the interface switching request to a foreground;
and when the native interface is not switched to the foreground within the preset duration, releasing the system resources occupied by the native interface.
In one embodiment, the display module is further configured to:
adding a preset mark at an execution entrance during the switching of the native interface to the background;
and after releasing the system resources occupied by the native interface, deleting the preset mark from the execution entry.
In an embodiment, the determining module 401 is further configured to:
receiving an application uninstalling instruction, and determining an application indicated by the application uninstalling instruction as a target application needing uninstalling;
or determining the application with the current accumulated running times smaller than the preset times as the target application needing to be uninstalled.
In specific implementation, the modules may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and specific implementation of the units may refer to the foregoing embodiments, which are not described herein again.
As can be seen from the above, the application uninstalling apparatus 400 of the present embodiment first determines, by the determining module 401, a target application that needs to be uninstalled currently; then, the obtaining module 402 obtains the configuration file corresponding to the target application from the application server according to the application information of the target application; generating an execution entry corresponding to the configuration file by the generating module 403, where the execution entry is used for executing the configuration file when triggered, so as to generate and display a native interface of the target application; finally, the uninstalling module 404 adds the generated execution entry to the preset interface and uninstalls the target application, so that the function of the target application is realized through the generated native interface of the target application after the target application is uninstalled and without installing the target application, and the storage space of the electronic device can be saved on the premise of realizing the application function.
The embodiment of the application also provides the electronic equipment. Referring to fig. 12, an electronic device 500 includes a processor 501 and a memory 502. The processor 501 is electrically connected to the memory 502.
The processor 500 is a control center of the electronic device 500, and is connected to various parts of the whole electronic device through various interfaces and lines, and executes various functions of the electronic device 500 and processes data by running or loading a computer program stored in the memory 502 and calling data stored in the memory 502, thereby implementing automatic change of the material information of the electronic device.
The memory 502 may be used to store software programs and modules, and the processor 501 executes various functional applications and data processing by operating the computer programs and modules stored in the memory 502. The memory 502 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 502 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 502 may also include a memory controller to provide the processor 501 with access to the memory 502.
In this embodiment, the processor 501 in the electronic device 500 loads instructions corresponding to one or more processes of the computer program into the memory 502, and the processor 501 runs the computer program stored in the memory 502, so as to implement various functions as follows:
determining a target application which needs to be unloaded currently;
acquiring a configuration file corresponding to the target application from an application server according to the application information of the target application;
the execution inlet is used for executing the configuration file when triggered so as to generate and display a native interface of the target application;
and adding the generated execution inlet to a preset interface, and unloading the target application.
In some embodiments, the preset interface is not a main interface of the operating system, and after the generated execution entry is added to the preset interface and the target application is uninstalled, the processor 501 may specifically perform the following steps:
acquiring the accumulated triggering times of an execution entry;
and when the accumulated triggering times of the execution entries reach preset times, adding the execution entries to a main interface of the operating system.
In some embodiments, when adding an execution entry to the main interface of the operating system, the processor 501 may further perform the following steps:
when the accumulated triggering times of the execution entrance reach preset times, determining a target time period with the highest triggering frequency of the execution entrance;
judging whether the current time is within a target time period;
and when the current time is within the target time period, adding the execution entry to a main interface of the operating system.
In some embodiments, after the step of determining whether the current time is within the target time period, processor 501 may perform the steps of:
and when the current time is outside the target time period and the main interface is added with the execution entry, deleting the execution entry from the main interface.
In some embodiments, after the step of obtaining the accumulated number of triggers to execute the entry, the processor 501 may further specifically execute the following steps:
when the accumulated triggering times of the executed population reach preset times, displaying a gesture configuration interface, wherein the gesture configuration interface comprises a gesture input interface;
and receiving an input control gesture through the gesture input interface, and associating the received control gesture with the configuration file, wherein the control gesture is used for triggering execution of the configuration file.
In some embodiments, after the step of adding the execution entry to the preset interface and uninstalling the target application, the processor 501 may further specifically perform the following steps:
judging whether other applications with the same functions as the target application exist or not;
when other applications exist, acquiring the accumulated running times of the other applications;
and when the accumulated triggering times of the execution population are larger than the accumulated running times of the other applications, unloading the other applications.
In some embodiments, after the step of adding the execution entry to the preset interface and uninstalling the target application, the processor 501 may further specifically perform the following steps:
when the entrance triggering is executed, generating and displaying a native interface of the target application according to the configuration file;
when an interface switching request is received, switching the displayed native interface to a background, and switching a target interface indicated by the interface switching request to a foreground;
and when the native interface is not switched to the foreground within the preset duration, releasing the system resources occupied by the native interface.
In some embodiments, after switching the displayed native interface to the background, the processor 501 may further specifically perform the following steps:
adding a preset mark at an execution entrance during the switching of the native interface to the background;
and after releasing the system resources occupied by the native interface, deleting the preset mark from the execution entry.
In some embodiments, when determining a target application that needs to be uninstalled currently, the processor 501 may further perform the following steps:
receiving an application uninstalling instruction, and determining an application indicated by the application uninstalling instruction as a target application needing uninstalling;
or determining the application with the current accumulated running times smaller than the preset times as the target application needing to be uninstalled.
As can be seen from the above, in the embodiment of the present application, a target application that needs to be uninstalled currently is determined; then acquiring a configuration file corresponding to the target application from an application server according to the application information of the target application; generating an execution entry corresponding to the configuration file, wherein the execution entry is used for executing the configuration file when triggered so as to generate and display a native interface of the target application; and finally, adding the generated execution entry to the preset interface, and uninstalling the target application, so that the function of the target application is realized through the generated native interface of the target application under the condition that the target application is not installed after the target application is uninstalled, and the storage space of the electronic equipment can be saved on the premise of realizing the application function.
Referring to fig. 13, in some embodiments, the electronic device 500 may further include: a display 503, radio frequency circuitry 504, audio circuitry 505, and a power supply 506. The display 503, the rf circuit 504, the audio circuit 505, and the power source 506 are electrically connected to the processor 501.
The display 503 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 503 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 504 may be used for transceiving rf signals to establish wireless communication with a network device or other electronic devices via wireless communication, and for transceiving signals with the network device or other electronic devices.
The audio circuit 505 may be used to provide an audio interface between a user and an electronic device through a speaker, microphone.
The power source 506 may be used to power various components of the electronic device 500. In some embodiments, power supply 506 may be logically coupled to processor 501 through a power management system, such that functions of managing charging, discharging, and power consumption are performed through the power management system.
Although not shown in fig. 13, the electronic device 500 may further include a camera, a bluetooth module, and the like, which are not described in detail herein.
An embodiment of the present application further provides a storage medium, where the storage medium stores a computer program, and when the computer program runs on a computer, the computer is caused to execute the application uninstalling method in any of the above embodiments, for example: firstly, determining a target application which needs to be unloaded currently; then acquiring a configuration file corresponding to the target application from an application server according to the application information of the target application; generating an execution entry corresponding to the configuration file, wherein the execution entry is used for executing the configuration file when triggered so as to generate and display a native interface of the target application; and finally, adding the generated execution inlet to a preset interface, and unloading the target application.
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 application uninstalling method of the embodiment of the present application, it can be understood by a person skilled in the art that all or part of the process of implementing the application uninstalling method of the embodiment of the present application can be implemented by controlling the relevant hardware through a computer program, where 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 during the execution process, the process of the embodiment of the application uninstalling method can be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory, a random access memory, etc.
In the application offloading device according to the embodiment of the present application, each functional module may be integrated in one processing chip, or each module may exist alone physically, or two or more modules are integrated in 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 application uninstalling method, device, storage medium and electronic device provided in the embodiments of the present application are described in detail above, 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 above embodiments 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 (11)

1. An application offloading method, comprising:
when the capacity value of the residual storage space is smaller than the set capacity threshold value, determining the application of which the current accumulated running times is smaller than the preset times as the target application needing unloading currently;
acquiring application information of the target application, and acquiring a configuration file of the target application from an application server according to the application information;
generating an execution inlet corresponding to the configuration file, wherein the execution inlet is used for executing the configuration file when triggered so as to generate and display a native interface of the target application;
adding the execution entry to a preset interface, and unloading the target application;
acquiring the accumulated triggering times of the execution entrance;
and when the accumulated triggering times reach preset times, adding the execution entry to a main interface.
2. The application offloading method of claim 1, wherein the step of adding the execution entry to a host interface when the cumulative number of triggers reaches a preset number comprises:
when the accumulated triggering times reach the preset times, determining a target time period with the highest triggering frequency of the execution entrance;
judging whether the current time is within the target time period;
adding the execution entry to the main interface when the current time is within the target time period.
3. The application offloading method of claim 2, further comprising, after the step of determining whether the current time period is within the target time period:
and when the current time is outside the target time period and the execution entry is added to the main interface, deleting the execution entry from the main interface.
4. The application offloading method of claim 1, wherein after the step of obtaining the cumulative number of triggers to execute the entry, the following steps are further performed:
when the accumulated triggering times reach the preset times, displaying a gesture configuration interface, wherein the gesture configuration interface comprises a gesture input interface;
receiving an input control gesture through the gesture input interface, and associating the received control gesture with the configuration file, wherein the control gesture is used for triggering execution of the configuration file.
5. The application uninstalling method according to claim 1 wherein after the step of adding the execution portal to a preset interface and uninstalling the target application, further comprising:
judging whether other applications with the same functions as the target application exist or not;
when the other applications exist, acquiring the accumulated running times of the other applications;
and deleting the other applications when the accumulated triggering times are greater than the accumulated running times.
6. The application uninstalling method according to claim 1 wherein after the step of adding the execution portal to a preset interface and uninstalling the target application, further comprising:
when the execution entry is triggered, generating and displaying a native interface of the target application according to the configuration file;
when an interface switching request is received, switching the native interface to a background, and switching a target interface indicated by the interface switching request to a foreground;
and when the native interface is not switched to the foreground within the preset duration, releasing the system resources occupied by the native interface.
7. The application offloading method of claim 6, wherein after the step of switching the native interface to the background, further comprising:
adding a preset mark at the execution entrance during the switching of the native interface to the background;
after the step of releasing the system resources occupied by the native interface, the method further includes:
and deleting the preset mark from the execution inlet.
8. The application offloading method of claim 1, wherein the step of determining a target application that currently needs to be offloaded comprises:
determining the application indicated by the application uninstalling instruction as the target application;
or determining the application with the current accumulated running times smaller than the preset times as the target application.
9. An application offloading device, comprising:
the determining module is used for determining the application of which the current accumulated running times is less than the preset times as the current target application needing to be unloaded when the capacity value of the residual storage space is less than the set capacity threshold;
the acquisition module is used for acquiring the application information of the target application and acquiring a configuration file of the target application from an application server according to the application information;
the generating module is used for generating an execution inlet corresponding to the configuration file, and the execution inlet is used for executing the configuration file when triggered so as to generate and display a native interface of the target application;
the unloading module is used for adding the execution inlet to a preset interface and unloading the target application; and
acquiring the accumulated triggering times of the execution entrance;
and when the accumulated triggering times reach preset times, adding the execution entry to a main interface.
10. A storage medium having stored thereon a computer program, characterized in that, when the computer program is run on a computer, it causes the computer to execute an application uninstalling method according to any one of claims 1 to 8.
11. An electronic device comprising a processor and a memory, the memory storing a computer program, wherein the processor is configured to perform the application uninstallation method according to any of claims 1 to 8 by invoking the computer program.
CN201810150633.9A 2018-02-13 2018-02-13 Application unloading method and device, storage medium and electronic equipment Active CN108334330B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810150633.9A CN108334330B (en) 2018-02-13 2018-02-13 Application unloading method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810150633.9A CN108334330B (en) 2018-02-13 2018-02-13 Application unloading method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN108334330A CN108334330A (en) 2018-07-27
CN108334330B true CN108334330B (en) 2020-12-22

Family

ID=62929671

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810150633.9A Active CN108334330B (en) 2018-02-13 2018-02-13 Application unloading method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN108334330B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109358933A (en) * 2018-09-28 2019-02-19 北京小米移动软件有限公司 The creation method and device applied fastly
CN109918088A (en) * 2019-01-29 2019-06-21 维沃移动通信有限公司 A kind of program unloading method and mobile terminal
CN109992313A (en) * 2019-03-28 2019-07-09 连尚(新昌)网络科技有限公司 The method and apparatus of application program guidance based on desktop

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9398114B2 (en) * 2012-11-23 2016-07-19 Mediatek Inc. Methods for automatically managing installed applications and determining application recommendation result based on auxiliary information and related computer readable media
CN103617057B (en) * 2013-11-27 2017-05-24 北京奇虎科技有限公司 Application program installation method and device
CN106445583B (en) * 2016-08-31 2020-03-31 广州品唯软件有限公司 Page display method, equipment and system
CN107329743B (en) * 2017-06-14 2021-09-28 北京小米移动软件有限公司 Application page display method and device and storage medium
CN107357485A (en) * 2017-07-06 2017-11-17 广东小天才科技有限公司 A kind of application program discharging method and electronic equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Multi-agent framework for automatic deployment and state restoration in iterative software development process;Ramesh Guntha等;《IEEE》;20161103;第1833-1838页 *
基于开源思想的软件应用开发;何瑾等;《河北师范大学学报(自然科学版)》;20070228;第32-35页 *

Also Published As

Publication number Publication date
CN108334330A (en) 2018-07-27

Similar Documents

Publication Publication Date Title
EP3514684A1 (en) Memory recovery method and apparatus
WO2019149207A1 (en) Display method, device, storage medium and electronic equipment for application page
CN108334330B (en) Application unloading method and device, storage medium and electronic equipment
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
CN108319489B (en) Application page starting method and device, storage medium and electronic equipment
CN108287917B (en) File opening method and device, storage medium and electronic equipment
CN106502703B (en) Function calling method and device
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
WO2019157894A1 (en) Application page display method and apparatus, storage medium and electronic device
EP2866158A1 (en) Method for reader to provide service, reader, terminal and computer storage medium
US20210191996A1 (en) Method for displaying application page, non-transitory storage medium and electronic device
CN105955770A (en) Application program uninstalling method and terminal
US20190213241A1 (en) Web page display method and apparatus, mobile terminal, and storage medium
EP2869604B1 (en) Method, apparatus and device for processing a mobile terminal resource
US20200319900A1 (en) Method for Application Processing, Storage Medium, and Electronic Device
CN108563476B (en) Application program running method and device, storage medium and electronic equipment
CN108287918B (en) Music playing method and device based on application page, storage medium and electronic equipment
CN109117153B (en) Application processing method, device, terminal and storage medium
CN107958365B (en) Material information changing method and device, storage medium and electronic equipment
CN108549557A (en) Using storing method, terminal and storage medium
CN101911003B (en) Information processing apparatus and program
WO2020206691A1 (en) Application processing method and apparatus, storage medium, and electronic device
CN108268274B (en) Application management method and device, storage medium and electronic equipment

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: Guangdong OPPO Mobile Communications Co., Ltd.

GR01 Patent grant
GR01 Patent grant