CN109254848A - Mobile terminal and mobile terminal releasing memory method, apparatus and storage device - Google Patents

Mobile terminal and mobile terminal releasing memory method, apparatus and storage device Download PDF

Info

Publication number
CN109254848A
CN109254848A CN201810962860.1A CN201810962860A CN109254848A CN 109254848 A CN109254848 A CN 109254848A CN 201810962860 A CN201810962860 A CN 201810962860A CN 109254848 A CN109254848 A CN 109254848A
Authority
CN
China
Prior art keywords
state
end application
terminal
memory
mobile terminal
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.)
Withdrawn
Application number
CN201810962860.1A
Other languages
Chinese (zh)
Inventor
贺威
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qiku Internet Technology Shenzhen Co Ltd
Original Assignee
Qiku Internet Technology 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 Qiku Internet Technology Shenzhen Co Ltd filed Critical Qiku Internet Technology Shenzhen Co Ltd
Priority to CN201810962860.1A priority Critical patent/CN109254848A/en
Publication of CN109254848A publication Critical patent/CN109254848A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/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
    • 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/5022Mechanisms to release resources

Landscapes

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

Abstract

Present invention discloses a kind of mobile terminal and mobile terminal releasing memory method, apparatus and storage devices, by obtaining end application state in which under the bright screen state of terminal;Judge whether the end application state in which meets one of identification-state or a variety of;If not meeting one of identification-state or a variety of, the end application process is killed.Whether terminal is gone out under screen state, judge end application once in foreground state;If so, judging the end application last time on foreground or using sound channel or having whether the time of window has been more than preset time;If so, judging whether the ratio of total memory and free memory reaches presupposition multiple;If so, killing the end application process.Process of the present invention by the useless end application in end backstage, releasing memory solve the problems, such as terminal low memory and cause terminal operating slowly or Caton influence usage experience.

Description

