CN106294209B - A kind of information processing method and electronic equipment - Google Patents

A kind of information processing method and electronic equipment Download PDF

Info

Publication number
CN106294209B
CN106294209B CN201510324051.4A CN201510324051A CN106294209B CN 106294209 B CN106294209 B CN 106294209B CN 201510324051 A CN201510324051 A CN 201510324051A CN 106294209 B CN106294209 B CN 106294209B
Authority
CN
China
Prior art keywords
instruction
application program
cache contents
electronic equipment
operating status
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
CN201510324051.4A
Other languages
Chinese (zh)
Other versions
CN106294209A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201510324051.4A priority Critical patent/CN106294209B/en
Publication of CN106294209A publication Critical patent/CN106294209A/en
Application granted granted Critical
Publication of CN106294209B publication Critical patent/CN106294209B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a kind of information processing method and electronic equipments, the described method includes: obtaining the first instruction, wherein, first instruction is for being switched to second operating status different from first operating status by the first operating status for the current operating conditions of electronic equipment;Based on first instruction, second instruction different from first instruction is generated;Execute second instruction, wherein first cache contents of second instruction for removing in the first memory headroom in the electronic equipment, first cache contents are specially the content being stored in first memory headroom by duplication operation.When being related to privacy or security information for solving the content in shear plate in the prior art, can there is technical issues that be easy to cause privacy or, also increase the technical effect of memory headroom while realizing the safety for improving information.

Description

A kind of information processing method and electronic equipment
Technical field
The present invention relates to electronic technology field, in particular to a kind of information processing method and electronic equipment.
Background technique
With the development of science and technology, by electronic equipment transmitting and shared information at possible.
During information exchange, when user shears or replicates the objects such as certain texts, picture, video, electronics Equipment is just by corresponding information preservation in shear plate, wherein shear plate is can to change with the size of storage information Memory headroom.
When the information stored in shear plate is removed not in time, on the one hand, the personal information for being easy leakage user is (such as hidden Personal letter breath, account etc..);On the other hand, in one timing of memory memory capacity, when the information being stored in shear plate occupies Larger memory headroom certainly will cause memory size low in energy consumption.For this purpose, removing or restarting electricity in the prior art or using manual Sub- equipment.
In addition, any application program is if it is intended to operate normally, requiring first will be with the application program in electronic equipment Corresponding program and data, which are called in memory, to be run.In the timing of memory memory capacity one, if the document opened simultaneously it is excessive or The program of person's operation is excessive, just runs other programs without enough memory headrooms, will largely reduce electronic equipment Service performance.The document and program opened are screened accordingly manually for this purpose, generally requiring user in the prior art It closes.
Present inventor during technical solution, has found the above-mentioned prior art at least in invention the embodiment of the present application It has the following technical problems:
When content in shear plate in the prior art is related to privacy or security information, can exist be easy to cause privacy or The technical issues of security information leakage.
Summary of the invention
The embodiment of the present invention provides a kind of information processing method and electronic equipment, for solving shear plate in the prior art In content when being related to privacy or security information, can there is technical issues that be easy to cause privacy or, it is real The technical effect of memory headroom is also increased while having showed the safety for improving information.
One, the embodiment of the present application provides a kind of information processing method, comprising:
Obtain the first instruction, wherein first instruction is for running the current operating conditions of electronic equipment by first State switches to second operating status different from first operating status;
Based on first instruction, second instruction different from first instruction is generated;
Execute second instruction, wherein second instruction is for removing the sky of the first memory in the electronic equipment Between in the first cache contents, first cache contents are specially to be stored in first memory headroom by duplication operation Content.
Optionally, described to obtain the first instruction, it specifically includes:
Detected screen locking operation is responded, generates screen locking instruction, the screen locking instruction is for by the electronic equipment Current operating conditions are adjusted to screen lock state from non-locking screen state;Or
Detection obtains the electronic equipment and is in not by the first duration of touch-control state;It is equal in the duration When the first preset duration, screen locking instruction is generated.
Optionally, described to obtain the first instruction, it specifically includes:
At the first moment, when first cache contents are buffered to first memory headroom, and out of described first When depositing space reading first cache contents so that the first application program is written in first cache contents, described first is determined The current operating conditions of application program need to be adjusted to background operation state from foreground operating status, wherein first caching The content in the first file that content is opened specifically by first application program;
After the current operating conditions of first application program are adjusted to the background operation state, first is generated Stop instruction.
Optionally, the current operating conditions in first application program are adjusted to the background operation state Afterwards, the instruction of the first stop is generated, is specifically included:
Obtain the second duration that first application program is in the background operation state;
When second duration is equal to the second preset duration, generate for by first closing application program The first stop instruction.
Optionally, described to obtain the first instruction, it specifically includes:
At the first moment, when first cache contents are buffered to first memory headroom, and out of described first When depositing space reading first cache contents and the second application program is written, the current operation of second application program is determined State needs from foreground operating status to be adjusted to background operation state, wherein first cache contents specifically by with institute State the content in the first file that the first different application program of the second application program is opened;
When the current operating conditions of second application program are adjusted to the background operation state, generation is used for Close the second stop instruction of second application program.
Two, the embodiment of the present application also provides a kind of electronic equipment, comprising:
Shell;
Processor is arranged in the shell;Wherein, the processor is specifically used for:
Obtain first instruction, wherein it is described first instruction for by the current operating conditions of the electronic equipment by first Operating status switches to second operating status different from first operating status;
Based on first instruction, second instruction different from first instruction is generated;
Execute second instruction, wherein second instruction is for removing the sky of the first memory in the electronic equipment Between in the first cache contents, first cache contents are specially to be stored in first memory headroom by duplication operation Content.
Optionally, the processor is specifically used for:
Detected screen locking operation is responded, generates screen locking instruction, the screen locking instruction is for by the electronic equipment Current operating conditions are adjusted to screen lock state from non-locking screen state;Or
Detection obtains the electronic equipment and is in not by the first duration of touch-control state;It is equal in the duration When the first preset duration, screen locking instruction is generated.
Optionally, the processor is specifically used for:
At the first moment, when first cache contents are buffered to first memory headroom, and out of described first When depositing space reading first cache contents so that the first application program is written in first cache contents, described first is determined The current operating conditions of application program need to be adjusted to background operation state from foreground operating status, wherein first caching The content in the first file that content is opened specifically by first application program;
After the current operating conditions of first application program are adjusted to the background operation state, first is generated Stop instruction.
Optionally, the processor is specifically used for:
Obtain the second duration that first application program is in the background operation state;
When second duration is equal to the second preset duration, generate for by first closing application program The first stop instruction.
Optionally, the processor is specifically used for:
At the first moment, when first cache contents are buffered to first memory headroom, and out of described first When depositing space reading first cache contents and the second application program is written, the current operation of second application program is determined State needs from foreground operating status to be adjusted to background operation state, wherein first cache contents specifically by with institute State the content in the first file that the first different application program of the second application program is opened;
When the current operating conditions of second application program are adjusted to the background operation state, generation is used for Close the second stop instruction of second application program.
Three, the embodiment of the present application also provides a kind of electronic equipment, comprising:
First obtains unit, for obtaining the first instruction, wherein first instruction is for working as the electronic equipment Preceding operating status is switched to second operating status different from first operating status by the first operating status;
First generation unit generates second instruction different from first instruction based on first instruction;First holds Row unit, for executing second instruction, wherein second instruction is for removing the first memory in the electronic equipment The first cache contents in space, first cache contents are specially to be stored in first memory headroom by duplication operation Content.
Said one or multiple technical solutions in the embodiment of the present application at least have following one or more technology effects Fruit:
Due in the technical solution of the embodiment of the present application, using obtaining for by the current operation of the electronic equipment State is switched to the first instruction of second operating status different from first operating status by the first operating status, and is based on First instruction generates second instruction different from first instruction;Then, second instruction is executed, wherein described Second instruction is for removing the first cache contents in the first memory headroom in the electronic equipment, first caching Content is specially the content being stored in first memory headroom by duplication operation.That is, being run based on electronic equipment Instruction when state switches is directly generated for being removed the cache contents in shear plate in time, so, effectively solve When the content in shear plate in the prior art of having determined is related to privacy or security information, can exist and be easy to cause privacy or safety The technical issues of leakage of information, also increases the technical effect of memory headroom while realizing the safety for improving information.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, will be described below to embodiment Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some Embodiment.
Fig. 1 is a kind of flow chart for information processing method that the embodiment of the present application one provides;
Fig. 2 is the method and step flow chart of the step S102 for information processing method that the embodiment of the present application one provides a kind of;
Fig. 3 is the method and step flow chart of the step S202 for information processing method that the embodiment of the present application one provides a kind of;
Fig. 4 is the structural block diagram for a kind of electronic equipment that the embodiment of the present application two provides;
Fig. 5 is the structural block diagram for a kind of electronic equipment that the embodiment of the present application three provides.
Specific embodiment
The embodiment of the present invention provides a kind of information processing method and electronic equipment, for solving shear plate in the prior art In content when being related to privacy or security information, can there is technical issues that be easy to cause privacy or, it is real The technical effect of memory headroom is also increased while having showed the safety for improving information.
In order to solve the above technical problems, general thought is as follows for technical solution in the embodiment of the present application:
Obtain the first instruction, wherein first instruction is for running the current operating conditions of electronic equipment by first State switches to second operating status different from first operating status;
Based on first instruction, second instruction different from first instruction is generated;
Execute second instruction, wherein second instruction is for removing the sky of the first memory in the electronic equipment Between in the first cache contents, first cache contents are specially to be stored in first memory headroom by duplication operation Content.
Due in the technical solution of the embodiment of the present application, using obtaining for by the current operation of the electronic equipment State is switched to the first instruction of second operating status different from first operating status by the first operating status, and is based on First instruction generates second instruction different from first instruction;Then, second instruction is executed, wherein described Second instruction is for removing the first cache contents in the first memory headroom in the electronic equipment, first caching Content is specially the content being stored in first memory headroom by duplication operation.That is, being run based on electronic equipment Instruction when state switches is directly generated for being removed the cache contents in shear plate in time, so, effectively solve When the content in shear plate in the prior art of having determined is related to privacy or security information, can exist and be easy to cause privacy or safety The technical issues of leakage of information, also increases the technical effect of memory headroom while realizing the safety for improving information.
In order to better understand the above technical scheme, below by attached drawing and specific embodiment to technical solution of the present invention It is described in detail, it should be understood that the specific features in the embodiment of the present application and embodiment are to the detailed of technical solution of the present invention Thin explanation, rather than the restriction to technical solution of the present invention, in the absence of conflict, the embodiment of the present application and embodiment In technical characteristic can be combined with each other.
Embodiment one
Referring to FIG. 1, a kind of information processing method provided by the embodiments of the present application, comprising:
S101: obtain first instruction, wherein it is described first instruction for by the current operating conditions of electronic equipment by first Operating status switches to second operating status different from first operating status;
S102: based on first instruction, second instruction different from first instruction is generated;
S103: second instruction is executed, wherein second instruction is for removing in first in the electronic equipment The first cache contents in space are deposited, first cache contents are specially to be stored in first memory headroom by duplication operation In content.
In the embodiment of the present application, the electronic equipment be specifically as follows smart phone, tablet computer, laptop, Desktop computer, etc. just different one schematically illustrates herein.
In the specific implementation process, step S101 to step S103's the specific implementation process is as follows:
It is obtained first for switching to the current operating conditions of electronic equipment and first fortune by the first operating status First instruction of the second different operating status of row state.In the embodiment of the present application, the current operation shape of the electronic equipment State can be the system running state of the electronic equipment, be also possible to application state.The current operation shape of the electronic equipment The case where state switches to the second operating status by the first operating status, specifically, before and after can be the electronic equipment screen locking, The switching of the system mode of the electronic equipment is also possible to before and after the electronic equipment switching user mode, and the electronics is set The switching of standby system mode, after can also be that a certain application program in the electronic equipment is switched to by front stage operation state The front and back of platform operating status, the change of application program running state.Secondly, being generated and described first based on first instruction Different second are instructed to instruct.For example, first instruction obtained is that screen locking instructs, when the display screen of the electronic equipment When switching to screen lock state by normal display state, is generated based on screen locking instruction and instruct different described second to refer to from screen locking It enables.Then, second instruction is executed, wherein second instruction is for removing the sky of the first memory in the electronic equipment Between in the first cache contents, first cache contents are specially to be stored in first memory headroom by duplication operation Content.Continue so that first instruction obtained is screen locking instruction as an example, it is described when the display screen of the electronic equipment is by just After normal display state switches to screen lock state, first in the first memory headroom being stored in the electronic equipment is delayed in generation Deposit the clearance order that content is purged.Specifically, first cache contents can be in the electronic equipment shear plate Content, can also be that application program loads the cache file in the electronic equipment memory in the process of running, for this For the those of ordinary skill in field, it can also come to carry out phase to the cache contents in the electronic equipment in memory as needed The removing answered, does not just illustrate one by one herein.
In the embodiment of the present application, step S101: the first instruction is obtained, is specifically included:
Step A: responding detected screen locking operation, generates screen locking instruction, and the screen locking instruction is for by the electronics The current operating conditions of equipment are adjusted to screen lock state from non-locking screen state;Or
Step B: detection obtains the electronic equipment and is in not by the first duration of touch-control state;In described continue When length is equal to the first preset duration, screen locking instruction is generated.
In the specific implementation process, pass through step S101: obtaining first instruction, there are mainly two types of realization side Formula, but it is not limited only to following two implementation.
The first implementation
The first implementation is specially to respond detected screen locking operation, generates screen locking instruction, the screen locking instruction For the current operating conditions of the electronic equipment to be adjusted to screen lock state from non-locking screen state;Specifically, at the first First instruction in implementation is specially screen locking instruction, is primarily directed to carry out the feelings of screen locking by user's operation Condition.For giving a concrete illustration, user A is during using tablet computer viewing e-book, because of interim busy needs Pause is read, but if tablet computer is constantly in the power consumption that open state will undoubtedly cause tablet computer, but user A both thought In the next use without being again turned on application program corresponding to the e-book when tablet computer, that is to say, that flat opening Plate computer continues to read the remaining process of the e-book when in running order by tablet computer at the first time, and wants to be unlikely to white White to slattern power consumption when tablet computer is constantly in open state larger, at this point, user can be put down this by being manually operated Plate computer carries out screen locking, for example, user can by the touch control operation of a screen locking key or the touch screen of tablet computer one The shortcut key of screen locking operation is manually selected and carried out to tablet computer for user.Certainly, for the ordinary skill of this field For personnel, can also be other can control the behaviour that the electronic equipment is in screen lock state by user's manual operation Make, just different one schematically illustrates herein.It is raw after detection, which obtains the screen locking that user carries out manually, to be operated and respond screen locking operation It is instructed at screen locking, which instructs for the current operating conditions of the electronic equipment to be adjusted to screen locking shape from non-locking screen state State, specifically, the screen locking are instructed for the display screen of the electronic equipment to be adjusted to screen locking shape by normal display state State.
Second of implementation
Second of implementation is specially to detect to obtain the electronic equipment in when not continued by the first of touch-control state It is long;When the duration is equal to the first preset duration, screen locking instruction is generated.Specifically, in the second implementation It is described first instruction be specially screen locking instruction, be primarily directed to the case where locking screen automatically.Still plate is being used with user A Computer is watched for the process of e-book, as user because being temporarily in a hurry, has not enough time to carry out any processing to tablet computer, In order to reduce the power consumption of tablet computer, those skilled in the art often can be by setting a scheduled duration, when super It crosses after the preset duration and user is still not detected in any operation on tablet computer, control the display screen of the electronic equipment Curtain switches to non-display state of the screen locking under this by normal display state automatically.Certainly, for those of ordinary skill in the art For, it can also come design other implementations for obtaining screen lockings instruction accordingly as needed, herein just not specifically It is illustrated.
In the embodiment of the present application, first instruction can also be that application program is closed other than it can be screen locking instruction Close instruction.Specifically, when the partial content sheared or replicated from application program is buffered to first memory headroom When, and corresponding first cache contents of the contents of the section are in armed state, such as the state of application program to be written. At this point, referring to FIG. 2, step S101: the first instruction is obtained, is specifically included:
S201: at the first moment, when first cache contents are buffered to first memory headroom, and from described When one memory headroom reads first cache contents so that the first application program is written in first cache contents, described in determination The current operating conditions of first application program need to be adjusted to background operation state from foreground operating status, wherein described first The content in the first file that cache contents are opened specifically by first application program;
S202: raw after the current operating conditions of first application program are adjusted to the background operation state It is instructed at the first stop.
In the specific implementation process, step S201 to step S202's the specific implementation process is as follows:
Firstly, be buffered to first memory headroom when first cache contents, and from first memory headroom When reading first cache contents with by the first moment of first cache contents the first application program of write-in, for example, working as First memory headroom is specially memory headroom corresponding to shear plate, and reads to be pasted from the shear plate Content, so that this partial content read to be written in the first application program, at this point, the content that user shears or replicates It is buffered to first memory headroom, also first cache contents read from first memory headroom is not carried out When any write operation, then determine that the current operating conditions of first application program need to adjust from foreground operating status For background operation state, wherein the first file that first cache contents are opened specifically by first application program In content.That is, the content sheared or replicated from the first file in first application program is described the One cache file, and need to paste the contents of the section in other files in first application program or described When at the other positions of the first file, it is, of course, also possible to be to need to affix to the contents of the section from described first using different The second application program when, after determining whether the current operating conditions of first application program are adjusted to from foreground operating status Platform operating status.Secondly, needing to be adjusted to from foreground operating status in the current operating conditions for determining first application program After background operation state, the instruction of the first stop is generated.
For giving a concrete illustration, when first application program is WORD program, one is opened when passing through WORD program When document, a part of content in document is replicated or sheared, on the another location that is pasted onto the WORD document, this When memory in shear plate be just stored with the contents of the section.When detect WORD program from foreground combustion adjustment be running background, At this point, the WORD program of the electronic equipment is that front stage operation state is adjusted to background operation state by current operating conditions, Then, the instruction of the first stop is generated.
In the embodiment of the present application, referring to FIG. 3, step S202: in the current operation of first application program After state is adjusted to the background operation state, the instruction of the first stop is generated, is specifically included:
S301: the second duration that first application program is in the background operation state is obtained;
S302: it when second duration is equal to the second preset duration, generates and is used for first application program First stop instruction closed.
In the specific implementation process, step S301 to step S302's the specific implementation process is as follows:
In order to avoid maloperation of user during using the electronic equipment to the electronic equipment, for example, with Family accidentally triggers the maloperation that screen locking is carried out to the electronic equipment during seeing screen using electronic equipment, due to Maloperation makes the current operating conditions of first application program in the electronic equipment be adjusted to the backstage fortune Row state, at this moment if the caching for the cache file will be played in the electronic equipment being stored in first memory headroom If file is disposed, it not can guarantee user and continue to watch the video within first time.For this purpose, the skill of the embodiment of the present application Art scheme, the second duration for be in the background operation state by obtaining first application program are based on described the Two durations are generated when second duration is equal to the second preset duration for closing first application program First stop instruction closed.That is, when first application program has front stage operation state to be adjusted to backstage Operating status, and when maintaining duration used in background operation state equal to a preset duration, it just generates and is used for described first The stop of closing application program instructs.For giving a concrete illustration, a length of 10min when described second makes in user B A film video and the mobile phone are watched with current video pictures screen locking, as detection mobile phone 10min from the screen locking moment with mobile phone When, show that user does not carry out any operation to mobile phone always, the program for closing the film video can be generated at this time Out code.Certainly, for those of ordinary skill in the art, can specifically be designed according to the use habit of user Second preset duration, is just not explained in detail herein.
In the embodiment of the present application, first instruction can also be that application program is closed other than it can be screen locking instruction Close instruction.Specifically, when the partial content sheared or replicated from application program is buffered to first memory headroom When, and corresponding first cache contents of the contents of the section have been written into other application programs (at least one application program) In, it is raw when the current operating conditions for determining other application programs are adjusted to background operation state from foreground operating status At for by the instruction of corresponding closing application program.For giving a concrete illustration, opened by WORD program one A part of content in WORD document, and the contents of the section is replicated or is clipped in the message box that wechat to be sent, when It determines that wechat is adjusted to background operation state from foreground operating status, and is greater than a preset duration in the time of running background, Such as 5min, the out code for closing this application program of wechat is generated at this time.Certainly, for the ordinary skill of this field For personnel, it can also design as needed other for first cache contents in first memory headroom The implementation being purged, and be only with two application programs in the embodiment of the present application to the technology of the embodiment of the present application The explanation of progress applies also for the case where multiple application program running states switch and then generate stop instruction certainly, than Such as, other than detecting wechat and meeting the preset duration of 5min, the Tencent QQ for being pasted with the contents of the section, Alipay are also detected When etc. the preset duration for meeting 5min, stop instruction also can be generated.In the case of other, a just different citing herein .
In addition, in the embodiment of the present application, second instruction either generated based on screen locking instruction, or it is based on journey Second instruction that sequence out code generates, is all the operation that the electronic equipment utilized can all execute anyway, than If screen locking operates, the operation that the operating statuses such as handover operation of application program front and back operating status switch over, and then save Design cost, improves user experience.Moreover, in the embodiment of the present application, the stop that no matter generates in the case of which kind of Instruction can be generated based on the instruction for removing described first in first memory headroom in the electronic equipment Cache contents just do not repeat one by one herein.
Embodiment two
Based on inventive concept identical with the embodiment of the present application one, referring to FIG. 4, the embodiment of the present application two additionally provides one Kind electronic equipment, comprising:
Shell 40;
Processor 41 is arranged in shell 40;Wherein, processor 41 is specifically used for:
Obtain first instruction, wherein it is described first instruction for by the current operating conditions of the electronic equipment by first Operating status switches to second operating status different from first operating status;
Based on first instruction, second instruction different from first instruction is generated;
Execute second instruction, wherein second instruction is for removing the sky of the first memory in the electronic equipment Between in the first cache contents, first cache contents are specially to be stored in first memory headroom by duplication operation Content.
In the embodiment of the present application, processor 41 is specifically used for:
Detected screen locking operation is responded, generates screen locking instruction, the screen locking instruction is for by the electronic equipment Current operating conditions are adjusted to screen lock state from non-locking screen state;Or
Detection obtains the electronic equipment and is in not by the first duration of touch-control state;It is equal in the duration When the first preset duration, screen locking instruction is generated.
In the embodiment of the present application, processor 41 is specifically used for:
At the first moment, when first cache contents are buffered to first memory headroom, and out of described first When depositing space reading first cache contents so that the first application program is written in first cache contents, described first is determined The current operating conditions of application program need to be adjusted to background operation state from foreground operating status, wherein first caching The content in the first file that content is opened specifically by first application program;
After the current operating conditions of first application program are adjusted to the background operation state, first is generated Stop instruction.
In the embodiment of the present application, processor 41 is specifically used for:
Obtain the second duration that first application program is in the background operation state;
When second duration is equal to the second preset duration, generate for by first closing application program The first stop instruction.
In the embodiment of the present application, processor 41 is specifically used for:
At the first moment, when first cache contents are buffered to first memory headroom, and out of described first When depositing space reading first cache contents and the second application program is written, the current operation of second application program is determined State needs from foreground operating status to be adjusted to background operation state, wherein first cache contents specifically by with institute State the content in the first file that the first different application program of the second application program is opened;
When the current operating conditions of second application program are adjusted to the background operation state, generation is used for Close the second stop instruction of second application program.
Embodiment three
Based on inventive concept identical with the embodiment of the present application one, referring to FIG. 5, the embodiment of the present application three additionally provides one Kind electronic equipment, comprising:
First obtains unit 50, for obtaining the first instruction, wherein first instruction is for by the electronic equipment Current operating conditions are switched to second operating status different from first operating status by the first operating status;
First generation unit 51 generates second instruction different from first instruction based on first instruction;
First execution unit 52, for executing second instruction, wherein second instruction is for removing the electronics The first cache contents in the first memory headroom in equipment, first cache contents are specially by duplication operation deposit institute State the content in the first memory headroom.
In the embodiment of the present application, first instruction, which can be screen locking instruction, can also be that stop instructs, certainly It is not limited in both instructions, there can also be other instructions, just not repeat one by one herein.It is the in first instruction When a form of instruction, first obtains unit 50 is specifically included:
Manual screen locking unit generates screen locking instruction, the screen locking instruction is used for for responding detected screen locking operation The current operating conditions of the electronic equipment are adjusted to screen lock state from non-locking screen state;Or
Unit is locked screen automatically, obtains the electronic equipment in not by the first duration of touch-control state for detecting; When the duration is equal to the first preset duration, screen locking instruction is generated.
In the embodiment of the present application, when first instruction is the instruction of second of form, and specially process control It instructs and in the case of the first when the instruction of acquisition stop, first obtains unit 50 specifically includes:
First determining module, at the first moment, when first cache contents are buffered to first memory headroom, and When reading first cache contents from first memory headroom the first application program is written in first cache contents, For determining that the current operating conditions of first application program need to be adjusted to background operation state from foreground operating status, In, the content in the first file that first cache contents are opened specifically by first application program;
First generation module is adjusted to the running background shape in the current operating conditions of first application program After state, for generating the instruction of the first stop.
In the embodiment of the present application, first generation module specifically includes:
First obtains submodule, be in the second lasting of the background operation state for obtaining first application program Duration;
First generates submodule, when second duration is equal to the second preset duration, for generating for by institute State first stop instruction of the first closing application program.
In the embodiment of the present application, when first instruction is the instruction of second of form, and specially process control It instructs and in the case of the first when the instruction of acquisition stop, first obtains unit 50 specifically includes:
Second determining module, at the first moment, when first cache contents are buffered to first memory headroom, and When reading first cache contents from first memory headroom and the second application program is written, for determining that described second answers It is needed to be adjusted to background operation state from foreground operating status with the current operating conditions of program, wherein in first caching Hold the content in the first file opened specifically by the first application program different from second application program;
Second generation module is adjusted to the running background shape in the current operating conditions of second application program When state, for generating the second stop instruction for closing second application program.
By one or more technical solutions in the embodiment of the present application, following one or more technology effects may be implemented Fruit:
Due in the technical solution of the embodiment of the present application, using obtaining for by the current operation of the electronic equipment State is switched to the first instruction of second operating status different from first operating status by the first operating status, and is based on First instruction generates second instruction different from first instruction;Then, second instruction is executed, wherein described Second instruction is for removing the first cache contents in the first memory headroom in the electronic equipment, first caching Content is specially the content being stored in first memory headroom by duplication operation.That is, being run based on electronic equipment Instruction when state switches is directly generated for being removed the cache contents in shear plate in time, so, effectively solve When the content in shear plate in the prior art of having determined is related to privacy or security information, can exist and be easy to cause privacy or safety The technical issues of leakage of information, also increases the technical effect of memory headroom while realizing the safety for improving information.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Specifically, the corresponding computer program instructions of information processing method in the embodiment of the present application can be stored in CD, hard disk, on the storage mediums such as USB flash disk, when the computer program instructions quilt corresponding with information processing method in storage medium One electronic equipment reads or is performed, and includes the following steps:
Obtain the first instruction, wherein first instruction is for running the current operating conditions of electronic equipment by first State switches to second operating status different from first operating status;
Based on first instruction, second instruction different from first instruction is generated;
Execute second instruction, wherein second instruction is for removing the sky of the first memory in the electronic equipment Between in the first cache contents, first cache contents are specially to be stored in first memory headroom by duplication operation Content.
Optionally, store in the storage medium and step, described to obtain the first instruction, corresponding computer instruction exists When execution, specifically include:
Detected screen locking operation is responded, generates screen locking instruction, the screen locking instruction is for by the electronic equipment Current operating conditions are adjusted to screen lock state from non-locking screen state;Or
Detection obtains the electronic equipment and is in not by the first duration of touch-control state;It is equal in the duration When the first preset duration, screen locking instruction is generated.
Optionally, store in the storage medium and step, described to obtain the first instruction, corresponding computer instruction exists When execution, specifically include:
At the first moment, when first cache contents are buffered to first memory headroom, and out of described first When depositing space reading first cache contents so that the first application program is written in first cache contents, described first is determined The current operating conditions of application program need to be adjusted to background operation state from foreground operating status, wherein first caching The content in the first file that content is opened specifically by first application program;
After the current operating conditions of first application program are adjusted to the background operation state, first is generated Stop instruction.
Optionally, stored in the storage medium and step, the current fortune in first application program After row state is adjusted to the background operation state, generate the first stop instruction, corresponding computer instruction when being executed, It specifically includes:
Obtain the second duration that first application program is in the background operation state;
When second duration is equal to the second preset duration, generate for by first closing application program The first stop instruction.
Optionally, store in the storage medium and step, described to obtain the first instruction, corresponding computer instruction exists When execution, specifically include:
At the first moment, when first cache contents are buffered to first memory headroom, and out of described first When depositing space reading first cache contents and the second application program is written, the current operation of second application program is determined State needs from foreground operating status to be adjusted to background operation state, wherein first cache contents specifically by with institute State the content in the first file that the first different application program of the second application program is opened;
When the current operating conditions of second application program are adjusted to the background operation state, generation is used for Close the second stop instruction of second application program.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (7)

1. a kind of information processing method, comprising:
Obtain first instruction, wherein it is described first instruction for by the current operating conditions of electronic equipment by the first operating status Switch to second operating status different from first operating status;
Based on first instruction, second instruction different from first instruction is generated;
Execute second instruction, wherein second instruction is for removing in the first memory headroom in the electronic equipment The first cache contents, first cache contents be specially be stored in by duplication operation it is interior in first memory headroom Hold;Wherein,
It is described to obtain the first instruction, specifically include following at least one:
At the first moment, when first cache contents are buffered to first memory headroom, and it is empty from first memory Between read first cache contents with by first cache contents be written the first application program when, determine it is described first application The current operating conditions of program need to be adjusted to background operation state from foreground operating status, wherein first cache contents The content in the first file opened specifically by first application program;
After the current operating conditions of first application program are adjusted to the background operation state, the first program is generated Out code;Or,
At the first moment, when first cache contents are buffered to first memory headroom, and it is empty from first memory Between read first cache contents and be written the second application program when, determine the current operating conditions of second application program It needs to be adjusted to background operation state from foreground operating status, wherein first cache contents are specifically by with described The content in the first file that the first different application program of two application programs is opened;
When the current operating conditions of second application program are adjusted to the background operation state, generate for closing Second stop of second application program instructs.
2. the method as described in claim 1, which is characterized in that it is described to obtain the first instruction, it specifically includes:
Detected screen locking operation is responded, generates screen locking instruction, the screen locking instruction is for by the current of the electronic equipment Operating status is adjusted to screen lock state from non-locking screen state;Or
Detection obtains the electronic equipment and is in not by the first duration of touch-control state;It is equal to first in the duration When preset duration, screen locking instruction is generated.
3. the method as described in claim 1, which is characterized in that the current operation shape in first application program After state is adjusted to the background operation state, the instruction of the first stop is generated, is specifically included:
Obtain the second duration that first application program is in the background operation state;
When second duration is equal to the second preset duration, generate for will be described in first closing application program The instruction of first stop.
4. a kind of electronic equipment, comprising:
Shell;
Processor is arranged in the shell;Wherein, the processor is specifically used for:
Obtain the first instruction, wherein first instruction is for running the current operating conditions of the electronic equipment by first State switches to second operating status different from first operating status;
Based on first instruction, second instruction different from first instruction is generated;
Execute second instruction, wherein second instruction is for removing in the first memory headroom in the electronic equipment The first cache contents, first cache contents be specially be stored in by duplication operation it is interior in first memory headroom Hold;Wherein,
The processor is specifically used for following at least one:
At the first moment, when first cache contents are buffered to first memory headroom, and it is empty from first memory Between read first cache contents with by first cache contents be written the first application program when, determine it is described first application The current operating conditions of program need to be adjusted to background operation state from foreground operating status, wherein first cache contents The content in the first file opened specifically by first application program;
After the current operating conditions of first application program are adjusted to the background operation state, the first program is generated Out code;Or,
At the first moment, when first cache contents are buffered to first memory headroom, and it is empty from first memory Between read first cache contents and be written the second application program when, determine the current operating conditions of second application program It needs to be adjusted to background operation state from foreground operating status, wherein first cache contents are specifically by with described The content in the first file that the first different application program of two application programs is opened;
When the current operating conditions of second application program are adjusted to the background operation state, generate for closing Second stop of second application program instructs.
5. electronic equipment as claimed in claim 4, which is characterized in that the processor is specifically used for:
Detected screen locking operation is responded, generates screen locking instruction, the screen locking instruction is for by the current of the electronic equipment Operating status is adjusted to screen lock state from non-locking screen state;Or
Detection obtains the electronic equipment and is in not by the first duration of touch-control state;It is equal to first in the duration When preset duration, screen locking instruction is generated.
6. electronic equipment as claimed in claim 4, which is characterized in that the processor is specifically used for:
Obtain the second duration that first application program is in the background operation state;
When second duration is equal to the second preset duration, generate for will be described in first closing application program The instruction of first stop.
7. a kind of electronic equipment, comprising:
First obtains unit, for obtaining the first instruction, wherein first instruction is for by the current fortune of the electronic equipment Row state is switched to second operating status different from first operating status by the first operating status;
First generation unit generates second instruction different from first instruction based on first instruction;
First execution unit, for executing second instruction, wherein second instruction is for removing in the electronic equipment The first memory headroom in the first cache contents, first cache contents be specially by duplication operation deposit described first Content in memory headroom;Wherein,
It is described to obtain the first instruction, specifically include following at least one:
At the first moment, when first cache contents are buffered to first memory headroom, and it is empty from first memory Between read first cache contents with by first cache contents be written the first application program when, determine it is described first application The current operating conditions of program need to be adjusted to background operation state from foreground operating status, wherein first cache contents The content in the first file opened specifically by first application program;
After the current operating conditions of first application program are adjusted to the background operation state, the first program is generated Out code;Or,
At the first moment, when first cache contents are buffered to first memory headroom, and it is empty from first memory Between read first cache contents and be written the second application program when, determine the current operating conditions of second application program It needs to be adjusted to background operation state from foreground operating status, wherein first cache contents are specifically by with described The content in the first file that the first different application program of two application programs is opened;
When the current operating conditions of second application program are adjusted to the background operation state, generate for closing Second stop of second application program instructs.
CN201510324051.4A 2015-06-12 2015-06-12 A kind of information processing method and electronic equipment Active CN106294209B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510324051.4A CN106294209B (en) 2015-06-12 2015-06-12 A kind of information processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510324051.4A CN106294209B (en) 2015-06-12 2015-06-12 A kind of information processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN106294209A CN106294209A (en) 2017-01-04
CN106294209B true CN106294209B (en) 2019-10-29

