The content of the invention
Embodiment of the present invention is designed to provide a kind of method for information display and electronic equipment, can not influence to use
On the premise of the normal use electronic equipment of family, prevent the privacy leakage of user, ensured the safety of user information.
In order to solve the above technical problems, embodiments of the present invention provide a kind of method for information display, including following step
Suddenly:When receiving information, judge electronic equipment whether in holding state;When judging that electronic equipment is in holding state,
It obtains from holding state is entered to the time for receiving information;Judge whether the time is more than default time threshold;It is big when the time
When time threshold, information alert is sent according to default first method;Wherein, first method be when sending information alert,
Forbid showing the detailed content of information.
Embodiments of the present invention additionally provide a kind of electronic equipment, including:At least one processor;And at least
The memory of one processor communication connection;Wherein, memory storage has the instruction that can be performed by least one processor, instruction
It is performed by least one processor, so that at least one processor is able to carry out above-mentioned method for information display.
Embodiments of the present invention additionally provide a kind of computer readable storage medium, are stored with computer program, calculate
Machine program realizes above-mentioned method for information display when being executed by processor.
Embodiment of the present invention in terms of existing technologies, when electronic equipment is in holding state, when receiving information,
If from into holding state to when receiving the time of information more than default time threshold, information alert is only sent, forbids showing
Show the detailed content of information, i.e. do not show the detailed content of information;So as to before user's normal use electronic equipment is not influenced
It puts, prevents the privacy leakage of user, ensured the safety of user information.Also, when the electronic equipment of user is lost, also can
Ensure the information security of user.
In addition, it to before receiving the time of information, is further included obtaining from into holding state:Judging electronic equipment is
No acquiescence sends information alert by first method;Information alert is sent by first method when judging that electronic equipment is non-default, is entered
The step of obtaining from into holding state to the time for receiving information;When judging that electronic equipment is given tacit consent to letter is sent by first method
Breath prompting, into the step of sending information alert according to default first method.In the present embodiment, if user has set electricity
When sub- equipment is in standby, information alert is only sent, forbids showing the detailed content of information, then without judge from the standby shape of entrance
State to receive information time whether be more than default time threshold.
In addition, time threshold predetermined manner is:The last electronic equipment is obtained from into holding state into system
Between time and the last time last electronic equipment from into holding state into the time system;Root
According to formula T=a*Tn-(1-a)Tn-1, calculate time threshold;Wherein, T is time threshold, and a is predetermined coefficient and the value range of a
For (0,1), TnBe the last electronic equipment from into holding state into system time, Tn-1To be the last upper
Time of the primary electron equipment from into holding state into system.Present embodiments provide a kind of default side of time threshold
Formula calculates time threshold by the way of in the present embodiment, can adaptively obtain time threshold according to user's usage scenario, carry
The usage experience of user is risen.
In addition, judging whether the time is more than before default time threshold, further include:It is pre- to judge whether time threshold is less than
If first threshold and/or, judge time threshold whether be more than default second threshold;First threshold is less than second threshold;When
When judging that time threshold is less than default first threshold, setting time threshold value is equal to first threshold, into judging whether the time is big
In the default time threshold the step of;When judging that time threshold is more than default second threshold, setting time threshold value is equal to the
Two threshold values, into judge the time whether be more than default time threshold the step of;It is preset when judging that time threshold is greater than or equal to
First threshold, and time threshold be less than or equal to default second threshold, into judge the time whether more than it is default when
Between threshold value the step of.The present embodiment is the corresponding scope that time threshold is set, and avoids the time threshold mistake adaptively obtained
The big or too small usage experience for influencing user.
In addition, when electronic equipment is not at holding state or time and is less than or equal to time threshold, according to default the
Two modes send information alert;Wherein, second method is when sending information alert, shows the detailed content of information.This implementation
In example, provide electronic equipment and be not at holding state or be less than or equal to from entrance holding state to the time for receiving information
During time threshold, the prompting mode of information directly reads the detailed content of information convenient for user.
In addition, after judgement electronic equipment is not at holding state or the time is less than or equal to time threshold, according to default
Second method send information alert before, in detection information whether there is default word;Exist in advance when detecting in information
If word when, into the step of sending information alert according to default first method.The present embodiment is in the word in information
Appearance is detected;When detecting in information there are during default word, even if electronic equipment be not at holding state or from into
Enter holding state to the time for receiving information less than or equal to time threshold, still only send information alert, forbid showing information
Detailed content.
Specific embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with attached drawing to the present invention
Each embodiment be explained in detail.However, it will be understood by those skilled in the art that in each embodiment party of the present invention
In formula, in order to make the reader understand this application better, many technical details are proposed.But even if without these technical details
With many variations based on following embodiment and modification, the application technical solution claimed can also be realized.
The first embodiment of the present invention is related to a kind of method for information display, and applied to electronic equipment, electronic equipment is for example
For mobile phone, tablet computer etc..
The idiographic flow of the method for information display of the present embodiment is as shown in Figure 1.
Step 101, judge whether to receive information.If so, enter step 102;If it is not, step 101 is performed again.
Specifically, information can be the application program of short message, multimedia message or user installation that electronic apparatus system carries
Information, such as the information of wechat application program, information of QQ application programs etc..When judging to receive information, enter step
102;Otherwise, then step 101 is performed again, judges whether to receive information.
Step 102, judge electronic equipment whether in holding state.If so, enter step 103;If it is not, it then directly ties
Beam.
Specifically, judge electronic equipment whether in holding state, i.e. to judge whether user is used electronics and sets
It is standby;When judging that electronic equipment is in holding state, 103 are entered step;Otherwise, then illustrate that electronic equipment is used in user,
The detailed content of information can directly be displayed for a user.
Step 103, obtain from holding state is entered to the time for receiving information.
Specifically, electronic equipment can be recorded from holding state is entered to the time for receiving information.
Step 104, judge whether the time is more than default time threshold;If so, enter step 105;If it is not, then directly
Terminate.
Specifically, by acquisition from holding state is entered to the time for receiving information and the progress of default time threshold
Compare;When being more than default time threshold to the time for receiving information from entrance holding state, then illustrate that user may be
It is lost away from electronic equipment or electronic equipment, enters step 105 at this time;Otherwise, then illustrate that user may just set electronics
Standby screen locking enters holding state, i.e. user not yet leaves electronic equipment, can directly display for a user the detailed content of information.
Step 105, information alert is sent according to default first method.
Specifically, information alert is sent, forbids showing the detailed content of information;That is, receive and disappear in locking screen interface pop-up
The prompting of breath, but the detailed content of message is not shown.Wherein, when pop-up receives the prompting of message, the tinkle of bells, voice can be added
Or the prompting of the modes such as vibrations.
Present embodiment in terms of existing technologies, when electronic equipment is in holding state, when receiving information, if from
Into holding state to when receiving the time of information more than default time threshold, information alert is only sent, display is forbidden to believe
The detailed content of breath, i.e. do not show the detailed content of information;So as to not influence the premise of user's normal use electronic equipment
Under, it prevents the privacy leakage of user, has ensured the safety of user information.Also, it when the electronic equipment of user is lost, can also protect
Demonstrate,prove the information security of user.
Second embodiment of the present invention is related to a kind of method for information display.Second embodiment is in first embodiment base
Refinement on plinth, main refinement part are:Provide the predetermined manner of time threshold.
The idiographic flow of the predetermined manner of the time threshold of the present embodiment is as shown in Figure 2.
Step 201, the last electronic equipment is obtained from into holding state into the time system and most
Last electronic equipment closely once is from holding state is entered to the time entered system.
Specifically, electronic equipment twice is obtained recently to wake up into system from into holding state to by user
Time.
Step 202, according to formula T=a*Tn-(1-a)Tn-1, calculate time threshold.
Specifically, by recently twice electronic equipment from into holding state to by user wake up into system when
Between substitute into formula T=a*Tn-(1-a)Tn-1, to predict electronic equipment, this is waken up from into holding state to by user into system
Time between system, i.e. whether prediction electronic equipment is in the controlled range of user.When electronic equipment existed into the standby time
When in time threshold, then illustrate electronic equipment in the controlled range of user;Otherwise, then illustrate electronic equipment not user's
In controlled range.Wherein, T is time threshold, and the value range that a is predetermined coefficient and a is (0,1), TnFor the last electronics
Time of the equipment from into holding state into system, Tn-1It is the last last electronic equipment from entering standby shape
State into system time.
It should be noted that in the present embodiment, pass through formula T=a*Tn-(1-a)Tn-1Time threshold is calculated, it is so unlimited
In this, it can also be user by the way that interface is set to directly input time threshold.
The idiographic flow of the method for information display of the present embodiment is as shown in figure 3, using aforesaid way preset time threshold
When, preferably, being set to the scope of time threshold.
Wherein, step 301 is roughly the same to step 103 with step 101 to step 303, step 308, step 309 and step
104th, step 105 is roughly the same, is not repeating herein, is in place of main difference, adds step 304 to step 307, specifically
It is as follows:
Step 304, judge whether time threshold is less than default first threshold.If so, enter step 305;If it is not, then
Enter step 306.
Specifically, by the time threshold calculated compared with default first threshold, when time threshold is less than in advance
If first threshold when, enter step 305;Otherwise, then illustrate that time threshold is greater than or equal to default first threshold, into step
Rapid 306.
Step 305, setting time threshold value is equal to first threshold.
Specifically, when the time threshold calculated is less than default first threshold, then illustrate that time threshold is too small, meeting
When causing the user electronic equipment screen locking just is entered holding state, i.e. when electronic equipment is also in the controlled range of user,
Information alert is only sent when receiving information, the detailed content of information is not shown, influences user experience.It is necessary to set the time
Threshold value is equal to first threshold, subsequently into step 308, judges whether the time is more than default time threshold (i.e. first threshold).
Step 306, judge whether time threshold is more than default second threshold.If so, enter step 307;If it is not, then
Enter step 308.
Specifically, by the time threshold calculated compared with default second threshold, when time threshold is more than in advance
If second threshold when, enter step 307;Otherwise, then illustrate that time threshold is less than or equal to default second threshold, into step
Rapid 308.
Step 307, setting time threshold value is equal to second threshold.
Specifically, when the time threshold calculated is more than default second threshold, then illustrate that time threshold is too big, meeting
When causing the electronic equipment to be in the uncontrollable scope of user, the detailed content that information still shows information is received, causes user's
Information leakage.It is necessary to set time threshold is equal to second threshold, subsequently into step 308, it is pre- to judge whether the time is more than
If time threshold (i.e. second threshold).Wherein, first threshold is less than second threshold.
It should be noted that the only actual execution sequence of illustrated steps 304 and step 306 in Fig. 3, i.e. the present embodiment
In, step 306 can also be first carried out, judges whether time threshold is more than default second threshold;When judgement time threshold is less than
Or during equal to default second threshold, then perform step 304 and judge whether time threshold is less than default first threshold.
It should also be noted that, the judgement of step 304 and step 306 is performed in the present embodiment simultaneously, it is so without being limited thereto,
Step 304 or step 306 can only be performed, right the present embodiment is not intended to be limited in any this, specifically can according to user demand come
Setting.
Present embodiment provides a kind of predetermined manner of time threshold for first embodiment, using this
Mode in embodiment calculates time threshold, can adaptively obtain time threshold according to user's usage scenario, improve user
Usage experience.
Third embodiment of the present invention is related to a kind of method for information display.3rd embodiment is in first embodiment base
Improvement on plinth, mainly thes improvement is that:It adds and judges whether electronic equipment is given tacit consent to and send information alert by first method
The step of.
The idiographic flow of the method for information display of the present embodiment is as shown in Figure 4.
Wherein, step 401, step 402 are roughly the same with step 101, step 102, step 404 to step 406 and step
103 is roughly the same to step 105, and details are not described herein, is in place of main difference, adds step 403, specific as follows:
Step 403, judge whether electronic equipment is given tacit consent to and send information alert by first method.If so, it enters step
405;If it is not, then enter step 403.
Specifically, user can set the information alert mode of electronic equipment in the electronic device, if user sets electricity
Sub- equipment is non-default to send information alert by first method, then enters step 404 acquisitions from into holding state to receiving letter
The time of breath;Otherwise, then illustrate that user sets electronic equipment acquiescence and by first method sends information alert, then without obtain from into
Enter holding state to the time for receiving information, be directly entered step 406 and send information alert according to default first method.
Preferably, work as in step 402, when judging that electronic equipment is not at judging in holding state or step 405
Between when being less than or equal to time threshold, further include step 407 in the present embodiment, it is specific as follows:
Step 407, information alert is sent according to default second method.
Specifically, information alert is sent, shows the detailed content of information;That is, message is received in locking screen interface pop-up
During prompting, the detailed content of message is directly displayed.Wherein, pop-up receive the prompting of message when, can add the tinkle of bells, voice or
The prompting of the modes such as vibrations, during in order to electronic equipment in the controlled range of user, user can directly read the detailed of information
Thin content.
Present embodiment for first embodiment, if user set electronic equipment be in it is standby when,
Information alert is only sent, forbids showing the detailed content of information, then without judge from entrance holding state to receiving information
Whether the time is more than default time threshold, and the detailed content of information is directly read convenient for user.It should be noted that this implementation
Mode can also be used as the improvement on the basis of second embodiment, can reach same technique effect.
The 4th embodiment of the present invention is related to a kind of method for information display.4th embodiment is in the 3rd embodiment base
Improvement on plinth, mainly thes improvement is that:Word in information is detected.
The idiographic flow of the method for information display of the present embodiment is as shown in Figure 5.
Wherein, step 501 is roughly the same with step 401, step 405 to step 505, step 507, step 508 and step
406th, step 407 is roughly the same, and details are not described herein, is in place of main difference, adds step 506, specific as follows:
Step 506, it whether there is default word in detection information.If so, enter step 507;If it is not, then into step
Rapid 508.
Specifically, user can preset sensitive word, such as bank, transaction or password etc. in the electronic device, when
Detection information center then enters step 507 there are during default word, and information alert is sent according to default first method;It is no
Then, then 508 are entered step, information alert is sent according to default second method.
Present embodiment is detected the word content in information for first embodiment;When detecting
There are during default word in information, even if electronic equipment is not at holding state or from into holding state to receiving
The time of information is less than or equal to time threshold, still only sends information alert, forbids showing the detailed content of information.It needs to illustrate
, present embodiment can also be used as the improvement on the basis of second embodiment or the 3rd embodiment, can reach same
The technique effect of sample.
The step of various methods divide above, be intended merely to describe it is clear, when realization can be merged into a step or
Some steps are split, are decomposed into multiple steps, as long as including identical logical relation, all protection domain in this patent
It is interior;To either adding inessential modification in algorithm in flow or introducing inessential design, but its algorithm is not changed
Core design with flow is all in the protection domain of the patent.
Fifth embodiment of the invention is related to a kind of electronic equipment, and electronic equipment is, for example, mobile phone, tablet computer etc..
Electronic equipment includes at least one processor;And the memory being connected at least one processor communication;Its
In, memory storage has the instruction that can be performed by least one processor, instructs and is performed by least one processor, so that at least
One processor is able to carry out the first embodiment method for information display any into fourth embodiment.
Wherein, memory is connected with processor using bus mode, and bus can include the bus of any number of interconnection
And one or more processors and the various of memory are electrically connected to together by bridge, bus.Bus can also will be such as peripheral
The various other of equipment, voltage-stablizer and management circuit or the like are electrically connected to together, these are all well known in the art
, therefore, no longer it is described further herein.Bus interface provides interface between bus and transceiver.Transceiver
Can be an element or multiple element, such as multiple receivers and transmitter, provide for over a transmission medium with
The unit of various other device communications.The data handled through processor are transmitted on the radio medium by antenna, further,
Antenna also receives data and transfers data to processor.
Processor is responsible for bus and common processing, can also provide various functions, including timing, peripheral interface,
Voltage adjusting, power management and other control functions.And memory can be used to store processor in execution operation when institute
The data used.
Present embodiment in terms of existing technologies, when electronic equipment is in holding state, when receiving information, if from
Into holding state to when receiving the time of information more than default time threshold, information alert is only sent, display is forbidden to believe
The detailed content of breath, i.e. do not show the detailed content of information;So as to not influence the premise of user's normal use electronic equipment
Under, it prevents the privacy leakage of user, has ensured the safety of user information.Also, it when the electronic equipment of user is lost, can also protect
Demonstrate,prove the information security of user.
Sixth embodiment of the invention is related to a kind of computer readable storage medium, is stored with computer program.Computer
The first embodiment method for information display any into fourth embodiment is realized when program is executed by processor.
That is, it will be understood by those skilled in the art that implement the method for the above embodiments be can be with
Relevant hardware is instructed to complete by program, the program storage is in a storage medium, including some instructions making
It obtains an equipment (can be microcontroller, chip etc.) or processor (processor) performs each embodiment method of the application
All or part of step.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey
The medium of sequence code.
Present embodiment in terms of existing technologies, when electronic equipment is in holding state, when receiving information, if from
Into holding state to when receiving the time of information more than default time threshold, information alert is only sent, display is forbidden to believe
The detailed content of breath, i.e. do not show the detailed content of information;So as to not influence the premise of user's normal use electronic equipment
Under, it prevents the privacy leakage of user, has ensured the safety of user information.Also, it when the electronic equipment of user is lost, can also protect
Demonstrate,prove the information security of user.
It will be understood by those skilled in the art that the respective embodiments described above are to realize specific embodiments of the present invention,
And in practical applications, can to it, various changes can be made in the form and details, without departing from the spirit and scope of the present invention.