Mobile terminal and mobile terminal releasing memory method, apparatus and storage device
Technical field
The present invention relates to technical field of mobile terminals, a kind of mobile terminal and mobile terminal release are especially related to Memory method, apparatus and storage device.
Background technique
With the development of the equipment such as intelligent terminal such as mobile phone, plate, intelligent game computer, the function of terminal is more and more stronger, phase It answers, supports the application program of these functions also more and more.When more or more long, the shared memory of the program run in terminal Will be more, although also, some rogues application closed from application widget, still occupy memory.When terminal memory quilt Occupy more, the memory that can distribute to current application is fewer, and situation is serious, will cause terminal operating slowly, even Caton, same Shi Zengjia terminal power consumption.Now with a kind of removing memory method, be manual cleaning all memories of terminal, lead to active user Operation program needs to restart, and influences user experience.Therefore, to solve the above problems, needing in the new release terminal of one kind The method deposited.
Summary of the invention
The main object of the present invention is to provide a kind of mobile terminal and mobile terminal releasing memory method, apparatus and storage Device, it is intended to solve the problem above-mentioned.
In order to achieve the above-mentioned object of the invention, a kind of method that the present invention proposes mobile terminal releasing memory, the method packet Include step:
When terminal is in bright screen state, end application state in which is obtained;
Judge whether the end application state in which meets one of identification-state or a variety of;
If it is not, then killing the corresponding process of the end application.
Further, described if it is not, then killing the end application process before, comprising:
If so, not doing additional operations to the end application.
Further, the identification-state of the end application include: using in foreground, there is application widget to show, Be used sound channel, holding wake-up lock, navigation application need to respond location updating, using response Binder call, AMS is actively called, network is being downloaded or uploaded, system service mandatory use can not terminate.
Further, before the acquisition end application status, comprising:
The state of monitor terminal application program.
A kind of method that the application proposes mobile terminal releasing memory simultaneously, the method includes the steps:
Terminal, which is in, goes out when shielding state, judge end application go out shield before whether in foreground state or there is window to show Or using sound channel;
Terminal, which is in, goes out when shielding state, judges whether end application state in which meets preset condition;
If so, judging whether the ratio of total memory and free memory reaches presupposition multiple;
If so, killing the corresponding process of the end application.
Further, the terminal, which is in, goes out when shielding state, and it is pre- to judge whether end application state in which meets If before the step of condition, comprising:
If the end application go out shield before do not have foreground state, window is shown and using sound channel it Any one of, then kill the corresponding process of the end application.
Further, the terminal, which is in, goes out when shielding state, and it is pre- to judge whether end application state in which meets If the step of condition, comprising:
If the end application state in which be go out shield before in foreground or thering is window to show, judge the end Whether end reaches preset time in the screen that goes out.
Further, the terminal, which is in, goes out when shielding state, and it is pre- to judge whether end application state in which meets If the step of condition, comprising:
If the end application state in which be go out shield before in sound channel is used, judge the end End application program terminates whether to reach preset time using sound channel.
Further, the method for the mobile terminal releasing memory is suitable for the system using linux kernel.
The application proposes a kind of device of mobile terminal releasing memory simultaneously, and described device includes:
Acquiring unit when being in bright screen state for terminal, obtains end application state in which;
Judging unit, for judge the end application state in which whether meet one of identification-state or It is a variety of;
Bright screen end unit, for if it is not, then killing the corresponding process of the end application.
Further, the identification-state of the end application include: using in foreground, there is application widget to show, Be used sound channel, holding wake-up lock, navigation application need to respond location updating, using response Binder call, AMS is actively called, network is being downloaded or uploaded, system service mandatory use can not terminate.
Further, described device further include:
Monitoring unit, for real time monitoring or periodical monitor terminal application program state in which.
The application proposes the device of mobile terminal releasing memory a kind of simultaneously, which is characterized in that described device includes:
Go out screen the first judging unit, for terminal be in go out shield state when, judge that end application state in which is It is no to meet preset condition;
It goes out and shields second judgment unit, for if so, judging whether the ratio of total memory and free memory reaches presupposition multiple;
It goes out and shields end unit, for if so, killing the corresponding process of the end application.
Further, described go out shields end unit, is also used to:
If the end application go out shield before do not have foreground state, window is shown and using sound channel it Any one of, then kill the corresponding process of the end application.
Further, first judging unit of screen that goes out, is also used to:
If the end application state in which be go out shield before in foreground or thering is window to show, judge the end Whether end reaches preset time in the screen that goes out.
Further, go out the first judging unit of screen, is also used to:
If the end application state in which be go out shield before in sound channel is used, judge the end End application program terminates whether to reach preset time using sound channel.
The application also proposes a kind of mobile terminal, including processor and memory simultaneously,
Device of the memory for memory mobile terminal releasing memory executes mobile end described in any of the above-described Hold the program of the method for releasing memory;
The processor is configured to for executing the program stored in the memory.
The application is both also to propose a kind of device with store function, is stored thereon with computer program, feature exists In when the computer program is executed by processor the step of method described in realization any of the above-described.
The mobile terminal and mobile terminal releasing memory method, apparatus and storage device of the application, by bright in terminal End application state in which is obtained under screen state;Judge whether the end application state in which meets mark One of state is a variety of;If not meeting one of identification-state or a variety of, the end application process is killed. Whether terminal is gone out under screen state, judge end application once in foreground state;If so, judging the end application Last time is on foreground or using sound channel or has whether the time of window has been more than preset time;If so, judge total memory with Whether the ratio of free memory reaches presupposition multiple;If so, killing the end application process.The present invention passes through end The process of useless end application, releasing memory from the background solve terminal low memory and cause terminal operating slowly or card The problem of influence usage experience of pausing.
Detailed description of the invention
Fig. 1 is the flow diagram of the method for the mobile terminal releasing memory of one embodiment of the application;
Fig. 2 is another flow diagram of the method for the mobile terminal releasing memory of one embodiment of the application;
Fig. 3 is the structural schematic block diagram of the mobile terminal of one embodiment of the application.
Fig. 4 is the structural schematic block diagram of the device of the mobile terminal releasing memory of one embodiment of the application
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Referring to Fig.1, the embodiment of the present application provides a kind of method of mobile terminal releasing memory, for using linux kernel System.
The above-mentioned system using linux kernel, such as Android (android).
The above method comprising steps of
When S1, terminal are in bright screen state, end application state in which is obtained;
S2, judge whether the end application state in which meets one of identification-state or a variety of;
S3, if it is not, then killing the corresponding process of the end application.
As described in above-mentioned steps S1, the targeted end application of above-mentioned acquisition end application state in which is All nonsystematic application programs in operation in terminal, these above-mentioned running application program state in which will all be read It takes, and the program of assembly operating will not be acquired in terminal.Obtaining end application state in which can be reality When obtain, be also possible to periodically acquire.
It is above-mentioned whether to meet one of identification-state or a variety of refer to obtain in step S1 as described in above-mentioned steps S2 All nonsystematic application programs in operation in the terminal taken, can be by above-mentioned all application program state in which one by one with Identification-state comparison;It is also possible to one by one compare identification-state with above-mentioned all application program state in which;It is answered when described With program state in which be one of identification-state or the application program state in which is more in identification-state Kind, all meet identification-state at last.
It is above-mentioned if it is not, then killing (kill) falls the end application process as described in above-mentioned steps S3, it refers to described In end application state in which, by identification-state is compared with above-mentioned all application program state in which one by one, When all identification-states and the end application state in which are not all inconsistent, its process is killed, applies institute accordingly There is component to be all forced closed, occupied memory is also just released.
In one embodiment, when above-mentioned terminal is in bright screen state, the step of end application state in which is obtained Before rapid S1, comprising:
The state of S101, monitor terminal application program.
As described in above-mentioned steps S101, the state of monitor terminal application program monitors application state by system itself Variation, can obtain application program state in which at any time, not need additional securing mechanism.In addition, monitor terminal application journey Sequence can be real time monitoring, be also possible to periodical monitoring, can choose generation state recording, to adjust or improving identification-state Basis is provided.
In one embodiment, above-mentioned identification-state includes:
The identification-state of the end application includes: to apply in foreground, have application widget to show, sound is used Sound channel, holding wake-up lock, navigation application need to respond location updating, using response Binder call, AMS actively adjust With, network is being downloaded or is being uploaded, system service mandatory use can not terminate.Above-mentioned wake-up lock refer to wake locks in Linux, Binder refers to that Binder mechanism, AMS refer to ActivityManagerService in Linux.Involved by the identification-state Application program be application program or there are the application program of real-time, interactive and to be carrying out with user necessary to system The application program of user operation commands.
As described in above-mentioned identification-state, above-mentioned end application is terminal in bright screen, user's normal use terminal institute The application program that must be used then increases the load of memory, is screened without the program in above-mentioned range of applications It reprocesses out, is the necessary condition for improving terminal capabilities.Further, in the method, above-mentioned identification-state is not Fixed, it can be increased according to the customized identification-state of user, the application program for meeting user-defined identification state is corresponding Process retain.
In one embodiment, above-mentioned if it is not, then killing the end application process after, comprising:
Generate memory RR release record.
As described in above-mentioned generation memory RR release record, terminal is after killing the end application process, in generation RR release record is deposited, a record as the event procedure.User can be better understood by terminal device by record Service condition (such as recognize that some application program is rarely needed, and especially account for memory, so that it may consider to delete).
The method of the mobile terminal releasing memory of the application, by obtaining end application institute under the bright screen state of terminal The state at place;Judge whether the end application state in which meets one of identification-state or a variety of;If not being inconsistent One of identification-state or a variety of is closed, then kills the end application process.The present invention is useless by terminating backstage The process of end application closes corresponding program, releases memory shared by above procedure, solves terminal low memory And the problem of causing terminal operating slowly or Caton influence usage experience, while reducing the power consumption of terminal.
Referring to Fig. 2, the method that the application proposes another mobile terminal releasing memory simultaneously, the method includes the steps:
S4, terminal, which are in, goes out when shielding state, judges whether end application state in which meets preset condition;
S5, if so, judging whether the ratio of total memory and free memory reaches presupposition multiple;
S6, if so, killing the corresponding process of the end application.
As described in above-mentioned steps S4, above-mentioned terminal, which is in, goes out when shielding state, judges that end application state in which is No to meet preset condition, above-mentioned end application state in which can refer to the state of a timing node, can also be one The state of section time, can also be the state before a period of time.In this example, above-mentioned end application state in which can To be any one of above situation.
As described in above-mentioned steps S5, judge whether the ratio of total memory and free memory reaches presupposition multiple, i.e. judgement is surplus Whether remaining amount of ram is enough, then takes appropriate measures.Specifically, for example, judging whether total memory is greater than the 5 of free memory Times, that is, judge that remaining memory accounts for the ratio of total memory either with or without more than 20%, no more than 20% the case where is defaulted as memory not Foot.The phenomenon that memory source terminal required for program is run can not provide in real time, just will appear program card, wait resource, Need to clear up at this time committed memory without the use of application program with releasing memory.
It is above-mentioned if so, kill the end application process as described in above-mentioned steps S6, i.e., it will meet above-mentioned condition The terminal applies close, all components of corresponding application program are all forced closed, in the application program is occupied It deposits and is also just released.
In one embodiment, above-mentioned terminal, which is in, goes out when shielding state, whether judges end application state in which Before the step of meeting preset condition, comprising:
If the end application go out shield before do not have foreground state, window is shown and using sound channel it Any one of, then kill the corresponding process of the end application.
In the present embodiment, be end application go out shield before do not have foreground state, window is shown and Using sound channel any one of kill the end application process, all components of corresponding application program are all It is forced closed, the occupied memory of the application program is also just released.
In one embodiment, above-mentioned terminal, which is in, goes out when shielding state, judges whether end application state in which accords with The step of closing preset condition, comprising:
If the end application state in which be go out shield before in foreground or thering is window to show, judge the end Whether end reaches preset time in the screen that goes out.
In the present embodiment, above-mentioned end application state in which be go out shield before in foreground or thering is window to show, User is likely to be also in the application program used, if reaching preset time, user does not reuse the terminal applies Program then can determine whether that user will not reuse the end application in the short time, its process is killed, and releasing memory can simultaneously reach To the effect for saving terminal energy consumption.
In one embodiment, the terminal, which is in, goes out when shielding state, whether judges end application state in which The step of meeting preset condition, comprising:
If the end application state in which be go out shield before in sound channel is used, judge the end End application program terminates whether to reach preset time using sound channel.
Above-mentioned end application state in which be go out shield before in sound channel is used, that is, be likely to be user Also in the application program used, if above-mentioned end application program terminates to reach preset time using sound channel, user is without again It is secondary to use the end application, then it can determine whether that user will not reuse the end application in the short time, its process is killed Fall, releasing memory simultaneously can achieve the effect that save terminal energy consumption.
The method of the mobile terminal releasing memory of the application, by terminal be in go out shield state when, judge terminal applies Program go out shield before whether in foreground state or have window show or using sound channel;If so, judging the terminal applies The program last time be in foreground state or it is last have window show or terminate to use time after sound channel whether be more than Preset time;If so, judging whether the ratio of total memory and free memory reaches presupposition multiple;If so, killing the end Hold program process.This method releases memory shared by program, solves terminal low memory and causes terminal operating slow Or Caton influences usage experience and occupies the problem of excessive memory increases power consumption.
In one embodiment, above-mentioned if so, judge the ratio of total memory and free memory whether reach presupposition multiple it Before, if free memory is more than default percentage, retains the process of the end application, be included in dormant state.? When total memory is less than 4 times of free memories, it is not necessary that cleaning memory, in terminal memory, if remaining some application program Process, then terminal is when opening this application program, it is only necessary to wake up the process, program starting speed is greatly speeded up.On The mode for stating end process or sleeping process enables the terminals to realize common application quickly operation, uses and apply stable operation.
Referring to Fig. 4, the embodiment of the present application provides a kind of device of mobile terminal releasing memory, for using linux kernel System.
The above-mentioned system using linux kernel, such as Android android.
Above-mentioned apparatus includes:
Acquiring unit when being in bright screen state for terminal, obtains end application state in which;
Judging unit, for judge the end application state in which whether meet one of identification-state or It is a variety of;
Bright screen end unit, for if it is not, then killing the corresponding process of the end application.
In acquiring unit, the targeted end application of above-mentioned acquisition end application state in which is terminal Interior all nonsystematic application programs in operation, these above-mentioned running application program state in which will be all read, And the program of assembly operating will not be acquired in terminal.Acquisition end application state in which can be to be obtained in real time It takes, is also possible to periodically acquire.
It is above-mentioned whether to meet one of identification-state or a variety of refer to obtain in step S1 in judging unit All nonsystematic application programs in operation in terminal, can be by above-mentioned all application program state in which one by one with mark State vs;It is also possible to one by one compare identification-state with above-mentioned all application program state in which;Journey is applied when described Sequence state in which be one of identification-state or the application program state in which be it is a variety of in identification-state, All meet identification-state at last.
It is above-mentioned if it is not, then kill the end application process in bright screen end unit, refer to that the terminal is answered With in program state in which, by comparing identification-state with above-mentioned all application program state in which one by one, when all When identification-state and the end application state in which are not all inconsistent, its process is killed, applies all components accordingly It is all forced closed, occupied memory is also just released.
In one embodiment, above-mentioned apparatus further include:
Monitoring unit, the state for monitor terminal application program.
In monitoring unit, the state of monitor terminal application program monitors the variation of application state by system itself, can To obtain application program state in which at any time, additional securing mechanism is not needed.In addition, monitor terminal application program can be Real time monitoring, is also possible to periodical monitoring, can choose generation state recording, provide base to adjust or improving identification-state Plinth.
In one embodiment, above-mentioned identification-state includes:
The identification-state of the end application includes: to apply in foreground, have application widget to show, sound is used Sound channel, holding wake-up lock, navigation application need to respond location updating, using response Binder call, AMS actively adjust With, network is being downloaded or is being uploaded, system service mandatory use can not terminate.Above-mentioned wake-up lock refer to wake locks in Linux, Binder refers to that Binder mechanism, AMS refer to ActivityManagerService in Linux.Involved by the identification-state Application program be application program or there are the application program of real-time, interactive and to be carrying out with user necessary to system The application program of user operation commands.
As described in above-mentioned identification-state, above-mentioned end application is terminal in bright screen, user's normal use terminal institute The application program that must be used then increases the load of memory, is screened without the program in above-mentioned range of applications It reprocesses out, is the necessary condition for improving terminal capabilities.Further, in the method, above-mentioned identification-state is not Fixed, it can be increased according to the customized identification-state of user, the application program for meeting user-defined identification state is corresponding Process retain.
In one embodiment, above-mentioned apparatus further include:
Recording unit, for generating memory RR release record.
In recording unit, terminal generates memory RR release record after killing the end application process, as One record of the event procedure.User can by record, can be better understood by terminal device service condition (such as It is rarely needed to solve some application program, and especially accounts for memory, so that it may consider to delete).
The application proposes a kind of device of mobile terminal releasing memory simultaneously, and described device includes:
Go out screen the first judging unit, for terminal be in go out shield state when, judge that end application state in which is It is no to meet preset condition;
It goes out and shields second judgment unit, for if so, judging whether the ratio of total memory and free memory reaches presupposition multiple;
It goes out and shields end unit, for if so, killing the corresponding process of the end application.
In the first judging unit of screen that goes out, above-mentioned terminal, which is in, goes out when shielding state, judges shape locating for end application Whether state meets preset condition, and above-mentioned end application state in which can refer to the state of a timing node, can also It is the state of a period of time, can also be the state before a period of time.In this example, shape locating for above-mentioned end application State can be any one of above situation.
Shield in second judgment unit going out, judge whether the ratio of total memory and free memory reaches presupposition multiple, that is, sentences Whether the remaining amount of ram that breaks is enough, then takes appropriate measures.Specifically, for example, judging whether total memory is greater than in residue 5 times deposited judge that remaining memory accounts for the ratio of total memory either with or without more than 20%, in no more than 20% the case where is defaulted as Deposit deficiency.Memory source terminal required for program is run can not provide in real time, just will appear program card, wait showing for resource As, need to clear up at this time committed memory without the use of application program with releasing memory.
Shield in end unit going out, it is above-mentioned if so, kill the end application process, i.e., it will meet above-mentioned condition The terminal applies close, all components of corresponding application program are all forced closed, in the application program is occupied It deposits and is also just released.
In one embodiment, above-mentioned go out shields end unit, is also used to:
If the end application go out shield before do not have foreground state, window is shown and using sound channel it Any one of, then kill the corresponding process of the end application.
In the present embodiment, be end application go out shield before do not have foreground state, window is shown and Using sound channel any one of kill the end application process, all components of corresponding application program are all It is forced closed, the occupied memory of the application program is also just released.
In one embodiment, upper the first judging unit of screen is also used to:
If the end application state in which be go out shield before in foreground or thering is window to show, judge the end Whether end reaches preset time in the screen that goes out.
In the present embodiment, above-mentioned end application state in which be go out shield before in foreground or thering is window to show, User is likely to be also in the application program used, if reaching preset time, user does not reuse the terminal applies Program then can determine whether that user will not reuse the end application in the short time, its process is killed, and releasing memory can simultaneously reach To the effect for saving terminal energy consumption.
In one embodiment, above-mentioned the first judging unit of screen is also used to:
If the end application state in which be go out shield before in sound channel is used, judge the end End application program terminates whether to reach preset time using sound channel.
Above-mentioned end application state in which be go out shield before in sound channel is used, that is, be likely to be user Also in the application program used, if above-mentioned end application program terminates to reach preset time using sound channel, user is without again It is secondary to use the end application, then it can determine whether that user will not reuse the end application in the short time, its process is killed Fall, releasing memory simultaneously can achieve the effect that save terminal energy consumption.
In one embodiment, above-mentioned if so, judge the ratio of total memory and free memory whether reach presupposition multiple it Before, if free memory is more than default percentage, retains the process of the end application, be included in dormant state.? When total memory is less than 4 times of free memories, it is not necessary that cleaning memory, in terminal memory, if remaining some application program Process, then terminal is when opening this application program, it is only necessary to wake up the process, program starting speed is greatly speeded up.On The mode for stating end process or sleeping process enables the terminals to realize common application quickly operation, uses and apply stable operation.
The device of the mobile terminal releasing memory of the application, by terminal be in go out shield state when, judge terminal applies Program go out shield before whether in foreground state or have window show or using sound channel;If so, judging the terminal applies The program last time be in foreground state or it is last have window show or terminate to use time after sound channel whether be more than Preset time;If so, judging whether the ratio of total memory and free memory reaches presupposition multiple;If so, killing the end Hold program process.This method releases memory shared by program, solves terminal low memory and causes terminal operating slow Or Caton influences usage experience and occupies the problem of excessive memory increases power consumption.
Referring to Fig. 3, the embodiment of the present invention also provides a kind of mobile terminal, including processor 1080 and memory 1020, institute State the program that memory 1020 executes above-mentioned mobile terminal releasing memory method for the device of memory mobile terminal releasing memory; The processor 1080 is configurable for executing the program stored in the memory.
For ease of description, only parts related to embodiments of the present invention are shown, disclosed by specific technical details, asks Referring to present invention method part.The mobile terminal can be include mobile phone, tablet computer, PDA (Personal Digital Assistant, personal digital assistant), POS (Point of Sales, point-of-sale terminal), vehicle-mounted computer etc. it is any eventually End equipment, by taking mobile terminal is mobile phone as an example:
Fig. 3 shows the block diagram of the part-structure of mobile phone relevant to mobile terminal provided in an embodiment of the present invention.Ginseng Fig. 3 is examined, mobile phone includes: radio frequency (Radio Frequency, RF) circuit 1010, memory 1020, input unit 1030, display Unit 1040, sensor 1050, voicefrequency circuit 1060, Wireless Fidelity (wireless fidelity, WiFi) module 1070, place Manage the components such as device 1080 and power supply 1090.It will be understood by those skilled in the art that the not structure of handset structure shown in Fig. 3 The restriction of pairs of mobile phone may include perhaps combining certain components or different components than illustrating more or fewer components Arrangement.
It is specifically introduced below with reference to each component parts of the Fig. 3 to mobile phone:
RF circuit 1010 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base station After downlink information receives, handled to processor 1080;In addition, the data for designing uplink are sent to base station.In general, RF circuit 1010 include but is not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..In addition, RF circuit 1010 can also be logical with network and other equipment by wireless communication Letter.Any communication standard or agreement, including but not limited to global system for mobile communications (Global can be used in above-mentioned wireless communication System of Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), CDMA (Code Division Multiple Access, CDMA), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), long term evolution (Long Term Evolution, LTE), Email, short message service (Short Messaging Service, SMS) etc..
Memory 1020 can be used for storing software program and module, and processor 1080 is stored in memory by operation 1020 software program and module, thereby executing the various function application and data processing of mobile phone.Memory 1020 can be led It to include storing program area and storage data area, wherein storing program area can be needed for storage program area, at least one function Application program (such as sound-playing function, image player function etc.) etc.;Storage data area, which can be stored, uses institute according to mobile phone Data (such as audio data, phone directory etc.) of creation etc..In addition, memory 1020 may include high random access storage Device, can also include nonvolatile memory, and a for example, at least disk memory, flush memory device or other volatibility are solid State memory device.
Input unit 1030 can be used for receiving the number or character information of input, and generate with the user setting of mobile phone with And the related key signals input of function control.Specifically, input unit 1030 may include touch panel 1031 and other inputs Equipment 1032.Touch panel 1031, also referred to as touch screen collect touch operation (such as the user of user on it or nearby Use the behaviour of any suitable object or attachment such as finger, stylus on touch panel 1031 or near touch panel 1031 Make), and corresponding attachment device is driven according to preset formula.Optionally, touch panel 1031 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it It is converted into contact coordinate, then gives processor 1080, and order that processor 1080 is sent can be received and executed.In addition, Touch panel 1031 can be realized using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch surface Plate 1031, input unit 1030 can also include other input equipments 1032.Specifically, other input equipments 1032 may include But in being not limited to physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. It is one or more.
Display unit 1040 can be used for showing information input by user or be supplied to user information and mobile phone it is each Kind menu.Display unit 1040 may include display panel 1041, optionally, can use liquid crystal display (Liquid Crystal Display, LCD), the forms such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) To configure display panel 1041.Further, touch panel 1031 can cover display panel 1041, when touch panel 1031 detects After arriving touch operation on it or nearby, processor 1080 is sent to determine the type of touch event, is followed by subsequent processing device 1080 provide corresponding visual output according to the type of touch event on display panel 1041.Although in Fig. 3, touch panel 1031 and display panel 1041 are the input and input function for realizing mobile phone as two independent components, but in certain realities Apply in example, can be integrated by touch panel 1031 and display panel 1041 and that realizes mobile phone output and input function.
Mobile phone may also include at least one sensor 1050, such as optical sensor, motion sensor and other sensors. Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ambient light Light and shade adjust the brightness of display panel 1041, proximity sensor can close display panel when mobile phone is moved in one's ear 1041 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (generally three axis) and add The size of speed can detect that size and the direction of gravity when static, can be used to identify application (such as the horizontal/vertical screen of mobile phone posture Switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Also as mobile phone The other sensors such as configurable gyroscope, barometer, hygrometer, thermometer, infrared sensor, details are not described herein.
Voicefrequency circuit 1060, loudspeaker 1061, microphone 1062 can provide the audio interface between user and mobile phone.Audio Electric signal after the audio data received conversion can be transferred to loudspeaker 1061, be converted by loudspeaker 1061 by circuit 1060 For voice signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 1062, by voicefrequency circuit 1060 Audio data is converted to after reception, then by after the processing of audio data output processor 1080, through RF circuit 1010 to be sent to ratio Such as another mobile phone, or audio data is exported to memory 1020 to be further processed.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronics postal by WiFi module 1070 Part, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 3 is shown WiFi module 1070, but it is understood that, and it is not belonging to must be configured into for mobile phone, it can according to need do not changing completely Become in the range of the essence of invention and omits.
Processor 1080 is the control centre of mobile phone, using the various pieces of various interfaces and connection whole mobile phone, By running or execute the software program and/or module that are stored in memory 1020, and calls and be stored in memory 1020 Interior data execute the various functions and processing data of mobile phone, to carry out integral monitoring to mobile phone.Optionally, processor 1080 may include one or more processing units;Preferably, processor 1080 can integrate application processor and modulation /demodulation processing Device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is mainly located Reason wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 1080.
Mobile phone further includes the power supply 1090 (such as battery) powered to all parts, it is preferred that power supply can pass through power supply Management system and processor 1080 are logically contiguous, to realize management charging, electric discharge and power consumption pipe by power-supply management system The functions such as reason.
Although being not shown, mobile phone can also include camera, bluetooth module etc., and details are not described herein.
In embodiments of the present invention, processor 1080 included by the mobile terminal is also with the following functions:
End application state in which is obtained under the bright screen state of terminal;
Judge whether the end application state in which meets one of identification-state or a variety of;
If it is not, then killing the end application process.
In an alternative embodiment of the invention, processor 1080 included by the mobile terminal is also with the following functions:
Terminal, which is in, goes out when shielding state, judges whether end application state in which meets preset condition;
If so, judging whether the ratio of total memory and free memory reaches presupposition multiple;
If so, killing the corresponding process of the end application.
The application is both also to propose a kind of device with store function, is stored thereon with computer program, feature exists In when the computer program is executed by processor the step of method described in realization any of the above-described.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit It closes or communicates to connect, can be electrical property, mechanical or other forms.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
Those of ordinary skill in the art will appreciate that implement the method for the above embodiments be can be with Relevant hardware is instructed to complete by program, the program can store in a kind of computer readable storage medium, on Stating the storage medium mentioned can be read-only memory, disk or CD etc..
The above description is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all utilizations Equivalent structure or equivalent flow shift made by description of the invention and accompanying drawing content is applied directly or indirectly in other correlations Technical field, be included within the scope of the present invention.

Claims (10)

1. a kind of method of mobile terminal releasing memory, which is characterized in that the method includes the steps:
When terminal is in bright screen state, end application state in which is obtained;
Judge whether the end application state in which meets one of identification-state or a variety of;
If it is not, then killing the corresponding process of the end application.
2. the method for mobile terminal releasing memory according to claim 1, which is characterized in that the judgement terminal is answered After whether meeting one of identification-state or a variety of steps with program state in which, further includes:
If so, not doing additional operations to the end application.
3. the method for mobile terminal releasing memory according to claim 1, which is characterized in that the end application Identification-state includes: to apply be in foreground, have application widget to show, sound channel is used, holding wake-up lock, navigation Using needing to respond, location updating, using response Binder calling, AMS, actively calling, network are being downloaded or are being uploaded, system takes Business mandatory use can not terminate.
4. a kind of method of mobile terminal releasing memory, which is characterized in that the method includes the steps:
Terminal, which is in, goes out when shielding state, judges whether end application state in which meets preset condition;
If so, judging whether the ratio of total memory and free memory reaches presupposition multiple;
If so, killing the corresponding process of the end application.
5. the method for mobile terminal releasing memory according to claim 4, which is characterized in that the terminal, which is in go out, shields shape When state, before judging the step of whether end application state in which meets preset condition, comprising:
If the end application go out shield before do not have foreground state, window is shown and using among sound channel Any one then kills the corresponding process of the end application.
6. the method for mobile terminal releasing memory according to claim 4, which is characterized in that the terminal, which is in go out, shields shape When state, the step of whether end application state in which meets preset condition judged, comprising:
If the end application state in which be go out shield before in foreground or thering is window to show, judge at the terminal In going out, whether screen reaches preset time.
7. the method for mobile terminal releasing memory according to claim 4, which is characterized in that the terminal, which is in go out, shields shape When state, the step of whether end application state in which meets preset condition judged, comprising:
If the end application state in which be go out shield before in sound channel is used, judge that the terminal is answered Whether reach preset time using sound channel with EP (end of program).
8. a kind of device of mobile terminal releasing memory, which is characterized in that described device includes:
Bright screen acquiring unit when being in bright screen state for terminal, obtains end application state in which;
Bright screen judging unit, for judge the end application state in which whether meet one of identification-state or It is a variety of;
Bright screen end unit, for if it is not, then killing the corresponding process of the end application.
9. a kind of mobile terminal, which is characterized in that including processor and memory,
Shifting described in any one of the device perform claim requirement 1 to 7 of the memory for memory mobile terminal releasing memory The program of the method for dynamic terminal releasing memory;
The processor is configured to for executing the program stored in the memory.
10. a kind of device with store function, is stored thereon with computer program, which is characterized in that the computer program The step of method described in any one of claims 1 to 7 is realized when being executed by processor.
CN201810962860.1A 2018-08-22 2018-08-22 Mobile terminal and mobile terminal releasing memory method, apparatus and storage device Withdrawn CN109254848A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810962860.1A CN109254848A (en) 2018-08-22 2018-08-22 Mobile terminal and mobile terminal releasing memory method, apparatus and storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810962860.1A CN109254848A (en) 2018-08-22 2018-08-22 Mobile terminal and mobile terminal releasing memory method, apparatus and storage device

Publications (1)

Publication Number Publication Date
CN109254848A true CN109254848A (en) 2019-01-22

Family

ID=65049475

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810962860.1A Withdrawn CN109254848A (en) 2018-08-22 2018-08-22 Mobile terminal and mobile terminal releasing memory method, apparatus and storage device

Country Status (1)

Country Link
CN (1) CN109254848A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112904993A (en) * 2021-03-16 2021-06-04 北京小米移动软件有限公司 Screen control method, device and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103164229A (en) * 2013-04-08 2013-06-19 北京奇虎科技有限公司 Method and device for clearing progresses of mobile terminal
KR101418927B1 (en) * 2013-11-05 2014-07-14 주식회사 아이온커뮤니케이션즈 Mobile system for entering for an evnet, which is based on recharging time
CN104298612A (en) * 2014-09-30 2015-01-21 北京金山安全软件有限公司 Method and device for cleaning memory in mobile terminal and mobile terminal
CN105117295A (en) * 2015-09-18 2015-12-02 北京金山安全软件有限公司 Memory resource release method and device and electronic equipment
CN106775809A (en) * 2016-11-15 2017-05-31 北京奇虎科技有限公司 A kind of method of mobile terminal internal memory cleaning, device and mobile terminal
CN106919428A (en) * 2017-03-21 2017-07-04 北京奇虎科技有限公司 Clear up method, device and the mobile terminal of mobile terminal internal memory
CN107168791A (en) * 2017-04-13 2017-09-15 北京安云世纪科技有限公司 Terminal Memory Optimize Method, device and mobile terminal under bright screen state

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103164229A (en) * 2013-04-08 2013-06-19 北京奇虎科技有限公司 Method and device for clearing progresses of mobile terminal
KR101418927B1 (en) * 2013-11-05 2014-07-14 주식회사 아이온커뮤니케이션즈 Mobile system for entering for an evnet, which is based on recharging time
CN104298612A (en) * 2014-09-30 2015-01-21 北京金山安全软件有限公司 Method and device for cleaning memory in mobile terminal and mobile terminal
CN105117295A (en) * 2015-09-18 2015-12-02 北京金山安全软件有限公司 Memory resource release method and device and electronic equipment
CN106775809A (en) * 2016-11-15 2017-05-31 北京奇虎科技有限公司 A kind of method of mobile terminal internal memory cleaning, device and mobile terminal
CN106919428A (en) * 2017-03-21 2017-07-04 北京奇虎科技有限公司 Clear up method, device and the mobile terminal of mobile terminal internal memory
CN107168791A (en) * 2017-04-13 2017-09-15 北京安云世纪科技有限公司 Terminal Memory Optimize Method, device and mobile terminal under bright screen state

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112904993A (en) * 2021-03-16 2021-06-04 北京小米移动软件有限公司 Screen control method, device and storage medium