Family

ID=57650016

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510324051.4A Active CN106294209B (en) 2015-06-12 2015-06-12 A kind of information processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN106294209B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107370873A (en) * 2017-06-19 2017-11-21 北京珠穆朗玛移动通信有限公司 Using management-control method, mobile terminal and storage medium
CN107330994B (en) * 2017-06-30 2019-11-26 联想(北京)有限公司 The switching moment acquisition methods and electronic equipment of operating status
CN110417638B (en) * 2019-06-10 2021-10-26 腾讯科技(深圳)有限公司 Communication data processing method and device, storage medium and electronic device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1432159A (en) * 2000-06-01 2003-07-23 Safa软体株式会社 Total system for preventing information outflow from inside
CN1735870A (en) * 2003-01-20 2006-02-15 富士通株式会社 Copy preventing apparatus, duplicate the method for preventing and make computing machine carry out the program of this method
CN101377747A (en) * 2007-08-27 2009-03-04 上海市闵行中学 Temporary solution method of computer system memory deficiency
CN102946486A (en) * 2012-11-20 2013-02-27 惠州Tcl移动通信有限公司 Background application automatic clearing method based on mobile phone and mobile phone

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1432159A (en) * 2000-06-01 2003-07-23 Safa软体株式会社 Total system for preventing information outflow from inside
CN1735870A (en) * 2003-01-20 2006-02-15 富士通株式会社 Copy preventing apparatus, duplicate the method for preventing and make computing machine carry out the program of this method
CN101377747A (en) * 2007-08-27 2009-03-04 上海市闵行中学 Temporary solution method of computer system memory deficiency
CN102946486A (en) * 2012-11-20 2013-02-27 惠州Tcl移动通信有限公司 Background application automatic clearing method based on mobile phone and mobile phone

