CN106155789B - Application freezing method and mobile terminal - Google Patents

Application freezing method and mobile terminal Download PDF

Info

Publication number
CN106155789B
CN106155789B CN201610496768.1A CN201610496768A CN106155789B CN 106155789 B CN106155789 B CN 106155789B CN 201610496768 A CN201610496768 A CN 201610496768A CN 106155789 B CN106155789 B CN 106155789B
Authority
CN
China
Prior art keywords
application
mobile terminal
user
category
frozen
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
CN201610496768.1A
Other languages
Chinese (zh)
Other versions
CN106155789A (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.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yulong Computer Telecommunication Scientific Shenzhen Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority to CN201610496768.1A priority Critical patent/CN106155789B/en
Publication of CN106155789A publication Critical patent/CN106155789A/en
Application granted granted Critical
Publication of CN106155789B publication Critical patent/CN106155789B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory

Abstract

The embodiment of the invention discloses an application freezing method and a mobile terminal, wherein the method comprises the following steps: judging whether the memory occupation ratio of the mobile terminal is greater than or equal to a first threshold value or not; if the user category is larger than or equal to a first threshold value, acquiring the user category of a user using the mobile terminal, wherein different user categories correspond to different application categories, and the application categories comprise at least one application; acquiring applications to be frozen in the mobile terminal, wherein the applications to be frozen are applications in application categories except for the application category corresponding to the user category of the user; freezing the application to be frozen. The embodiment of the invention also discloses a corresponding mobile terminal. The technical scheme provided by the embodiment of the invention can improve the intelligence of the application to be frozen and simplify the freezing operation, thereby saving the freezing operation time for a user.

Description

Application freezing method and mobile terminal
Technical Field
The invention relates to the field of communication, in particular to an application freezing method and a mobile terminal.
Background
As people demand higher and higher terminals, application technologies of the terminals are also increasing. More and more applications can be installed in the existing terminal to enable the terminal to implement more functions. However, sometimes, the user may choose to freeze some applications to clear the memory occupied by the applications in some cases for reasons such as the number of uses, so that the mobile terminal can run more smoothly.
However, in the prior art, when the memory of the mobile terminal is in emergency, the user needs to freeze the applications manually, and the applications are set to be frozen, so that the operation is complicated, and the time is wasted.
Disclosure of Invention
The embodiment of the invention provides an application freezing method and a mobile terminal, aiming at improving the intelligence of application freezing and simplifying freezing operation, and further saving the freezing operation time for a user.
A first aspect of an embodiment of the present invention provides an application freezing method, including:
judging whether the memory occupation ratio of the mobile terminal is greater than or equal to a first threshold value or not;
if the user category is larger than or equal to a first threshold value, acquiring the user category of a user using the mobile terminal, wherein different user categories correspond to different application categories, and the application categories comprise at least one application;
acquiring applications to be frozen in the mobile terminal, wherein the applications to be frozen are applications in application categories except for the application category corresponding to the user category of the user;
freezing the application to be frozen.
With reference to the first aspect, in some possible implementation manners, before determining whether the memory usage ratio of the mobile terminal is greater than or equal to a first threshold, the method further includes:
determining application types to which applications installed by the mobile terminal belong;
and determining the user category of the user using the mobile terminal based on the determined application categories to which the applications belong.
With reference to the first aspect, in some possible implementations, the determining, based on the application categories to which the determined applications belong, a user category of a user using the mobile terminal includes:
acquiring the use times of each application installed on the mobile terminal in a preset time period;
determining the application category to which the application with the largest number of use times in a preset time period belongs as the user category of the user using the mobile terminal based on the number of use times of each application in the preset time period and the application category to which each application belongs;
or acquiring the number of applications included in each application category included in the mobile terminal;
and determining the application category comprising the most applications as the user category of the user using the mobile terminal.
With reference to the first aspect, in some possible implementations, the method further includes:
deleting the application icon of the application to be frozen; or, displaying a preset image on an application icon of the application to be frozen in an overlapping manner, wherein the preset image is used for indicating that the application is frozen.
With reference to the first aspect, in some possible implementations, after the freezing is performed on the application to be frozen, the method further includes:
and when detecting that the memory occupation ratio of the mobile terminal is smaller than a second preset threshold, unfreezing the application in the frozen application categories except the application category corresponding to the user category of the user.
A second aspect of an embodiment of the present invention provides a mobile terminal, including:
the judging unit is used for judging whether the memory occupation ratio of the mobile terminal is larger than or equal to a first threshold value or not;
the mobile terminal comprises an acquisition unit, a judgment unit and a display unit, wherein the acquisition unit is used for acquiring user categories of users using the mobile terminal if the user categories are larger than or equal to a first threshold, different user categories correspond to different application categories, and the application categories comprise at least one application;
the obtaining unit is further configured to obtain an application to be frozen in the mobile terminal, where the application to be frozen is an application in an application category other than an application category corresponding to a user category of the user;
and the freezing unit is used for freezing the application to be frozen.
With reference to the second aspect, in some possible implementations, the mobile terminal further includes:
the determining unit is used for determining the application type of each application installed on the mobile terminal before the judging unit judges whether the memory occupation ratio of the mobile terminal is larger than or equal to a first threshold value;
the determining unit is further configured to determine a user category of a user using the mobile terminal based on the determined application categories to which the respective applications belong.
With reference to the second aspect, in some possible implementations, the determining unit is specifically configured to obtain the number of times of use of each application installed in the mobile terminal within a preset time period when the determining unit is configured to determine a user category of a user using the mobile terminal based on an application category to which each determined application belongs; determining the application category to which the application with the largest number of use times in a preset time period belongs as the user category of the user using the mobile terminal based on the number of use times of each application in the preset time period and the application category to which each application belongs;
or, the determining unit is specifically configured to obtain the number of applications included in each application category included in the mobile terminal when the determining unit is configured to determine the user category of the user using the mobile terminal based on the application category to which each determined application belongs; and determining the application category comprising the most applications as the user category of the user using the mobile terminal.
With reference to the second aspect, in some possible implementations, the mobile terminal further includes:
the icon modifying unit is used for deleting the application icons of the applications to be frozen; or, displaying a preset image on an application icon of the application to be frozen in an overlapping manner, wherein the preset image is used for indicating that the application is frozen.
With reference to the second aspect, in some possible implementations, the mobile terminal further includes:
a thawing unit, configured to, after the freezing unit freezes the application to be frozen, when it is detected that the memory occupancy ratio of the mobile terminal is smaller than a second preset threshold, thaw the application in the application category except for the application category corresponding to the user category of the user that is frozen
It can be seen that in the technical solution of the embodiment of the present invention, it is determined whether a memory occupancy ratio of the mobile terminal is greater than or equal to a first threshold, and if the memory occupancy ratio is greater than or equal to the first threshold, the mobile terminal obtains a user category of a user using the mobile terminal, where different user categories correspond to different application categories, the application categories include at least one application, and the mobile terminal obtains an application to be frozen in the mobile terminal, where the application to be frozen is an application in an application category other than the application category corresponding to the user category of the user, and is frozen with respect to the application to be frozen. By implementing the embodiment of the invention, the uninterested application of the user can be automatically frozen when the memory of the mobile terminal is in emergency, so that the intelligence of the frozen application is improved, the freezing operation is simplified, and the freezing operation time is saved for the user.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flow chart of an application freezing method according to a first embodiment of the present invention;
fig. 2 is a schematic flow chart of an application freezing method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a mobile terminal according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a mobile terminal according to a fourth embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some embodiments of the present invention, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, and in the above-described drawings, are used for distinguishing between different objects and not for describing a particular order. Furthermore, "include" and "have" and 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 elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements 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 invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
Referring to fig. 1, fig. 1 is a schematic flow chart of an application freezing method according to a first embodiment of the present invention, and as shown in fig. 1, the application freezing method according to the embodiment of the present invention includes the following steps:
s101, the mobile terminal judges whether the memory occupation ratio of the mobile terminal is larger than or equal to a first threshold value.
The mobile terminal includes, but is not limited to, a mobile phone, a mobile computer, a tablet computer, a vehicle-mounted unit, a Personal Digital Assistant (PDA), a media player, a smart television, a smart watch, smart glasses, a smart band, and other user devices.
S102, if the user category is larger than or equal to the first threshold, the mobile terminal obtains the user category of the user using the mobile terminal, wherein different user categories correspond to different application categories, and the application categories comprise at least one application.
Specifically, different users may be classified into different user categories according to usage habits or other factors, for example, if the number of times or duration of using office software by the user a is large, the user a belongs to the office user; if the B user uses the shooting and video recording type and social contact type software for more times or for a longer time, the A user belongs to the shooting and video recording type and the social contact type users at the same time. That is, each user belongs to at least one corresponding user category, each user category in turn corresponding to an application category, each application category including at least one application. Therefore, when the memory occupation ratio is judged to be larger than or equal to the first threshold, the mobile terminal acquires the user category of the user using the mobile terminal.
In some embodiments of the present invention, before determining whether the memory usage ratio of the mobile terminal is greater than or equal to the first threshold, the following operations may be further performed:
determining application types to which applications installed by the mobile terminal belong;
and determining the user category of the user using the mobile terminal based on the determined application categories to which the applications belong.
In some embodiments of the present invention, the specific implementation of determining the user category of the user using the mobile terminal based on the determined application category to which each application belongs may be:
acquiring the use times of each application installed on the mobile terminal in a preset time period;
determining the application category to which the application with the largest number of use times in a preset time period belongs as the user category of the user using the mobile terminal based on the number of use times of each application in the preset time period and the application category to which each application belongs;
or acquiring the number of applications included in each application category included in the mobile terminal;
and determining the application category comprising the most applications as the user category of the user using the mobile terminal.
S103, the mobile terminal acquires the applications to be frozen in the mobile terminal, wherein the applications to be frozen are applications in application categories except the application category corresponding to the user category of the user.
S104, the mobile terminal freezes the application to be frozen.
Specifically, the Android application needs to register an entry of the application and a monitored system event in a configuration file of the application when the Android application is developed. For example, the portal for an application is MainActivity, so that when the user clicks on the program icon, the system launches the portal interface. If the power refreshing event of the system needs to be monitored, a receiver can be registered, and when the power of the system changes, the corresponding application program can be informed. When the user installs the application program, the system monitors the registered events and entries of the application program, and executes corresponding operations according to the configuration file of the application program when corresponding events occur.
The Android system registers registration events in the system by the application program to respond to various messages generated by the system. An event is an action of a User interacting with a User Interface (UI) of an application. Commonly used events include: onClick button click event, onLongClick long press event, onCreateContextMenu context menu event, onFocusChange Focus event, onTouchEvent touch screen event, onKeyUp keyboard event.
Specifically, because the configuration file includes the entry information and the registration event information of the application program, the configuration file is modified, that is, the entry information and all the registration event information of the application are modified. After this operation, the application has no entry and no event that can be triggered is performed, so that the freezing purpose is achieved.
Specifically, the specific implementation manner of the mobile terminal determining the location of the configuration file of the target application may be:
and searching the configuration file of the application program through the folder tree structure under the installation folder of the application program. In the Android system, each application program has a configuration file, and the name of each application program is Android manifest. Such as: when a user needs to freeze the QQ application program, searching a configuration file in a QQ program installation file and determining the position as data/app/com. The configuration file comprises entry information of the application program and registration event information of the application program in the terminal system. The event registered by each application program can be one or more, and the registered event information comprises: the package name package of the application program, the portal registration activity name, the self-starting event and other events.
The frozen application is changed into a false dead state, the frozen application is not subjected to operations such as background starting and the like, so that the resource consumption of the application on the mobile terminal is reduced, but the frozen application still exists in the mobile terminal.
In some embodiments of the present invention, the mobile terminal may further perform the following operations:
deleting the application icon of the application to be frozen; or, displaying a preset image on an application icon of the application to be frozen in an overlapping manner, wherein the preset image is used for indicating that the application is frozen.
In some embodiments of the present invention, after the mobile terminal freezes the application to be frozen, the mobile terminal may further perform the following operations:
when detecting that the memory occupation ratio of the mobile terminal is smaller than a second preset threshold, the mobile terminal unfreezes the application in the frozen application categories except the application category corresponding to the user category of the user.
It can be seen that in the technical solution of the embodiment of the present invention, it is determined whether a memory occupancy ratio of the mobile terminal is greater than or equal to a first threshold, and if the memory occupancy ratio is greater than or equal to the first threshold, the mobile terminal obtains a user category of a user using the mobile terminal, where different user categories correspond to different application categories, the application categories include at least one application, and the mobile terminal obtains an application to be frozen in the mobile terminal, where the application to be frozen is an application in an application category other than the application category corresponding to the user category of the user, and is frozen with respect to the application to be frozen. By implementing the embodiment of the invention, the uninterested application of the user can be automatically frozen when the memory of the mobile terminal is in emergency, so that the intelligence of the frozen application is improved, the freezing operation is simplified, and the freezing operation time is saved for the user.
Referring to fig. 2, fig. 2 is a schematic flow chart of an application freezing method according to a second embodiment of the present invention, and as shown in fig. 2, the application freezing method according to the embodiment of the present invention includes the following steps:
s201, the mobile terminal determines the application types of the applications installed on the mobile terminal.
The mobile terminal classifies the applications according to the application identifiers when the applications are installed, and can directly acquire the classifications of the applications in the application market when the applications are downloaded in the application market. Generally, applications installed in a mobile terminal can be roughly classified into games, children, education, shopping, photography and video recording, efficiency, delicatessens, life, health and beauty, travel, music, sports, business, news, tools, entertainment, social, journal, finance, reference, navigation, medical, weather, and the like, and the embodiments of the present invention are not limited thereto.
S202, based on the determined application categories to which the applications belong, the mobile terminal determines the user category of the user using the mobile terminal.
The specific implementation manner of the mobile terminal determining the user category of the user using the mobile terminal based on the determined application categories to which the respective applications belong may be:
acquiring the use times of each application installed on the mobile terminal in a preset time period;
determining the application category to which the application with the largest number of use times in a preset time period belongs as the user category of the user using the mobile terminal based on the number of use times of each application in the preset time period and the application category to which each application belongs;
or acquiring the number of applications included in each application category included in the mobile terminal;
and determining the application category comprising the most applications as the user category of the user using the mobile terminal.
For example, the mobile terminal obtains the number of times of use of all installed applications in a preset time period, and sorts the applications according to the number of times of use, wherein the application category corresponding to the application with the largest number of times of use is determined as the user category of the user using the mobile terminal. For example, the preset time period may be selected as one month, and in one month, the number of times the WeChat is used is the last, the application category to which the WeChat belongs is the social category, and then the corresponding user category of the user using the mobile terminal is the social category user.
Or the mobile terminal acquires the number of applications included in each application category included in the mobile terminal; and sorting the application categories included by the mobile terminal from at least according to the number of applications included in each application category, wherein the application category including the most applications is determined as the user category of the user using the mobile terminal. For example, the number of applications in the game application category of the mobile terminal is 12, the number of applications in the social application category is 3, and the number of applications in the efficiency category is 15, so that the application category with the most applications in the mobile terminal is the efficiency category, and the corresponding user category of the user using the mobile terminal is the efficiency (or work) user.
S203, the mobile terminal judges whether the memory occupation ratio of the mobile terminal is larger than or equal to a first threshold value.
S204, if the user category is larger than or equal to the first threshold, the mobile terminal acquires the user category of the user using the mobile terminal, wherein different user categories correspond to different application categories, and the application categories comprise at least one application;
s205, the mobile terminal acquires an application to be frozen in the mobile terminal, wherein the application to be frozen is an application in an application category except the application category corresponding to the user category of the user;
s206, the mobile terminal freezes the application to be frozen.
S207, the mobile terminal deletes the application icon of the application to be frozen; or, displaying a preset image on an application icon of the application to be frozen in an overlapping manner, wherein the preset image is used for indicating that the application is frozen.
After the application is frozen, the mobile terminal may delete the application icon corresponding to the application, where a specific implementation manner of deleting the application icon corresponding to the application may be: and the mobile terminal searches and backs up the quick start file of the application, and deletes the quick start file after the backup is finished. In the embodiment of the present invention, the configuration file may be backed up to a file system of a local disk or sent to a cloud software platform for virtual network storage, which is not limited in the embodiment of the present invention. The shortcut starting file is also the shortcut displayed by the application program on the system desktop, and is stored in the system database, and is generally a file with the suffix of lnk.
Optionally, after the application is frozen, the mobile terminal may further overlay a preset image on an application icon corresponding to the application, where the preset image is used to indicate that the application is frozen. The preset image may be a frozen image identification image, such as an ice layer.
And S208, when the memory occupation ratio of the mobile terminal is detected to be smaller than a second preset threshold, the mobile terminal unfreezes the applications in the frozen application categories except the application category corresponding to the user category of the user.
It can be seen that in the technical solution of the embodiment of the present invention, it is determined whether a memory occupancy ratio of the mobile terminal is greater than or equal to a first threshold, and if the memory occupancy ratio is greater than or equal to the first threshold, the mobile terminal obtains a user category of a user using the mobile terminal, where different user categories correspond to different application categories, the application categories include at least one application, and the mobile terminal obtains an application to be frozen in the mobile terminal, where the application to be frozen is an application in an application category other than the application category corresponding to the user category of the user, and is frozen with respect to the application to be frozen. By implementing the embodiment of the invention, the uninterested application of the user can be automatically frozen when the memory of the mobile terminal is in emergency, so that the intelligence of the frozen application is improved, the freezing operation is simplified, and the freezing operation time is saved for the user.
For convenience of description, only the relevant parts of the embodiments of the present invention are shown, and details of the specific technology are not disclosed.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a mobile terminal according to a third embodiment of the present invention, and as shown in fig. 3, the mobile terminal according to the embodiment of the present invention includes the following units:
a determining unit 301, configured to determine whether a memory occupancy ratio of the mobile terminal is greater than or equal to a first threshold;
an obtaining unit 302, configured to obtain a user category of a user using the mobile terminal if the user category is greater than or equal to a first threshold, where different user categories correspond to different application categories, and the application categories include at least one application;
the obtaining unit 302 is further configured to obtain an application to be frozen in the mobile terminal, where the application to be frozen is an application in an application category other than an application category corresponding to a user category of the user;
a freezing unit 303, configured to freeze for the application to be frozen.
Optionally, in some embodiments of the present invention, the mobile terminal may further include:
a determining unit 304, configured to determine an application category to which each application installed in the mobile terminal belongs before the determining unit 301 determines whether the memory usage ratio of the mobile terminal is greater than or equal to a first threshold;
the determining unit 304 is further configured to determine a user category of a user using the mobile terminal based on the determined application categories to which the respective applications belong.
Optionally, in some embodiments of the present invention, when the determining unit 304 is configured to determine the user category of the user using the mobile terminal based on the determined application category to which each application belongs, the determining unit is specifically configured to obtain the number of times of use of each application installed in the mobile terminal in a preset time period; determining the application category to which the application with the largest number of use times in a preset time period belongs as the user category of the user using the mobile terminal based on the number of use times of each application in the preset time period and the application category to which each application belongs;
or, the determining unit 304 is specifically configured to obtain the number of applications included in each application category included in the mobile terminal when the determining unit is configured to determine the user category of the user using the mobile terminal based on the application category to which each determined application belongs; and determining the application category comprising the most applications as the user category of the user using the mobile terminal.
Optionally, in some embodiments of the present invention, the mobile terminal may further include:
an icon modifying unit 305, configured to delete the application icon of the application to be frozen; or, displaying a preset image on an application icon of the application to be frozen in an overlapping manner, wherein the preset image is used for indicating that the application is frozen.
Optionally, in some embodiments of the present invention, the mobile terminal may further include:
a thawing unit 306, configured to, after the freezing unit freezes the application to be frozen, when it is detected that the memory occupancy ratio of the mobile terminal is smaller than a second preset threshold, thaw the application in the application category that is frozen except for the application category corresponding to the user category of the user.
Specifically, the detailed implementation of each unit may refer to the description of the relevant steps in the corresponding embodiments of fig. 1 to fig. 2, which is not repeated herein.
It can be seen that in the technical solution of the embodiment of the present invention, it is determined whether a memory occupancy ratio of the mobile terminal is greater than or equal to a first threshold, and if the memory occupancy ratio is greater than or equal to the first threshold, the mobile terminal obtains a user category of a user using the mobile terminal, where different user categories correspond to different application categories, the application categories include at least one application, and the mobile terminal obtains an application to be frozen in the mobile terminal, where the application to be frozen is an application in an application category other than the application category corresponding to the user category of the user, and is frozen with respect to the application to be frozen. By implementing the embodiment of the invention, the uninterested application of the user can be automatically frozen when the memory of the mobile terminal is in emergency, so that the intelligence of the frozen application is improved, the freezing operation is simplified, and the freezing operation time is saved for the user.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a mobile terminal according to a fourth embodiment of the present invention. As shown in fig. 4, the mobile terminal in the embodiment of the present invention includes: at least one processor 401, e.g., a CPU, at least one receiver 403, at least one memory 404, at least one transmitter 405, at least one communication bus 402. Wherein a communication bus 402 is used to enable connective communication between these components. The receiver 403 and the transmitter 405 of the apparatus in the embodiment of the present invention may be wired transmission ports, or may also be wireless devices, for example, including an antenna apparatus, which is used for performing signaling or data communication with other node devices. The memory 404 may be a high-speed RAM memory or a non-volatile memory (e.g., at least one disk memory). The memory 404 may optionally be at least one memory device located remotely from the processor 401. A set of program codes is stored in the memory 404 and the processor 401 can call the codes stored in the memory 404 through the communication bus 402 to perform the related functions.
The processor 401 is configured to determine whether a memory occupancy ratio of the mobile terminal is greater than or equal to a first threshold; if the user category is larger than or equal to the first threshold, acquiring the user category of the user using the mobile terminal, wherein different user categories correspond to different application categories, and the application categories comprise at least one application; acquiring applications to be frozen in the mobile terminal, wherein the applications to be frozen are applications in application categories except for the application category corresponding to the user category of the user; freezing the application to be frozen.
Optionally, in some embodiments of the present invention, before the processor 401 is configured to determine whether the memory usage ratio of the mobile terminal is greater than or equal to a first threshold, the processor may also be configured to determine an application class to which each application installed in the mobile terminal belongs; and determining the user category of the user using the mobile terminal based on the determined application categories to which the applications belong.
Optionally, in some embodiments of the present invention, when the processor 401 is configured to determine a user category of a user using the mobile terminal based on the determined application category to which each application belongs, the processor is specifically configured to obtain the number of times of use of each application installed in the mobile terminal in a preset time period; determining the application category to which the application with the largest number of use times in a preset time period belongs as the user category of the user using the mobile terminal based on the number of use times of each application in the preset time period and the application category to which each application belongs;
or, the processor 401 is specifically configured to obtain the number of applications included in each application category included in the mobile terminal when the processor is configured to determine the user category of the user using the mobile terminal based on the determined application category to which each application belongs; and determining the application category comprising the most applications as the user category of the user using the mobile terminal.
Optionally, in some embodiments of the present invention, the processor 401 may further be configured to delete the application icon of the application to be frozen; or, displaying a preset image on an application icon of the application to be frozen in an overlapping manner, wherein the preset image is used for indicating that the application is frozen.
Optionally, in some embodiments of the present invention, after the processor 401 is configured to freeze the application to be frozen, when it is detected that the memory occupancy ratio of the mobile terminal is smaller than a second preset threshold, unfreezing the frozen application in the application categories except for the application category corresponding to the user category of the user.
Specifically, the detailed implementation of each unit may refer to the description of the relevant steps in the corresponding embodiments of fig. 1 to fig. 2, which is not repeated herein.
It can be seen that in the technical solution of the embodiment of the present invention, it is determined whether a memory occupancy ratio of the mobile terminal is greater than or equal to a first threshold, and if the memory occupancy ratio is greater than or equal to the first threshold, the mobile terminal obtains a user category of a user using the mobile terminal, where different user categories correspond to different application categories, the application categories include at least one application, and the mobile terminal obtains an application to be frozen in the mobile terminal, where the application to be frozen is an application in an application category other than the application category corresponding to the user category of the user, and is frozen with respect to the application to be frozen. By implementing the embodiment of the invention, the uninterested application of the user can be automatically frozen when the memory of the mobile terminal is in emergency, so that the intelligence of the frozen application is improved, the freezing operation is simplified, and the freezing operation time is saved for the user.
An embodiment of the present invention further provides a computer storage medium, where the computer storage medium may store a program, and when the program is executed, the program includes some or all of the steps of any one of the service process monitoring methods described in the above method embodiments.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and elements referred to are not necessarily required to practice the invention.
The order of the steps of the method of the embodiments of the present invention may be adjusted, combined, or deleted according to actual needs. The units of the terminal of the embodiment of the invention can be integrated, further divided or deleted according to actual needs.
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.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are illustrative, and for example, the division of the units is a logical division, and in actual implementation, there may be other divisions, for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The application freezing method and the mobile terminal provided by the embodiment of the invention are described in detail above, and a specific example is applied in the text to explain the principle and the embodiment of the invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, 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 invention.

Claims (8)

1. An application freezing method, comprising:
judging whether the memory occupation ratio of the mobile terminal is greater than or equal to a first threshold value or not;
if the user category is larger than or equal to a first threshold value, acquiring the user category of the user using the mobile terminal, wherein the user of the mobile terminal belongs to at least one user category, different user categories correspond to different application categories, and the application categories comprise at least one application;
acquiring applications to be frozen in the mobile terminal, wherein the applications to be frozen are applications in application categories except for the application category corresponding to the user category of the user;
freezing the application to be frozen, wherein the application after freezing does not perform background starting operation but still exists in the mobile terminal;
and when detecting that the memory occupation ratio of the mobile terminal is smaller than a second preset threshold, unfreezing the application in the frozen application categories except the application category corresponding to the user category of the user.
2. The method according to claim 1, wherein before determining whether the memory footprint of the mobile terminal is greater than or equal to the first threshold, the method further comprises:
determining application types to which applications installed by the mobile terminal belong;
and determining the user category of the user using the mobile terminal based on the determined application categories to which the applications belong.
3. The method of claim 2, wherein determining a user category for a user using the mobile terminal based on the determined application categories to which the respective applications belong comprises:
acquiring the use times of each application installed on the mobile terminal in a preset time period;
determining the application category to which the application with the largest number of use times in a preset time period belongs as the user category of the user using the mobile terminal based on the number of use times of each application in the preset time period and the application category to which each application belongs;
or acquiring the number of applications included in each application category included in the mobile terminal;
and determining the application category comprising the most applications as the user category of the user using the mobile terminal.
4. The method of claim 1, wherein the method further comprises:
deleting the application icon of the application to be frozen; or, displaying a preset image on an application icon of the application to be frozen in an overlapping manner, wherein the preset image is used for indicating that the application is frozen.
5. A mobile terminal, comprising:
the judging unit is used for judging whether the memory occupation ratio of the mobile terminal is larger than or equal to a first threshold value or not;
an obtaining unit, configured to obtain a user category of a user using the mobile terminal if the user category is greater than or equal to a first threshold, where the user of the mobile terminal belongs to at least one user category, different user categories correspond to different application categories, and the application categories include at least one application;
the obtaining unit is further configured to obtain an application to be frozen in the mobile terminal, where the application to be frozen is an application in an application category other than an application category corresponding to a user category of the user;
the freezing unit is used for freezing the application to be frozen, wherein the application after freezing does not perform background starting operation but still exists in the mobile terminal;
and the unfreezing unit is used for unfreezing the application in the frozen application categories except the application category corresponding to the user category of the user when the memory occupation ratio of the mobile terminal is detected to be smaller than a second preset threshold value after the freezing unit freezes the application to be frozen.
6. The mobile terminal of claim 5, wherein the mobile terminal further comprises:
the determining unit is used for determining the application type of each application installed on the mobile terminal before the judging unit judges whether the memory occupation ratio of the mobile terminal is larger than or equal to a first threshold value;
the determining unit is further configured to determine a user category of a user using the mobile terminal based on the determined application categories to which the respective applications belong.
7. The mobile terminal of claim 6,
the determining unit is specifically configured to obtain the number of times of use of each application installed in the mobile terminal within a preset time period when the determining unit is configured to determine a user category of a user using the mobile terminal based on the determined application category to which each application belongs; determining the application category to which the application with the largest number of use times in a preset time period belongs as the user category of the user using the mobile terminal based on the number of use times of each application in the preset time period and the application category to which each application belongs;
or, the determining unit is specifically configured to obtain the number of applications included in each application category included in the mobile terminal when the determining unit is configured to determine the user category of the user using the mobile terminal based on the application category to which each determined application belongs; and determining the application category comprising the most applications as the user category of the user using the mobile terminal.
8. The mobile terminal of claim 5, wherein the mobile terminal further comprises:
the icon modifying unit is used for deleting the application icons of the applications to be frozen; or, displaying a preset image on an application icon of the application to be frozen in an overlapping manner, wherein the preset image is used for indicating that the application is frozen.
CN201610496768.1A 2016-06-28 2016-06-28 Application freezing method and mobile terminal Active CN106155789B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610496768.1A CN106155789B (en) 2016-06-28 2016-06-28 Application freezing method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610496768.1A CN106155789B (en) 2016-06-28 2016-06-28 Application freezing method and mobile terminal

Publications (2)

Publication Number Publication Date
CN106155789A CN106155789A (en) 2016-11-23
CN106155789B true CN106155789B (en) 2020-02-21

Family

ID=57349645

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610496768.1A Active CN106155789B (en) 2016-06-28 2016-06-28 Application freezing method and mobile terminal

Country Status (1)

Country Link
CN (1) CN106155789B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106775851A (en) * 2016-12-02 2017-05-31 深圳创维数字技术有限公司 A kind of self-start method and device
CN106648767A (en) * 2016-12-08 2017-05-10 宇龙计算机通信科技(深圳)有限公司 Application freezing method and apparatus
CN107704755A (en) * 2017-09-19 2018-02-16 广东小天才科技有限公司 A kind of application management method, application program management device and intelligent terminal
CN110045812B (en) * 2018-01-12 2021-01-15 Oppo广东移动通信有限公司 Information processing method, information processing device, computer equipment and computer readable storage medium
CN108769417A (en) * 2018-06-01 2018-11-06 深圳市富途网络科技有限公司 A kind of smart machine client operational mode automatic switching method
CN109274815A (en) * 2018-08-22 2019-01-25 奇酷互联网络科技(深圳)有限公司 Program operation control method, device, readable storage medium storing program for executing and mobile terminal
CN109284040B (en) * 2018-08-28 2020-08-11 珠海格力电器股份有限公司 Application management method, device and terminal and computer storage medium
CN112867990A (en) * 2018-12-29 2021-05-28 深圳市欢太科技有限公司 Application control method and related device
CN110598070B (en) * 2019-09-09 2022-01-25 腾讯科技(深圳)有限公司 Application type identification method and device, server and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4217682B2 (en) * 2004-12-28 2009-02-04 株式会社東芝 Application execution method and application execution program
CN102591942B (en) * 2011-12-27 2013-11-13 奇智软件(北京)有限公司 Method and device for automatic application recommendation
CN103324575B (en) * 2012-03-23 2017-04-05 腾讯科技(深圳)有限公司 The method and mobile terminal of cleaning internal memory
US20140195926A1 (en) * 2013-01-08 2014-07-10 Emo2 Inc. Systems and methods for enabling access to one or more applications on a device
CN105528443B (en) * 2015-12-23 2019-03-26 北京金山安全软件有限公司 Application management method and device and electronic equipment

Also Published As

Publication number Publication date
CN106155789A (en) 2016-11-23

Similar Documents

Publication Publication Date Title
CN106155789B (en) Application freezing method and mobile terminal
CN109213539B (en) Memory recovery method and device
CN106792188B (en) Data processing method, device and system for live broadcast page and storage medium
CN106227585B (en) Application program starting method, device and equipment
CN104899220B (en) Application program recommendation method and system
CN105472033B (en) Media information processing method and mobile terminal
CN108156508B (en) Barrage information processing method and device, mobile terminal, server and system
CN106022101B (en) application management method and terminal
CN110740088B (en) Method, device, terminal and medium for recommending and adding social resources
US20200257749A1 (en) Method and a device for friend recommendation
CN108984339B (en) Data recovery method and related product
CN106227483B (en) Display control method and mobile terminal
CN109587328B (en) Message management method and device, storage medium and electronic equipment
CN110889062A (en) Page loading method and device, terminal and computer readable storage medium
CN108966340B (en) Equipment positioning method and device
CN107102876B (en) Application pushing method and device
CN106293912B (en) Method and terminal for freezing application program
CN112534410A (en) Apparatus and method for managing event notifications in a mobile device and computer program product thereof
CN110770720A (en) Resource searching method and related product
CN107743151B (en) Content pushing method and device, mobile terminal and server
CN110771113B (en) Brushing amount terminal detection method and device
CN107688498B (en) Application program processing method and device, computer equipment and storage medium
CN106941569B (en) Display data processing method and device
CN112989323B (en) Process detection method, device, terminal and storage medium
CN106779844B (en) Method and device for acquiring value added service information and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant