CN107797745A - Screen control method and device - Google Patents
Screen control method and device Download PDFInfo
- Publication number
- CN107797745A CN107797745A CN201610800747.4A CN201610800747A CN107797745A CN 107797745 A CN107797745 A CN 107797745A CN 201610800747 A CN201610800747 A CN 201610800747A CN 107797745 A CN107797745 A CN 107797745A
- Authority
- CN
- China
- Prior art keywords
- screen
- icon
- touch operation
- value
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/04817—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention provides a kind of screen control method and device, wherein, this method includes:The touch operation to the screen-icon of terminal is obtained to instruct;The atmospheric pressure value of the terminal inner is detected according to the baroceptor of the terminal, judges whether to perform the screen-icon pressure touch operation;In the case where the judgment result is yes, pressure touch operation is performed to the screen-icon;Or in the case where judged result is no, to screen-icon execution and the corresponding touch operation of touch operation instruction.By the present invention, solve in the terminal that the pressure touch screen group for being not equipped with identifying pressure sensitivity in correlation technique be present, the problem of pressure screen correlation function can not be used and applied, reached the effect that pressure screen function is realized in non-pressure screen terminal.
Description
Technical field
The present invention relates to the communications field, in particular to a kind of screen control method and device.
Background technology
At present, terminal (e.g., mobile phone etc.) pressure screen and the development of related application technology are very fast, and relevant ecological and application have
Preliminary accumulation.
However, it must be equipped with identifying that the pressure touch screen group of pressure sensitivity can use pressure screen related in correlation technique
Function and application.For in the terminal for the pressure touch screen group for being not equipped with identifying pressure sensitivity, then pressure screen phase can not be used
Close function and application.
Therefore, in the terminal that the pressure touch screen group for being not equipped with identifying pressure sensitivity in correlation technique be present, can not make
The problem of with pressure screen correlation function and application.
The content of the invention
The embodiments of the invention provide a kind of screen control method and device, does not have at least to solve to exist in correlation technique
It is equipped with the terminal of pressure touch screen group that can identify pressure sensitivity, the problem of pressure screen correlation function can not be used and applied.
According to one embodiment of present invention, there is provided a kind of screen control method, including:Obtain the screen map to terminal
Target touch operation instructs;The atmospheric pressure value of the terminal inner is detected according to the baroceptor of the terminal, is judged whether
Pressure touch operation is performed to the screen-icon;In the case where the judgment result is yes, pressure is performed to the screen-icon
Touch control operation;Or in the case where judged result is no, the screen-icon is performed corresponding with touch operation instruction
Touch operation.
Alternatively, the atmospheric pressure value detected according to the baroceptor of the terminal, judges whether to described
Screen-icon, which performs pressure touch operation, to be included:Whether the atmospheric pressure value for judging to detect is more than or equal to the first default threshold
Value;In the case where the judgment result is yes, it is determined that performing pressure touch operation to the screen-icon.
Alternatively, the atmospheric pressure value detected according to the baroceptor of the terminal, judges whether to described
Screen-icon, which performs pressure touch operation, to be included:Judge the institute of the beginning and end of the prefixed time interval for detecting atmospheric pressure value
Whether the variable quantity for stating atmospheric pressure value is more than or equal to the second predetermined threshold value;In the case where the judgment result is yes, it is determined that to described
Screen-icon performs pressure touch operation.
Alternatively, the change of the starting point of the prefixed time interval and the atmospheric pressure value of the terminal is judged
Whether amount, which is more than or equal to second predetermined threshold value, includes:It is default to judge whether the variable quantity is more than or equal to described second
Threshold value;In the case where the judgment result is yes, it will be used to identify that the value for the touch-control variable for carrying out pressure touch operation is set to first
Predetermined value;Or in the case where judged result is no, it will be used to identify that the value for the touch-control variable for carrying out pressure touch operation is put
For second predetermined value;According to the value of the touch-control variable, judge whether to perform the screen-icon pressure touch operation.
Alternatively, in the starting point for judging the prefixed time interval and the change of the atmospheric pressure value of the terminal
Whether change amount is more than or equal to before second predetermined threshold value, in addition to:According to the response speed of the touch-screen of the terminal,
Determine the prefixed time interval.
According to another embodiment of the invention, there is provided a kind of screen control device, including:Acquisition module, for obtaining
The touch operation to the screen-icon of terminal is taken to instruct;Judge module, for being detected according to the baroceptor of the terminal
The atmospheric pressure value of the terminal inner, judge whether to perform the screen-icon pressure touch operation;Execution module, for
In the case that judged result is is, pressure touch operation is performed to the screen-icon;Or the situation in judged result being no
Under, the screen-icon is performed and the corresponding touch operation of touch operation instruction.
Alternatively, the judge module includes:Whether the first judging unit, the atmospheric pressure value for judging to detect are big
In or equal to the first predetermined threshold value;First determining unit, in the case where the judgment result is yes, it is determined that to the screen
Icon performs pressure touch operation;Or in the case where judged result is no, it is determined that not performing pressure to the screen-icon
Touch control operation.
Alternatively, the judge module includes:Second judging unit, for judging to be used for the preset time for detecting atmospheric pressure value
Whether the variable quantity of the atmospheric pressure value of the beginning and end at interval is more than or equal to the second predetermined threshold value;Second determining unit,
For in the case where the judgment result is yes, being operated it is determined that performing pressure touch to the screen-icon.
Alternatively, second judging unit, it is additionally operable to judge whether the variable quantity is pre- more than or equal to described second
If threshold value;In the case where the judgment result is yes, it will be used to identify that the value for the touch-control variable for carrying out pressure touch operation is set to the
One predetermined value;Or in the case where judged result is no, it will be used to identify that the value for the touch-control variable for carrying out pressure touch operation
It is set to second predetermined value;According to the value of the touch-control variable, judge whether to perform the screen-icon pressure touch operation.
Alternatively, described device also includes:3rd determining unit, the response speed for the touch-screen according to the terminal
Degree, determines the prefixed time interval.
According to still another embodiment of the invention, there is provided a kind of terminal, including:Screen, baroceptor and processor,
Wherein, the processor, the touch operation for obtaining to the screen-icon of the terminal instruct;The baroceptor, use
In the atmospheric pressure value for detecting the terminal inner;The processor, it is additionally operable to, according to the atmospheric pressure value is detected, judge whether to institute
State screen-icon and perform pressure touch operation;In the case where the judgment result is yes, pressure touch is performed to the screen-icon
Operation;Or in the case where judged result is no, touch corresponding with touch operation instruction is performed to the screen-icon
Touch operation.
Alternatively, it is default whether the atmospheric pressure value that the processor is additionally operable to judge to detect is more than or equal to first
Threshold value, in the case where the judgment result is yes, it is determined that performing pressure touch operation to the screen-icon.
Alternatively, the processor is additionally operable to judge the beginning and end of the prefixed time interval for detecting atmospheric pressure value
Whether the variable quantity of the atmospheric pressure value is more than or equal to the second predetermined threshold value;In the case where the judgment result is yes, it is determined that to institute
State screen-icon and perform pressure touch operation.
According to still another embodiment of the invention, a kind of storage medium is additionally provided.The storage medium is arranged to storage and used
In the program code for performing following steps:The touch operation to the screen-icon of terminal is obtained to instruct;According to the gas of the terminal
Pressure sensor detects the atmospheric pressure value of the terminal inner, judges whether to perform the screen-icon pressure touch operation;
In the case that judged result is is, pressure touch operation is performed to the screen-icon;Or the situation in judged result being no
Under, the screen-icon is performed and the corresponding touch operation of touch operation instruction.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:According to the terminal
The atmospheric pressure value that the baroceptor detects, judge whether that pressure touch operation is performed to the screen-icon to be included:
Whether the atmospheric pressure value for judging to detect is more than or equal to the first predetermined threshold value;In the case where the judgment result is yes, really
It is fixed that pressure touch operation is performed to the screen-icon.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:According to the terminal
The atmospheric pressure value that the baroceptor detects, judge whether that pressure touch operation is performed to the screen-icon to be included:
Judge whether the variable quantity of the atmospheric pressure value of the beginning and end of the prefixed time interval for detecting atmospheric pressure value is more than or waits
In the second predetermined threshold value;In the case where the judgment result is yes, it is determined that performing pressure touch operation to the screen-icon.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:When judging described default
Between the variable quantity of the atmospheric pressure value of the starting point that is spaced and the terminal whether to be more than or equal to described second default
Threshold value includes:Judge whether the variable quantity is more than or equal to second predetermined threshold value;In the case where the judgment result is yes,
It will be used to identify that the value for the touch-control variable for carrying out pressure touch operation is set to first predetermined value;Or in judged result be no
In the case of, it will be used to identify that the value for the touch-control variable for carrying out pressure touch operation is set to second predetermined value;Become according to the touch-control
The value of amount, judge whether to perform the screen-icon pressure touch operation.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:Judging described preset
It is pre- whether the variable quantity of the starting point of time interval and the atmospheric pressure value of the terminal is more than or equal to described second
If before threshold value, in addition to:According to the response speed of the touch-screen of the terminal, the prefixed time interval is determined.
By the present invention, when detecting the contact action for terminal screen icon, detected with reference to baroceptor
The atmospheric pressure value of terminal inner judges whether that performing pressure touch to screen-icon operates, and passes through the combination of touch screen and baroceptor
The pressure sensitivity of simulated touch screen, therefore, can solve the pressure touch screen for being not equipped with identifying pressure sensitivity in correlation technique be present
In the terminal of group, the problem of pressure screen correlation function can not be used and applied, reach and realize pressure screen in non-pressure screen terminal
The effect of function.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, forms the part of the application, this hair
Bright schematic description and description is used to explain the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is a kind of hardware block diagram of the mobile terminal of screen control method of the embodiment of the present invention;
Fig. 2 is the flow chart of screen control method according to embodiments of the present invention;
Fig. 3 is that barometric information is illustrated with process layer interaction flow in screen control method according to the preferred embodiment of the invention
Figure;
Fig. 4 is the barometric information handling process schematic diagram in screen control method according to the preferred embodiment of the invention;
Fig. 5 is the mobile phone application layer process schematic flow sheet in screen control method according to the preferred embodiment of the invention;
Fig. 6 is the structured flowchart one of screen control device according to embodiments of the present invention;
Fig. 7 is the structured flowchart one of the judge module 64 of screen control device according to embodiments of the present invention;
Fig. 8 is the structured flowchart two of the judge module 64 of screen control device according to embodiments of the present invention;
Fig. 9 is the structured flowchart two of screen control device according to embodiments of the present invention;
Figure 10 is the structured flowchart of terminal according to embodiments of the present invention.
Embodiment
Describe the present invention in detail below with reference to accompanying drawing and in conjunction with the embodiments.It should be noted that do not conflicting
In the case of, the feature in embodiment and embodiment in the application can be mutually combined.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, "
Two " etc. be for distinguishing similar object, without for describing specific order or precedence.
Embodiment 1
The embodiment of the method that the embodiment of the present application 1 is provided can be in mobile terminal, terminal or similar fortune
Calculate and performed in device.Exemplified by running on mobile terminals, Fig. 1 is a kind of movement of screen control method of the embodiment of the present invention
The hardware block diagram of terminal.Handled as shown in figure 1, mobile terminal 10 can include one or more (one is only shown in figure)
Device 12 (processor 12 can include but is not limited to Micro-processor MCV or PLD FPGA etc. processing unit), use
Memory 14 in data storage and the transmitting device 16 for communication function.It will appreciated by the skilled person that
Structure shown in Fig. 1 is only to illustrate, and it does not cause to limit to the structure of above-mentioned electronic installation.For example, mobile terminal 10 may be used also
Including more either less components than shown in Fig. 1 or there is the configuration different from shown in Fig. 1.
Memory 14 can be used for the software program and module of storage application software, such as the screen control in the embodiment of the present invention
Programmed instruction/module corresponding to method processed, processor 12 are stored in software program and module in memory 14 by operation,
So as to perform various function application and data processing, that is, realize above-mentioned method.Memory 14 may include high speed random storage
Device, nonvolatile memory is may also include, such as one or more magnetic storage device, flash memory or other are non-volatile solid
State memory.In some instances, memory 14 can further comprise relative to the remotely located memory of processor 12, these
Remote memory can pass through network connection to mobile terminal 10.The example of above-mentioned network includes but is not limited to internet, enterprise
In-house network, LAN, mobile radio communication and combinations thereof.
Transmitting device 16 is used to data are received or sent via a network.Above-mentioned network instantiation may include to move
The wireless network that the communication providerses of dynamic terminal 10 provide.In an example, transmitting device 16 includes a network adapter
(Network Interface Controller, NIC), its can be connected by base station with other network equipments so as to interconnection
Net is communicated.In an example, transmitting device 16 can be radio frequency (Radio Frequency, RF) module, and it is used to lead to
Wireless mode is crossed to be communicated with internet.
A kind of screen control method for running on mobile terminal is provided in the present embodiment, and Fig. 2 is according to of the invention real
The flow chart of the screen control method of example is applied, as shown in Fig. 2 the flow comprises the following steps:
Step S202, obtain the touch operation instruction to the screen-icon of terminal;
Step S204, the atmospheric pressure value of terminal inner is detected according to the baroceptor of terminal, is judged whether to screen map
Mark performs pressure touch operation;
Step S206, in the case where the judgment result is yes, pressure touch operation is performed to screen-icon;Or sentencing
In the case that disconnected result is no, to screen-icon execution and the corresponding touch operation of touch operation instruction.
By above-mentioned steps, when detecting the contact action for terminal screen icon, detected with reference to baroceptor
To atmospheric pressure value judge whether to screen-icon perform pressure touch operation, solve correlation technique in exist be not equipped with knowing
It is whole in non-pressure screen the problem of pressure screen correlation function can not be used and applied in the terminal of the pressure touch screen group of other pressure sensitivity
Pressure screen function is realized on end.
Alternatively, step S202 and step S204 execution sequence can exchange, you can to first carry out step S204,
Then S202 is performed again.
Alternatively, in step S204, can judge whether to perform screen-icon pressure touch behaviour using various ways
Make, for example, whether the atmospheric pressure value for judging to detect is more than or equal to the first predetermined threshold value;In the situation that judged result is yes
Under, it is determined that performing pressure touch operation to screen-icon.Because the time point of baroceptor detection pressure value touches with obtaining
The time point of operational order typically will not be completely the same, therefore, for the accuracy of judgement, it can be determined that obtains touch operation and refers to
The atmospheric pressure value that the first prefixed time interval detects to before obtaining touch operation instruction in the second prefixed time interval before order
Maximum judged.It can also be sentenced according to the atmospheric pressure value that the time point nearest with obtaining touch operation instruction detects
It is disconnected.
In another example the air pressure that the beginning and end of the prefixed time interval for detecting atmospheric pressure value detects can also be judged
Whether the variable quantity of value is more than or equal to the second predetermined threshold value;In the case where the judgment result is yes, it is determined that being held to screen-icon
Row pressure touch operates.Alternatively, when it is determined that performing pressure touch operation to screen-icon, can first judge between preset time
Every the variable quantity of atmospheric pressure value that detects of beginning and end whether be more than or equal to the second predetermined threshold value, be yes in judged result
In the case of, put and be set to for identifying the value for the touch-control variable (for example, pressure touch flag) for carrying out pressure touch operation
One predetermined value (for example, 1), in the case where judged result is no, put the touch-control variable that pressure touch operation is carried out for identifying
The value of (for example, pressure touch flag) is set to second predetermined value (for example, 0).Alternatively it is also possible to atmospheric pressure value is divided
Section, different atmospheric pressure value sections can correspond to pressure screen pressure sensitivity not at the same level.Pressure sensitivity not at the same level is touched corresponding to different pressure
Control operation.Atmospheric pressure value according to detecting determines the atmospheric pressure value section residing for the atmospheric pressure value, according to residing atmospheric pressure value section determination pair
The pressure touch operation answered.
By the above-mentioned technical proposal of the embodiment of the present invention, the atmospheric pressure value detected by different bases judges whether pair
Screen-icon performs the judgment mode of pressure touch operation, can be according to the configuration state of different terminals (for example, screen is to touching
Response speed etc.), determine different implementations, improve the flexibility for realizing pressure screen function.
It is alternatively possible to prefixed time interval is determined to the response speed of touch according to the touch-screen of terminal.For example, can
So that prefixed time interval is arranged into identical with the response speed of touch-screen, or, be the response speed of touch-screen integral multiple.
Based on above-described embodiment and optional embodiment, to illustrate that the whole flow process of scheme interacts, in this preferred embodiment
In, there is provided a kind of screen control method.It should be noted that in the preferred embodiment, the screen method is to run on three proofings
Illustrated exemplified by mobile phone.Three proofings mobile phone has certain air-tightness, and major part is matched somebody with somebody because having certain fire resistance characteristic
Baroceptor is equipped with, air pressure probe value does not have too big change in the usual use of user under fixed height above sea level, and works as user
When slightly firmly pressing screen, because air-tightness, the value that baroceptor detects has a larger fluctuation,
The fluctuation at least can be with 2 grades of pressure sensitivity of simulated pressure screen under the blessing of particular algorithm, it is possible to achieve are not equipped with pressure screen three proofings mobile phone
Use pressure screen function.
Terminal residing for the screen control method of this preferred embodiment includes:Mobile phone application layer, touch control layer, air pressure number
According to monitoring and three parts of process layer.Three parts are illustrated separately below.
Mobile phone application layer, for pressure touch application and function customization operating system, for receiving pressure data
And touch signal, different touch control operations is completed according to pressure data in application.
Touch control layer, it is traditional touch panel unit and control chip, for receiving conventional touch signal and passing to
Mobile phone application layer.
Barometric information monitors and process layer, for monitoring and handling real-time atmospheric pressure value, and the behaviour that will be determined as pressure touch
Feed back to mobile phone application layer.
The screen control method of this preferred embodiment is illustrated with reference to above-mentioned terminal structure, the screen control side
Method includes:Two parts are carried out by barometric information and process layer interaction flow, mobile phone application layer process flow two parts separately below
Explanation.
Fig. 3 is that barometric information is illustrated with process layer interaction flow in screen control method according to the preferred embodiment of the invention
Figure.As shown in figure 3, the flow comprises the following steps:
Step S302, background process is established, obtain current gas pressure data from baroceptor in real time;
Step S304, barometric information is analyzed in real time, identification pressure touch operation;
Step S306, dynamic update pressure touch flag.
In above-mentioned steps S302, it is contemplated that the touch screen response speed of main flow mobile phone terminal is 100 milliseconds or so, so
Baroceptor response speed (5 milliseconds or so) relative can be ignored in this preferred embodiment, and this preferred embodiment will obtain gas in addition
The interval time of pressure data is set to 100 milliseconds, i.e., every 100 milliseconds obtain a barometric information, occurrence by sensor interface
It can be finely tuned according to the difference of its touch-screen response time for different mobile phone terminals.Two newest time points are (i.e. current
Before 100 milliseconds) barometric information be stored respectively in integer variable A and B (A time point for newest).In addition, because pressure
Influence of the touch control operation to air pressure is in 5~10Millibar orders of magnitude, so it is accurate to omit fractional part when preserving barometric information
To individual position, so as to the identification and processing of follow-up air pressure change.
, it is necessary to be analyzed and processed to the barometric information stored in A and B, first initially in above-mentioned steps S304, S306
Change Bool (boolean) variable T, initial value 0, the variable is used to mark whether current operation is pressure touch operation, and 1 is
True, 0 is False, and air pressure monitor cycle synchronisation, is set as that every 100 milliseconds reset to 0 automatically in this preferred embodiment, so as to
Continuous identification pressure touch operation.An air pressure fluctuation identification point is set before user uses the function for the first time, more than the point
Fluctuation can be marked as pressure touch operation because the air-tightness of every mobile phone is different, need it is first in user
Guide user to carry out a weight operation during use, obtain the value P, the i.e. equipment of (A-B) air pressure maximum fluctuation value, take the value
Half for pressure touch fluctuate identification point, labeled as S values, the value of a certain moment (A-B) once being more than S can all be labeled
Operated for pressure touch, the value for updating T is 1.Overall flow is as shown in Figure 4.
In addition, using two variable storage barometric informations of A and B in this preferred embodiment, more variables can also be used, than
Store the barometric information at nearest 4 time points such as 4 variables, the air pressure fluctuation between any two time point can judge and
Processing, so the pressure touch operation for 100ms~400ms duration can identify.
The mobile phone application layer process flow of the screen control method of this preference is as shown in figure 5, the flow includes following step
Suddenly:
Step S502, mobile phone application layer obtain touch operation instruction from touch-screen module;
Step S504, mobile phone application layer obtain barometric information monitoring and process layer now data, and carry out pressure and non-depressed
Power touch-control judges;
Step S506, mobile phone application layer are responded to pressure touch operation and common touch operation, perform corresponding behaviour
Make.
In this preferred embodiment mobile phone application layer can compatible existing pressure screen mobile phone operating system application layer, but will
Pressure screen mobile phone operating system application layer obtain pressure data source from pressure touch screen module be changed to barometric information monitoring with
Process layer.
In above-mentioned steps S504, when there is touch control operation generation, obtain T's from barometric information monitoring with process layer in real time
Value, if value is 1, judge that this time operation operates for pressure touch, if value is 0, for common touch control operation.
In above-mentioned steps S506, because the change of air pressure tends to 2 grades of changes, i.e., normal and pressing, so answering
The correlation function of 2 grades of pressure sensitivity is only opened with layer.Certainly, finer division is carried out to atmospheric pressure value, can also be opened in application layer
The correlation function of multistage pressure sensitivity.
For above-mentioned screen control method, can be operated with the pressure screen of simulated screen icon, for example, on user's weight screen
Phone application icon, the menu of response pressure touch-control can be shown on icon, there is provided dial and converse recently, dial recommending contact persons electricity
Talk about quick entrance.The light piezoelectricity words application icon of user, system identification is common touch operation, into phone application.
, can be on the three proofings mobile phone for do not configure pressure screen or similar by the above-mentioned technical proposal of the embodiment of the present invention
Terminal on realize pressure screen function, reduce cost.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation
The method of example can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but a lot
In the case of the former be more preferably embodiment.Based on such understanding, technical scheme is substantially in other words to existing
The part that technology contributes can be embodied in the form of software product, and the computer software product is stored in a storage
In medium (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal equipment (can be mobile phone, calculate
Machine, server, or network equipment etc.) perform method described in each embodiment of the present invention.
Embodiment 2
A kind of screen control device is additionally provided in the present embodiment, and the device is used to realize above-described embodiment and preferred reality
Mode is applied, had carried out repeating no more for explanation.As used below, term " module " can realize the soft of predetermined function
The combination of part and/or hardware.Although device described by following examples is preferably realized with software, hardware, or
The realization of the combination of software and hardware is also what may and be contemplated.
Fig. 6 is the structured flowchart one of screen control device according to embodiments of the present invention, as shown in fig. 6, the device includes:
Acquisition module 62, the touch operation for obtaining to the screen-icon of terminal instruct;
Judge module 64, it is connected with above-mentioned acquisition module 62, is detected for the baroceptor according to terminal in terminal
The atmospheric pressure value in portion, judge whether to perform screen-icon pressure touch operation;
Execution module 66, it is connected with above-mentioned judge module 64, in the case where the judgment result is yes, to screen-icon
Perform pressure touch operation;Or in the case where judged result is no, screen-icon is performed corresponding with touch operation instruction
Touch operation.
Fig. 7 is the structured flowchart one of the judge module 64 of screen control device according to embodiments of the present invention, such as Fig. 7 institutes
Show, the judge module 64 includes:
Whether the first judging unit 72, the atmospheric pressure value for judging to detect are more than or equal to the first predetermined threshold value;
First determining unit 74, it is connected with above-mentioned first judging unit 72, in the case where the judgment result is yes, really
It is fixed that pressure touch operation is performed to screen-icon.
Fig. 8 is the structured flowchart two of the judge module 64 of screen control device according to embodiments of the present invention, such as Fig. 8 institutes
Show, the judge module 64 includes:
Second judging unit 82, for the air pressure for judging to be used to detect the beginning and end of the prefixed time interval of atmospheric pressure value
Whether the variable quantity of value is more than or equal to the second predetermined threshold value;
Second determining unit 84, it is connected with above-mentioned second judging unit 82, in the case where the judgment result is yes, really
It is fixed that pressure touch operation is performed to screen-icon.
Alternatively, the second judging unit 82, it is additionally operable to judge whether variable quantity is more than or equal to the second predetermined threshold value;Sentencing
In the case that disconnected result is is, it will be used to identify that the value for the touch-control variable for carrying out pressure touch operation is set to first predetermined value;Or
Person, in judged result in the case of no, to will be used to identify that it is pre- that the value for the touch-control variable for carrying out pressure touch operation is set to second
Definite value;According to the value of touch-control variable, judge whether to perform screen-icon pressure touch operation.
Fig. 9 is the structured flowchart two of screen control device according to embodiments of the present invention, as shown in figure 9, the device is except bag
Include outside all modules shown in Fig. 8, in addition to:
3rd determining unit 92, for the response speed of the touch-screen according to terminal, determine prefixed time interval.
It should be noted that above-mentioned modules can be realized by software or hardware, for the latter, Ke Yitong
Cross in the following manner realization, but not limited to this:Above-mentioned module is respectively positioned in same processor;Or above-mentioned modules are with any
The form of combination is located in different processors respectively.
Embodiment 3
A kind of terminal is additionally provided in the present embodiment, the terminal is used to realize above-described embodiment and preferred embodiment,
Repeating no more for explanation was carried out.
Figure 10 is the structured flowchart of terminal according to embodiments of the present invention, and as shown in Figure 10, the terminal includes:Screen 102,
Baroceptor 104, processor 106 are (for the possible part of other in terminal, such as battery, dual-mode antenna, in Figure 10 not
Show), the terminal is illustrated below.
Processor 106, the touch operation for obtaining to the screen-icon of terminal instruct;
Baroceptor 104, for the atmospheric pressure value inside detecting terminal;
Processor 106, it is additionally operable to according to atmospheric pressure value is detected, judges whether to perform screen-icon pressure touch operation;
In the case where the judgment result is yes, pressure touch operation is performed to screen-icon;Or the situation in judged result being no
Under, screen-icon is performed and the corresponding touch operation of touch operation instruction.
Alternatively, it is default whether the atmospheric pressure value that processor 106 can be also used for judging to detect is more than or equal to first
Threshold value, in the case where the judgment result is yes, it is determined that performing pressure touch operation to screen-icon.
Alternatively, processor 106 can be also used for judging starting point and the end for being used to detect the prefixed time interval of atmospheric pressure value
Whether the variable quantity of the atmospheric pressure value of point is more than or equal to the second predetermined threshold value;In the case where the judgment result is yes, it is determined that to screen
Curtain icon performs pressure touch operation.
Embodiment 4
Embodiments of the invention additionally provide a kind of storage medium.Alternatively, in the present embodiment, above-mentioned storage medium can
The program code for performing following steps to be arranged to storage to be used for:
S1, obtain the touch operation instruction to the screen-icon of terminal;
S2, the atmospheric pressure value of terminal inner is detected according to the baroceptor of terminal, judge whether to perform screen-icon
Pressure touch operates;
S3, in the case where the judgment result is yes, pressure touch operation is performed to screen-icon;Or in judged result
In the case of no, screen-icon is performed and the corresponding touch operation of touch operation instruction.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:
S1, the atmospheric pressure value detected according to the baroceptor of terminal, judge whether to perform pressure touch to screen-icon
Operation includes:
Whether S1, the atmospheric pressure value for judging to detect are more than or equal to the first predetermined threshold value;
S2, in the case where the judgment result is yes, it is determined that performing pressure touch operation to screen-icon.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:
The atmospheric pressure value detected according to the baroceptor of terminal, judge whether to perform screen-icon pressure touch operation
Including:
S1, judges whether the variable quantity of the atmospheric pressure value of the beginning and end of prefixed time interval is more than or equal to second and presets
Threshold value;
S2, in the case where the judgment result is yes, it is determined that performing pressure touch operation to screen-icon.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:
Judge whether the variable quantity of the atmospheric pressure value of the beginning and end of the prefixed time interval for detecting atmospheric pressure value is more than
Or include equal to the second predetermined threshold value:
S1, judges whether variable quantity is more than or equal to the second predetermined threshold value;
S2, in the case where the judgment result is yes, it will be used to identify that the value for the touch-control variable for carrying out pressure touch operation is put
For first predetermined value;Or in the case where judged result is no, it will be used to identify that the touch-control variable for carrying out pressure touch operation
Value be set to second predetermined value;
According to the value of touch-control variable, judge whether to perform screen-icon pressure touch operation.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:
Preset whether the variable quantity of the atmospheric pressure value for the beginning and end for judging prefixed time interval is more than or equal to second
Before threshold value, in addition to:
According to the response speed of the touch-screen of terminal, prefixed time interval is determined.
Alternatively, in the present embodiment, above-mentioned storage medium can include but is not limited to:USB flash disk, read-only storage (ROM,
Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disc or
CD etc. is various can be with the medium of store program codes.
Alternatively, in the present embodiment, processor performs according to the program code stored in storage medium:Obtain to end
The touch operation instruction of the screen-icon at end;The atmospheric pressure value of terminal inner is detected according to the baroceptor of terminal, judgement is
It is no that pressure touch operation is performed to screen-icon;In the case where the judgment result is yes, pressure touch behaviour is performed to screen-icon
Make;Or in the case where judged result is no, to screen-icon execution and the corresponding touch operation of touch operation instruction.
Alternatively, in the present embodiment, processor performs according to the program code stored in storage medium:According to terminal
The atmospheric pressure value that detects of baroceptor, judge whether that pressure touch operation is performed to screen-icon to be included:Judgement detects
Atmospheric pressure value whether be more than or equal to the first predetermined threshold value;In the case where the judgment result is yes, it is determined that being held to screen-icon
Row pressure touch operates.
Alternatively, in the present embodiment, processor performs according to the program code stored in storage medium:According to terminal
The atmospheric pressure value that detects of baroceptor, judge whether that pressure touch operation is performed to screen-icon to be included:When judging default
Between the variable quantity of the atmospheric pressure value of beginning and end that is spaced whether be more than or equal to the second predetermined threshold value;In judged result for yes
In the case of, it is determined that performing pressure touch operation to screen-icon.
Alternatively, in the present embodiment, processor performs according to the program code stored in storage medium:Judge to be used for
Whether the variable quantity for detecting the atmospheric pressure value of the beginning and end of the prefixed time interval of atmospheric pressure value is more than or equal to the second default threshold
Value includes:Judge whether variable quantity is more than or equal to the second predetermined threshold value;In the case where the judgment result is yes, will be used to identify that
The value for carrying out the touch-control variable of pressure touch operation is set to first predetermined value;Or in the case where judged result is no, it will use
The value that the touch-control variable of pressure touch operation is carried out in mark is set to second predetermined value;According to the value of touch-control variable, judge whether
Pressure touch operation is performed to screen-icon.
Alternatively, in the present embodiment, processor performs according to the program code stored in storage medium:Judging in advance
If whether the variable quantity of the atmospheric pressure value of the beginning and end of time interval is more than or equal to before the second predetermined threshold value, in addition to:
According to the response speed of the touch-screen of terminal, prefixed time interval is determined.
Alternatively, the specific example in the present embodiment may be referred to described in above-described embodiment and optional embodiment
Example, the present embodiment will not be repeated here.
Obviously, those skilled in the art should be understood that above-mentioned each module of the invention or each step can be with general
Computing device realize that they can be concentrated on single computing device, or be distributed in multiple computing devices and formed
Network on, alternatively, they can be realized with the program code that computing device can perform, it is thus possible to they are stored
Performed in the storage device by computing device, and in some cases, can be with different from shown in order execution herein
The step of going out or describing, they are either fabricated to each integrated circuit modules respectively or by multiple modules in them or
Step is fabricated to single integrated circuit module to realize.So, the present invention is not restricted to any specific hardware and software combination.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies
Change, equivalent substitution, improvement etc., should be included in the scope of the protection.
Claims (13)
- A kind of 1. screen control method, it is characterised in that including:The touch operation to the screen-icon of terminal is obtained to instruct;The atmospheric pressure value of the terminal inner is detected according to the baroceptor of the terminal, is judged whether to the screen-icon Perform pressure touch operation;In the case where the judgment result is yes, pressure touch operation is performed to the screen-icon;Or in judged result it is no In the case of, the screen-icon is performed and the corresponding touch operation of touch operation instruction.
- 2. according to the method for claim 1, it is characterised in that detected according to the baroceptor of the terminal The atmospheric pressure value, judge whether that pressure touch operation is performed to the screen-icon to be included:Whether the atmospheric pressure value for judging to detect is more than or equal to the first predetermined threshold value;In the case where the judgment result is yes, it is determined that performing pressure touch operation to the screen-icon.
- 3. according to the method for claim 1, it is characterised in that detected according to the baroceptor of the terminal The atmospheric pressure value, judge whether that pressure touch operation is performed to the screen-icon to be included:Judge whether the variable quantity of the atmospheric pressure value of the beginning and end of the prefixed time interval for detecting atmospheric pressure value is more than Or equal to the second predetermined threshold value;In the case where the judgment result is yes, it is determined that performing pressure touch operation to the screen-icon.
- 4. according to the method for claim 3, it is characterised in that judge the starting point of the prefixed time interval and described Whether the variable quantity of the atmospheric pressure value of terminal, which is more than or equal to second predetermined threshold value, includes:Judge whether the variable quantity is more than or equal to second predetermined threshold value;In the case where the judgment result is yes, will be used to identify that the value of the touch-control variable for carrying out pressure touch operation, to be set to first pre- Definite value;Or in the case where judged result is no, it will be used to identify that the value for the touch-control variable for carrying out pressure touch operation is set to Second predetermined value;According to the value of the touch-control variable, judge whether to perform the screen-icon pressure touch operation.
- 5. the method according to claim 3 or 4, it is characterised in that judging the starting point of the prefixed time interval Before whether being more than or equal to second predetermined threshold value with the variable quantity of the atmospheric pressure value of the terminal, in addition to:According to the response speed of the touch-screen of the terminal, the prefixed time interval is determined.
- A kind of 6. screen control device, it is characterised in that including:Acquisition module, the touch operation for obtaining to the screen-icon of terminal instruct;Judge module, for detecting the atmospheric pressure value of the terminal inner according to the baroceptor of the terminal, judge whether Pressure touch operation is performed to the screen-icon;Execution module, in the case where the judgment result is yes, pressure touch operation being performed to the screen-icon;Or In the case where judged result is no, to screen-icon execution and the corresponding touch operation of touch operation instruction.
- 7. device according to claim 6, it is characterised in that the judge module includes:Whether the first judging unit, the atmospheric pressure value for judging to detect are more than or equal to the first predetermined threshold value;First determining unit, in the case where the judgment result is yes, being grasped it is determined that performing pressure touch to the screen-icon Make.
- 8. device according to claim 6, it is characterised in that the judge module includes:Second judging unit, for the atmospheric pressure value for judging to be used to detect the beginning and end of the prefixed time interval of atmospheric pressure value Variable quantity whether be more than or equal to the second predetermined threshold value;Second determining unit, in the case where the judgment result is yes, being grasped it is determined that performing pressure touch to the screen-icon Make.
- 9. device according to claim 8, it is characterised in that second judging unit, be additionally operable to judge the change Whether amount is more than or equal to second predetermined threshold value;In the case where the judgment result is yes, it will be used to identify that carrying out pressure touches The value for controlling the touch-control variable of operation is set to first predetermined value;Or in the case where judged result is no, it will be used to identify that progress The value of the touch-control variable of pressure touch operation is set to second predetermined value;According to the value of the touch-control variable, judge whether to described Screen-icon performs pressure touch operation.
- 10. device according to claim 8 or claim 9, it is characterised in that also include:3rd determining unit, for the response speed of the touch-screen according to the terminal, determine the prefixed time interval.
- A kind of 11. terminal, it is characterised in that including:Screen, baroceptor and processor, wherein,The processor, the touch operation for obtaining to the screen-icon of the terminal instruct;The baroceptor, for detecting the atmospheric pressure value of the terminal inner;The processor, it is additionally operable to according to the atmospheric pressure value is detected, judges whether to perform pressure touch to the screen-icon Operation;In the case where the judgment result is yes, pressure touch operation is performed to the screen-icon;Or it is in judged result In the case of no, the screen-icon is performed and the corresponding touch operation of touch operation instruction.
- 12. terminal according to claim 11, it is characterised in that the processor is additionally operable to judge the gas detected Whether pressure value is more than or equal to the first predetermined threshold value, in the case where the judgment result is yes, it is determined that being held to the screen-icon Row pressure touch operates.
- 13. the terminal according to claim 11 or 12, it is characterised in that the processor is additionally operable to judge to be used for probe gas Whether the variable quantity of the atmospheric pressure value of the beginning and end of the prefixed time interval of pressure value is more than or equal to the second predetermined threshold value; In the case where the judgment result is yes, it is determined that performing pressure touch operation to the screen-icon.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610800747.4A CN107797745A (en) | 2016-09-02 | 2016-09-02 | Screen control method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610800747.4A CN107797745A (en) | 2016-09-02 | 2016-09-02 | Screen control method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107797745A true CN107797745A (en) | 2018-03-13 |
Family
ID=61530521
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610800747.4A Pending CN107797745A (en) | 2016-09-02 | 2016-09-02 | Screen control method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107797745A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110554793A (en) * | 2018-06-04 | 2019-12-10 | 华为技术有限公司 | Terminal device and pressure touch method |
-
2016
- 2016-09-02 CN CN201610800747.4A patent/CN107797745A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110554793A (en) * | 2018-06-04 | 2019-12-10 | 华为技术有限公司 | Terminal device and pressure touch method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102548043B (en) | Apparatus and method for searching access points in portable terminal | |
CN104866226B (en) | A kind of terminal device and its control method | |
CN112419693B (en) | Device control method, device, display device and computer readable storage medium | |
CN110582078A (en) | Bluetooth pairing method and device, storage medium and electronic equipment | |
CN107576346A (en) | Detection method, device and the computer-readable recording medium of sensor | |
KR20080097789A (en) | Mobile terminal with touch input device and method of displaying item using same | |
CN109451130B (en) | Mobile terminal testing method and device, mobile terminal and storage medium | |
CN106776301B (en) | Subelement testing method and device | |
CN104808940A (en) | Method and device for transmitting data between terminals | |
JP6419041B2 (en) | System having power management function, user terminal, and power management method thereof | |
CN104298505A (en) | Operation method for application program | |
CN105549829A (en) | Setting project processing method and apparatus | |
CN109639370B (en) | Near field communication antenna detection method and device, mobile terminal and storage medium | |
CN113050863A (en) | Page switching method and device, storage medium and electronic equipment | |
CN107943549B (en) | Application processing method and terminal | |
CN107797745A (en) | Screen control method and device | |
CN107656686A (en) | Profile switching method and device | |
CN110891265B (en) | Wireless connection control method and device, mobile terminal and storage medium | |
CN110336917B (en) | Picture display method and device, storage medium and terminal | |
CN109684006B (en) | Terminal control method and device | |
CN104267976B (en) | A kind of information processing method and the electronic equipment for information processing | |
CN111026955A (en) | Application program recommendation method and electronic equipment | |
CN106789530B (en) | A kind of method for connecting network, device and mobile terminal | |
CN109558731B (en) | Feature code processing method, device and storage medium | |
CN111538706B (en) | Data compression method, device, storage medium and mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20180313 |