Also Published As

Publication number Publication date
CN106294209A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
KR102257262B1 (en) Adaptive user interface pane manager
CN105975201B (en) Mobile terminal and its split screen processing method
JP2020504865A (en) Application data processing method, apparatus, and storage medium
CN106716357B (en) Control method, control device and the electronic equipment of multisystem mobile terminal
CN108156468A (en) A kind of method and apparatus for watching main broadcaster's live streaming
CN104391695B (en) A kind of method and its device that control is synchronized by external equipment
US20140298245A1 (en) Display Instance Management
EP2754020A1 (en) Multiple display device taskbars
CN106294209B (en) A kind of information processing method and electronic equipment
CN104679581B (en) The method and device of running background program
JP6265659B2 (en) Information processing apparatus, control method thereof, and program
CN108228776A (en) Data processing method, device, storage medium and electronic equipment
CN107341015A (en) Inter-terminal data synchronous method, device, terminal and storage medium
US20240086136A1 (en) Display method and display apparatus
CN111124536B (en) Dual-system data sharing method and device based on data isolation and terminal equipment
CN101986662A (en) Widget instance operation method and system
CN104462099A (en) Information processing method and electronic equipment
CN107291370A (en) A kind of cloud storage system dispatching method and device
CN115756238A (en) Component display method and device, electronic equipment and medium
US9225818B2 (en) Mobile terminal
CN109324805A (en) A kind of method and apparatus applied in deletion backstage
CN105224176B (en) A kind of information processing method and electronic equipment
CN108401455A (en) A kind of multi-systematic control method, control device and mobile terminal
CN105786418B (en) Information processing method and electronic equipment
CN113741918A (en) Method for deploying applications on cloud and applications

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