Similar Documents

Publication Publication Date Title
CN103500002B (en) The method of application program management, device and terminal unit
CN106648865A (en) Intelligent terminal, game operating environment optimizing method and system
CN109241765A (en) Mobile terminal and the right management method of application program, device
CN104093123B (en) The information-pushing method of application program, device and system, mobile terminal
CN103473092B (en) A kind of download the processing method of application, device and terminal unit
CN106200970B (en) The method and terminal of a kind of split screen display available
CN104077184B (en) A kind of course control method and computer system of application program
CN108549519A (en) split screen processing method, device, storage medium and electronic equipment
CN106775828A (en) Application program installation method and device, computer equipment
CN106303004A (en) The way of recording, device and mobile terminal under screen lock state
CN108762814A (en) Bright screen method and relevant device
CN109669662A (en) A kind of pronunciation inputting method, device, storage medium and mobile terminal
CN109284186A (en) Mobile terminal and its method and apparatus for detecting frame rate adjustment mobile terminal performance
CN109245195A (en) The method, apparatus and storage device of mobile terminal and charging process
CN108052391A (en) Memory Optimize Method, mobile terminal and readable storage medium storing program for executing based on thread deadlock
CN109151942A (en) A kind of network insertion switching method, device and mobile terminal
CN107247617A (en) The concocting method of resources of virtual machine, platform on probation and readable storage medium storing program for executing
CN106302101B (en) Message reminding method, terminal and server
CN108989561A (en) The method, apparatus of mobile terminal and starting screen
CN104423990B (en) A kind of update method and device of magnet
CN109062643A (en) A kind of display interface method of adjustment, device and terminal
CN107770449A (en) continuous shooting method, electronic equipment and storage medium
CN109286571A (en) The method, apparatus and storage device of mobile terminal and application program limit core and limit net
CN109254848A (en) Mobile terminal and mobile terminal releasing memory method, apparatus and storage device
CN109101328A (en) The method, apparatus of mobile terminal and application program running background

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20190122

WW01 Invention patent application withdrawn after publication