CN108762639A - A kind of control method of physical button, mobile terminal and storage medium - Google Patents
A kind of control method of physical button, mobile terminal and storage medium Download PDFInfo
- Publication number
- CN108762639A CN108762639A CN201810522381.8A CN201810522381A CN108762639A CN 108762639 A CN108762639 A CN 108762639A CN 201810522381 A CN201810522381 A CN 201810522381A CN 108762639 A CN108762639 A CN 108762639A
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- virtual switch
- physical button
- application program
- button
- 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/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
- G06F3/0488—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 using a touch-screen or digitiser, e.g. input of commands through traced gestures
- G06F3/04886—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 using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus
-
- 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/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04847—Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Human Computer Interaction (AREA)
- Telephone Function (AREA)
Abstract
The invention discloses a kind of control methods of physical button, are applied to mobile terminal, including:The operational order for application program is received, and judges whether the application program belongs in preset application program list;If so, when starting the application program, the corresponding function of physical button of the mobile terminal is closed according to button inventory, wherein include at least one of mobile terminal physical button in the button inventory;Virtual switch is generated, and the virtual switch is used to release the closing to the physical button function;Judge whether the mobile terminal receives the operational order that triggering shows the virtual switch, if so, showing the virtual switch in the current interface of the mobile terminal.In addition, the present invention also provides a kind of terminal device and a kind of storage mediums, using the embodiment of the present invention, user is effectively avoided to encounter physical button in executing application mistiming, cause the problem that user experience is bad.
Description
Technical field
The present invention relates to a kind of field of mobile terminals more particularly to control method of physical button, mobile terminal and storages
Medium.
Background technology
Physical button is usually contained in mobile terminal, i.e., has the physical button for executing certain function in mobile terminal.Separately
Outside, can install in the terminal can realize the application program of certain application purpose, and starting the application program can be real
The interaction at current family and mobile terminal.
In the prior art, for mobile terminal when starting application program, the corresponding current interface of the application program can be paved with shifting
The current display interface of dynamic terminal, executes for user.When user executes for current interface, if hand
Or wrist accidentally touches physical button then and can execute the corresponding function of the physical button, and then change current display circle
The content in face.For example, when user accidentallys run into return key, then current display interface can be returned to for the application program
Last layer.
Therefore, existing mobile terminal can accidentally be touched when executing program physical button operation can be brought to user it is bad
Experience.
Invention content
It is a primary object of the present invention to propose a kind of control method of physical button, mobile terminal and storage medium, purport
Encounter physical button in executing application mistiming solving user, causes the problem that user experience is bad.
To achieve the above object, the present invention proposes a kind of control method of physical button, is applied to mobile terminal, the side
Method includes:
The operational order for application program is received, and judges whether the application program belongs to preset application name
Dan Zhong;
If so, when starting the application program, the physical button pair of the mobile terminal is closed according to button inventory
The function of answering, wherein include at least one of mobile terminal physical button in the button inventory;
Virtual switch is generated, and the virtual switch is used to release the closing to the physical button function;
Judge whether the mobile terminal receives the operational order that triggering shows the virtual switch,
If so, showing the virtual switch in the current interface of the mobile terminal.
In said program, the method further includes:
In the case where the virtual switch triggers, the closing to the physical button function is released.
In said program, the generation virtual switch the step of after, the method further includes:
The virtual switch is hidden under the current display interface of the application program.
It is described to judge whether the mobile terminal receives triggering and show that the operation of the virtual switch refers in said program
The step of enabling, including:
Judge double-click behaviour whether is received in the current display interface of the application program or on the desktop of application program
Work, long press operation or slide,
If so, determining that the mobile terminal receives the operational order that triggering shows the virtual switch;
Alternatively,
Judge whether the time for not receiving any operational order of the application program is more than preset time,
If so, determining that the mobile terminal receives the operational order that triggering shows the virtual switch.
In said program, the method further includes:
The selection instruction for the virtual switch is received, and determines the final position of the selection instruction;
The virtual switch is moved to the final position.
In said program, the step virtual switch being hidden under the current display interface of the application program
Suddenly, including:
It is default to judge whether the virtual switch is not less than in the display time of the current display interface of the application program
Threshold value;
If so, the virtual switch is hidden under the current display interface of the application program.
In said program, the method further includes:
The virtual switch is placed in predeterminated position.
In said program, the predeterminated position is to be oppositely arranged with the physical button present position.
In addition, to achieve the above object, the present invention proposes a kind of mobile terminal, the mobile terminal include processor,
And the memory being connect with processor by communication bus;Wherein,
The memory, the control program for storing physical button;
The processor, the control program for executing the physical button, to realize following steps:
The operational order for application program is received, and judges whether the application program belongs to preset application name
Dan Zhong;
If so, when starting the application program, the physical button pair of the mobile terminal is closed according to button inventory
The function of answering, wherein include at least one of mobile terminal physical button in the button inventory;
Virtual switch is generated, and the virtual switch is used to release the closing to the physical button function;
Judge whether the mobile terminal receives the operational order that triggering shows the virtual switch,
If so, showing the virtual switch in the current interface of the mobile terminal.
In said program, the processor is used to execute the control program of physical button, to realize following steps:
In the case where the virtual switch triggers, the closing to the physical button function is released.
In said program, the processor is used to execute the control program of physical button, to realize following steps:
The virtual switch is hidden under the current display interface of the application program.
In said program, the processor is used to execute the control program of physical button, to realize following steps:
Judge double-click behaviour whether is received in the current display interface of the application program or on the desktop of application program
Work, long press operation or slide,
If so, determining that the mobile terminal receives the operational order that triggering shows the virtual switch;
Alternatively,
Judge whether the time for not receiving any operational order of the application program is more than preset time,
If so, determining that the mobile terminal receives the operational order that triggering shows the virtual switch.
In said program, the processor is used to execute the control program of physical button, to realize following steps:
The selection instruction for the virtual switch is received, and determines the final position of the selection instruction;
The virtual switch is moved to the final position.
In said program, the processor is used to execute the control program of physical button, to realize:
It is default to judge whether the virtual switch is not less than in the display time of the current display interface of the application program
Threshold value;
If so, the virtual switch is hidden under the current display interface of the application program.
In said program, the processor is used to execute the control program of physical button, to realize following steps:
The virtual switch is placed in predeterminated position.
In said program, the processor is used to execute the control program of physical button, to realize following steps:It is described pre-
If position is to be oppositely arranged with the physical button present position.
To achieve the above object, the present invention proposes a kind of storage medium, and there are one the storage medium storages or more
A program, one or more of programs can be executed by one or more processor, so that one or more of places
It manages device and executes following steps:
The operational order for application program is received, and judges whether the application program belongs to preset application name
Dan Zhong;
If so, when starting the application program, the physical button pair of the mobile terminal is closed according to button inventory
The function of answering, wherein include at least one of mobile terminal physical button in the button inventory;
Virtual switch is generated, and the virtual switch is used to release the closing to the physical button function;
Judge whether the mobile terminal receives the operational order that triggering shows the virtual switch,
If so, showing the virtual switch in the current interface of the mobile terminal.
Therefore, compared to the prior art, the control method of physical button proposed by the invention, mobile terminal and storage are situated between
Matter receives the operational order for application program in mobile terminal, and belongs to preset application name in the application program
In the case of in list, starts application program and closes the corresponding function of physical button of the mobile terminal according to button inventory,
And a virtual switch is generated, and show virtual switch in the case where virtual switch is triggered display, so that user executes void
The closing motion of quasi- switch, restores the function of physical button again, and user can effectively be avoided to carry out mobile terminal in this way
The operation of current interface causes accidentally to touch the problem of physical button causes mobile terminal current display interface to change.So using this hair
The embodiment of bright offer solves user and encounters physical button in executing application mistiming, causes user experience is bad to ask
Topic, and then improve user experience.
Description of the drawings
Fig. 1 to realize the present invention in each embodiment an optional mobile terminal hardware architecture diagram;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
One optional flow diagram of the control method for the physical button that Fig. 3 is provided by the embodiment of the present invention;
The one optional application scenarios schematic diagram of control method for the physical button that Fig. 4 is provided by the embodiment of the present invention;
Another optional application scenarios schematic diagram of the control method for the physical button that Fig. 5 is provided by the embodiment of the present invention.
Reference numeral:
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific implementation mode
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, using for indicating that the suffix of such as " module ", " component " or " unit " of element is only
The explanation for being conducive to the present invention, itself does not have a specific meaning.Therefore, " module ", " component " or " unit " can mix
Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, tablet
Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable
The shiftings such as media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer
The fixed terminals such as dynamic terminal, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special
Except element for moving purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware architecture diagram of its mobile terminal of each embodiment to realize the present invention, the shifting
Moving terminal 100 may include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit
103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit
108, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1
Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal may include components more more or fewer than diagram,
Either combine certain components or different components arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station
Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101
Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating
Frequency unit 101 can also be communicated with network and other equipment by radio communication.Above-mentioned wireless communication can use any communication
Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications
System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code
Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division
Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code
Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division
Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division
Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102
Sub- mail, browsing webpage and access streaming video etc., it has provided wireless broadband internet to the user and has accessed.Although Fig. 1 shows
Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need
It to be omitted in the range for the essence for not changing invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100
When under the isotypes such as formula, speech recognition mode, broadcast reception mode, it is that radio frequency unit 101 or WiFi module 102 are received or
The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103
The relevant audio output of specific function executed with mobile terminal 100 can also be provided (for example, call signal receives sound, disappears
Breath receives sound etc.).Audio output unit 103 may include loud speaker, buzzer etc..
A/V input units 104 are for receiving audio or video signal.A/V input units 104 may include graphics processor
(Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode
Or the image data of the static images or video obtained by image capture apparatus (such as camera) in image capture mode carries out
Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited
Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike
Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042
Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can
To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case of telephone calling model.
Microphone 1042 can implement various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition)
The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear
Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axis) size of acceleration, size and the direction of gravity are can detect that when static, can be used to identify the application of mobile phone posture
(such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;
The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer,
The other sensors such as hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap
Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode may be used
Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal
Family is arranged and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with
And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect user on it or neighbouring touch operation
(for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071
Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection
Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band
The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it
It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can
To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel
1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap
It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating lever etc.
It is one or more, do not limit herein specifically.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or
After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing
The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel
1061 be to realize the function that outputs and inputs of mobile terminal as two independent components, but in certain embodiments, can
The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically
It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example,
External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing
Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number
It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with
For the transmission data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can include mainly storing program area
And storage data field, wherein storing program area can storage program area, application program (such as the sound needed at least one function
Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as
Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection
A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage
Data in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place
Reason device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated
Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main
Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111
Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put
The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
Embodiment to facilitate the understanding of the present invention, below to the communications network system that is based on of mobile terminal of the present invention into
Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network system
System is the LTE system of universal mobile communications technology, which includes communicating UE (User Equipment, the use of connection successively
Family equipment) (the lands Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN
Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation
204。
Specifically, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning
Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203,
ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS
(Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving GateWay,
Gateway) 2034, PGW (PDN GateWay, grouped data network gateway) 2035 and PCRF (Policy and Charging
Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 is between handling UE201 and EPC203
The control node of signaling, provides carrying and connection management.HSS2032 is for providing some registers to manage such as homing position
The function of register (not shown) etc, and some are preserved in relation to the dedicated letter of the users such as service features, data rate
Breath.All customer data can be sent by SGW2034, PGW2035 can provide UE 201 IP address distribute with
And other functions, PCRF2036 are the strategy and charging control policy decision point of business data flow and IP bearing resources, it is plan
Available strategy and charging control decision are slightly selected and provided with charge execution function unit (not shown).
IP operation 204 may include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia
System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not only
Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with
And the following new network system etc., it does not limit herein.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the method for the present invention is proposed.
To solve prior art problem, the embodiment of the present invention propose a kind of control method of physical button, mobile terminal with
And storage medium, the technical solution of the present invention is further elaborated in the following with reference to the drawings and specific embodiments.
The embodiment of the present invention provides a kind of control method of physical button, is applied to mobile terminal, Fig. 3 is to realize the present invention
One optional flow diagram of the control method for the physical button that embodiment is provided, as shown in figure 3, the control of the physical button
Method processed includes the following steps:
Step S310:The operational order for application program is received, and judges whether the application program belongs to preset
In application program list, if so, executing S320.
It should be noted that application program, refers to complete the computer program of a certain or multinomial particular job, it is operated in
User mode can be interacted with user, have visual user interface.Application program is usually divided into two parts again:Figure
It is different from the concept of application software for shape user interface (GUI) and engine (Engien).Application software refers to the purpose classification used,
Can be single program or the set of other slave components, such as Microsoft Office, OpenOffice.Application program refers to
Single executable file or single program, such as Word, Photoshop.The computer end application program for computer can be divided into,
With the application program for mobile terminals such as mobile phones.
It should be noted that being equipped with many application programs in mobile terminal, for example, Taobao, wechat and payment are soft
Part and news application APP and game APP etc..In the terminal, it when user sends enabled instruction to mobile terminal, executes
For the start-up operation of the application program.For example, user clicks the corresponding icon of mobile terminal game, then mobile terminal is held
Row starts the operation of game.
On the other hand, application program list can be previously provided in mobile terminal, when mobile terminal receives an application
When the enabled instruction of program, mobile terminal judges whether the application program belongs in the application program, no if it is execution S320
Then not execute the following steps in the embodiment of the present invention.
Illustratively, it is fighting landlord software that the operational order of user, which is startup, and fighting landlord software belongs to preset application
In program list.Can include multiple application programs in preset application program list in addition, it is necessary to illustrate, it can also
Include only an application program, the embodiment of the present invention is not specifically limited herein.
In addition, which user can enter in application program list, manual setting or acquiescence can be carried out by user
Automatic setting, such as after the complete application program of user installation, mobile terminal will appear dialog box prompt, ask user true
Recognize and whether the application program is added in application program list.
Step S320:When starting the application program, the physical button of the mobile terminal is closed according to button inventory
Corresponding function, wherein include at least one of mobile terminal physical button in the button inventory.
It is understood that when application program launching, an object is included at least in the button inventory of mobile terminal
Button is managed, can also include all physical buttons of mobile terminal.It is understood that each physical button is one corresponding
Function.
The physical button for including in illustrative button inventory is:Return last layer menu key, return main interface button,
Stop button, screen locking button.
So when user starts game application, it may turn off the return last layer menu key of mobile terminal, return
Return main interface button, stop button, screen locking button these corresponding functions.Last layer menu is returned when the user clicks
When returning to any one button in main interface button, stop button, screen locking button, button is not carried out in button
The function of returning to last layer is not carried out for example, clicking and returning to last layer menu key in corresponding function.
Step S330:Virtual switch is generated, and the virtual switch is used to release the closing to the physical button function.
In the embodiment of the present invention, the virtual switch of generation, and virtual switch is placed on display screen, the effect of the virtual switch
When it is triggered for the closing to physical button corresponding function.
It is understood that when virtual switch generates, then the physical button function in button inventory can be closed, then
When it is triggered, the function of physical button can be resumed.
Step S340:Judge whether the mobile terminal receives the operational order that triggering shows the virtual switch, and
In the case where the judgment result is yes, S350 is executed.
S350 shows the virtual switch in the current interface of the mobile terminal.
It is understood that virtual switch generate after be cannot be always in the current interface of present mobile terminal, otherwise
It can influence user experience current application program.Therefore, when user triggers the operational order of virtual reality switch, this is virtual
Switch can be come out by reality, and for user's operation, avoiding virtual switch, reality causes bad body to user in current interface always
It tests.
Compared to the prior art, the control method for the physical button that the embodiment of the present invention is proposed is received in mobile terminal
To the operational order for application program, and in the case where the application program belongs in preset application program list, start
Application program and the corresponding function of physical button that the mobile terminal is closed according to button inventory, and generate one and virtually open
It closes, and virtual switch is shown in the case where virtual switch is triggered display, so that user executes the closing motion of virtual switch,
Again the function of restoring physical button, can effectively avoid user from causing in the operation for carrying out mobile terminal current interface in this way
Accidentally touch the problem of physical button causes mobile terminal current display interface to change.So using embodiment provided by the invention, solution
The user that determined encounters physical button in executing application mistiming, causes the problem that user experience is bad, and then improve user
Experience.
In the preferred embodiment of the present invention, the method further includes:In the case where the virtual switch triggers, release
Closing to the physical button function.As long as user triggers the out code of virtual switch, then can be realized to virtual
The closing of switch is illustrated in figure 4 to restore the function of each physical button in button inventory in physical button function
Prompt when recovery.
Further, the operation in order to not influence virtual switch to current display interface, so the virtual switch is hidden
It is hidden under the current display interface of the application program.And it is displayed when virtual switch needs display.
In addition, mobile scheme can be carried out by additionally providing a kind of virtual switch, so as to user according to the demand of oneself into
The movement of row virtual switch by reception for the selection instruction of the virtual switch, and determines the termination of the selection instruction
Position;The virtual switch is moved to the final position, as shown in figure 5, for the dragging track to virtual switch.
In the preferred embodiment of the present invention, described to judge whether the mobile terminal receives triggering display described virtual
The step of operational order of switch, including:Judge in the current display interface of the application program or the desktop of application program
On whether receive double click operation, long press operation or slide, if so, it is aobvious to determine that the mobile terminal receives triggering
Show the operational order of the virtual switch;Alternatively, judge the application program the time for not receiving any operational order whether
More than preset time, if so, determining that the mobile terminal receives the operational order that triggering shows the virtual switch.It realizes
To the display trigger action of virtual switch.
On the other hand, can also in virtual switch when the display time of current display interface reaching predetermined threshold value, if
The instruction that user triggers not yet, then being hidden.Specially:Judge the virtual switch in the current of the application program
Whether the display time of display interface is not less than predetermined threshold value;If so, the virtual switch is hidden in the application program
Current display interface under.In a kind of realization method of the present invention, it can be set to when virtual switch generates preset
Position.Specifically, the predeterminated position is to be oppositely arranged with the physical button present position, for example, physical button is in movement
The lower section of terminal, then virtual switch is in the top of mobile terminal.
Further, the present invention provides a kind of mobile terminals, and please continue to refer to Fig. 1, the mobile terminal includes processing
Device 110 and the memory 109 being connect with processor 110 by communication bus;Wherein,
The memory 109, the control program for storing physical button;
The processor 110, the control program for executing physical button, to realize following steps:
The operational order for application program is received, and judges whether the application program belongs to preset application name
Dan Zhong;
If so, when starting the application program, the physical button pair of the mobile terminal is closed according to button inventory
The function of answering, wherein include at least one of mobile terminal physical button in the button inventory;
Virtual switch is generated, and the virtual switch is used to release the closing to the physical button function;
Judge whether the mobile terminal receives the operational order that triggering shows the virtual switch,
If so, showing the virtual switch in the current interface of the mobile terminal.
Optionally, the processor 110, the control program for executing physical button, to realize following steps:
In the case where the virtual switch triggers, the closing to the physical button function is released.
Optionally, the processor 110, the control program for executing physical button, to realize following steps:
The virtual switch is hidden under the current display interface of the application program.
Optionally, the processor 110, the control program for executing physical button, to realize following steps:
Judge double-click behaviour whether is received in the current display interface of the application program or on the desktop of application program
Work, long press operation or slide,
If so, determining that the mobile terminal receives the operational order that triggering shows the virtual switch;
Alternatively,
Judge whether the time for not receiving any operational order of the application program is more than preset time,
If so, determining that the mobile terminal receives the operational order that triggering shows the virtual switch.
Optionally, the processor 110, the control program for executing physical button, to realize following steps:
The selection instruction for the virtual switch is received, and determines the final position of the selection instruction;
The virtual switch is moved to the final position.
Optionally, the processor 110, the control program for executing physical button, to realize following steps:
It is default to judge whether the virtual switch is not less than in the display time of the current display interface of the application program
Threshold value;
If so, the virtual switch is hidden under the current display interface of the application program.
Optionally, the processor 110, the control program for executing physical button, to realize following steps:
The predeterminated position that is placed in of the virtual switch is enabled.
Optionally, the processor 110, the control program for executing physical button, to realize:The predeterminated position with
The physical button present position is to be oppositely arranged.
Compared to the prior art, the mobile terminal that the embodiment of the present invention is proposed is received in mobile terminal for application
The operational order of program, and in the case where the application program belongs in preset application program list, start application program and
The corresponding function of physical button of the mobile terminal is closed according to button inventory, and generates a virtual switch, and virtual
It switchs and shows virtual switch in the case of being triggered display, so that user executes the closing motion of virtual switch, restore object again
The function of managing button, can effectively avoid in this way user the operation for carrying out mobile terminal current interface cause accidentally to touch physics by
The problem of key causes mobile terminal current display interface to change.So using embodiment provided by the invention, solves user and exist
Executing application mistiming encounters physical button, causes the problem that user experience is bad, and then improve user experience.
Further, the present invention also provides a kind of storage medium, the storage medium is stored with one or more journey
Sequence, one or more of programs can be executed by one or more processor, to realize following steps:
The operational order for application program is received, and judges whether the application program belongs to preset application name
Dan Zhong;
If so, when starting the application program, the physical button pair of the mobile terminal is closed according to button inventory
The function of answering, wherein include at least one of mobile terminal physical button in the button inventory;
Virtual switch is generated, and the virtual switch is used to release the closing to the physical button function;
Judge whether the mobile terminal receives the operational order that triggering shows the virtual switch,
If so, showing the virtual switch in the current interface of the mobile terminal.
Optionally, one or more of programs are also executed by one or more of processors, following to realize
Step:
In the case where the virtual switch triggers, the closing to the physical button function is released.
Optionally, one or more of programs are also executed by one or more of processors, following to realize
Step:
The virtual switch is hidden under the current display interface of the application program.
Optionally, one or more of programs are also executed by one or more of processors, as follows to realize
Step:
Judge double-click behaviour whether is received in the current display interface of the application program or on the desktop of application program
Work, long press operation or slide,
If so, determining that the mobile terminal receives the operational order that triggering shows the virtual switch;
Alternatively,
Judge whether the time for not receiving any operational order of the application program is more than preset time,
If so, determining that the mobile terminal receives the operational order that triggering shows the virtual switch.
Optionally, one or more of programs are also executed by one or more of processors, as follows to realize
Step:
The selection instruction for the virtual switch is received, and determines the final position of the selection instruction;
The virtual switch is moved to the final position.
Optionally, one or more of programs are also executed by one or more of processors, as follows to realize
Step:
It is default to judge whether the virtual switch is not less than in the display time of the current display interface of the application program
Threshold value;
If so, the virtual switch is hidden under the current display interface of the application program.
Optionally, one or more of programs are also executed by one or more of processors, as follows to realize
Step:
The virtual switch is placed in predeterminated position.
Optionally, one or more of programs are also executed by one or more of processors, to realize:It is described
Predeterminated position is to be oppositely arranged with the physical button present position.
Compared to the prior art, the storage medium that the embodiment of the present invention is proposed is received in mobile terminal for application
The operational order of program, and in the case where the application program belongs in preset application program list, start application program and
The corresponding function of physical button of the mobile terminal is closed according to button inventory, and generates a virtual switch, and virtual
It switchs and shows virtual switch in the case of being triggered display, so that user executes the closing motion of virtual switch, restore object again
The function of managing button, can effectively avoid in this way user the operation for carrying out mobile terminal current interface cause accidentally to touch physics by
The problem of key causes mobile terminal current display interface to change.So using embodiment provided by the invention, solves user and exist
Executing application mistiming encounters physical button, causes the problem that user experience is bad, and then improve user experience.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art
Going out the part of contribution can be expressed in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a mobile terminal (can be mobile phone, computer, clothes
Be engaged in device, air conditioner or the network equipment, robot etc.) execute method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of control method of physical button is applied to mobile terminal, which is characterized in that the method includes:
The operational order for application program is received, and judges whether the application program belongs to preset application program list
In;
If so, when starting the application program, the physical button that the mobile terminal is closed according to button inventory is corresponding
Function, wherein include at least one of mobile terminal physical button in the button inventory;
Virtual switch is generated, and the virtual switch is used to release the closing to the physical button function;
Judge whether the mobile terminal receives the operational order that triggering shows the virtual switch,
If so, showing the virtual switch in the current interface of the mobile terminal.
2. the control method of physical button according to claim 1, which is characterized in that the method further includes:
In the case where the virtual switch triggers, the closing to the physical button function is released.
3. the control method of physical button according to claim 1 or 2, which is characterized in that in the generation virtual switch
The step of after, the method further includes:
The virtual switch is hidden under the current display interface of the application program.
4. the control method of physical button according to claim 3, which is characterized in that described to judge that the mobile terminal is
The step of no operational order for receiving the triggering display virtual switch, including:
Judge double click operation, length whether are received in the current display interface of the application program or on the desktop of application program
By operation or slide,
If so, determining that the mobile terminal receives the operational order that triggering shows the virtual switch;
Alternatively,
Judge whether the time for not receiving any operational order of the application program is more than preset time,
If so, determining that the mobile terminal receives the operational order that triggering shows the virtual switch.
5. the control method of physical button according to claim 3, which is characterized in that the method further includes:
The selection instruction for the virtual switch is received, and determines the final position of the selection instruction;
The virtual switch is moved to the final position.
6. the control method of physical button according to claim 1 according to claim 3, which is characterized in that institute
State the step of virtual switch being hidden under the current display interface of the application program, including:
Judge whether the virtual switch is not less than predetermined threshold value in the display time of the current display interface of the application program;
If so, the virtual switch is hidden under the current display interface of the application program.
7. the control method of physical button according to claim 1, which is characterized in that the method further includes:
The virtual switch is placed in predeterminated position.
8. the control method of physical button according to claim 7, which is characterized in that the predeterminated position and the physics
Button present position is to be oppositely arranged.
9. a kind of mobile terminal, which is characterized in that the mobile terminal includes processor and by communication bus and processor
The memory of connection;Wherein,
The memory, the control program for storing physical button;
The processor, the control program for executing the physical button, to realize following steps:
The operational order for application program is received, and judges whether the application program belongs to preset application program list
In;
If so, when starting the application program, the physical button that the mobile terminal is closed according to button inventory is corresponding
Function, wherein include at least one of mobile terminal physical button in the button inventory;
Virtual switch is generated, and the virtual switch is used to release the closing to the physical button function;
Judge whether the mobile terminal receives the operational order that triggering shows the virtual switch,
If so, showing the virtual switch in the current interface of the mobile terminal.
10. a kind of storage medium, which is characterized in that the storage medium is stored with one or more program, it is one or
The multiple programs of person can be executed by one or more processor, so that one or more of processors execute such as claim
The step of control method of 1-8 any one of them physical buttons.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810522381.8A CN108762639A (en) | 2018-05-28 | 2018-05-28 | A kind of control method of physical button, mobile terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810522381.8A CN108762639A (en) | 2018-05-28 | 2018-05-28 | A kind of control method of physical button, mobile terminal and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108762639A true CN108762639A (en) | 2018-11-06 |
Family
ID=64002895
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810522381.8A Pending CN108762639A (en) | 2018-05-28 | 2018-05-28 | A kind of control method of physical button, mobile terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108762639A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109814789A (en) * | 2019-02-25 | 2019-05-28 | 努比亚技术有限公司 | Power button processing method, wearable device and computer readable storage medium |
CN111163215A (en) * | 2019-12-11 | 2020-05-15 | 上海传英信息技术有限公司 | Application running method, terminal and computer readable storage medium |
CN113663324A (en) * | 2021-08-20 | 2021-11-19 | 西安万像电子科技有限公司 | Control method and device of terminal application and computer readable storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104572071A (en) * | 2014-12-02 | 2015-04-29 | 深圳市金立通信设备有限公司 | Terminal |
CN104980586A (en) * | 2015-06-26 | 2015-10-14 | 努比亚技术有限公司 | Control method and device of terminal physical button |
CN105867797A (en) * | 2015-12-04 | 2016-08-17 | 乐视移动智能信息技术(北京)有限公司 | Control method and device of virtual keys on touch screen, and mobile terminal |
EP3190499A4 (en) * | 2014-09-03 | 2017-09-06 | ZTE Corporation | Method and apparatus for switching key functions of touchscreen terminal |
CN107256088A (en) * | 2017-06-13 | 2017-10-17 | 北京小米移动软件有限公司 | Operating method, device and the computer-readable recording medium of terminal |
CN107390977A (en) * | 2017-07-27 | 2017-11-24 | 广东欧珀移动通信有限公司 | Button operation method, apparatus and storage medium |
CN107678634A (en) * | 2017-09-26 | 2018-02-09 | 努比亚技术有限公司 | The method to set up and terminal of game mode, computer-readable recording medium |
-
2018
- 2018-05-28 CN CN201810522381.8A patent/CN108762639A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3190499A4 (en) * | 2014-09-03 | 2017-09-06 | ZTE Corporation | Method and apparatus for switching key functions of touchscreen terminal |
CN104572071A (en) * | 2014-12-02 | 2015-04-29 | 深圳市金立通信设备有限公司 | Terminal |
CN104980586A (en) * | 2015-06-26 | 2015-10-14 | 努比亚技术有限公司 | Control method and device of terminal physical button |
CN105867797A (en) * | 2015-12-04 | 2016-08-17 | 乐视移动智能信息技术(北京)有限公司 | Control method and device of virtual keys on touch screen, and mobile terminal |
CN107256088A (en) * | 2017-06-13 | 2017-10-17 | 北京小米移动软件有限公司 | Operating method, device and the computer-readable recording medium of terminal |
CN107390977A (en) * | 2017-07-27 | 2017-11-24 | 广东欧珀移动通信有限公司 | Button operation method, apparatus and storage medium |
CN107678634A (en) * | 2017-09-26 | 2018-02-09 | 努比亚技术有限公司 | The method to set up and terminal of game mode, computer-readable recording medium |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109814789A (en) * | 2019-02-25 | 2019-05-28 | 努比亚技术有限公司 | Power button processing method, wearable device and computer readable storage medium |
CN111163215A (en) * | 2019-12-11 | 2020-05-15 | 上海传英信息技术有限公司 | Application running method, terminal and computer readable storage medium |
CN113663324A (en) * | 2021-08-20 | 2021-11-19 | 西安万像电子科技有限公司 | Control method and device of terminal application and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108415636A (en) | A kind of generation method, mobile terminal and the storage medium of suspension button | |
CN109040441A (en) | Using display methods of attending to anything else, mobile terminal and computer readable storage medium | |
CN109407957A (en) | Screen touch control method, terminal and computer readable storage medium | |
CN108479066A (en) | False-touch prevention method, mobile terminal and computer readable storage medium | |
CN109224436A (en) | Virtual key based on interface defines method, terminal and storage medium | |
CN109992183A (en) | Preview picture and the method for selection, terminal and storage medium | |
CN108600669A (en) | Game video method for recording, mobile terminal and computer readable storage medium | |
CN108762631A (en) | A kind of method for controlling mobile terminal, mobile terminal and computer readable storage medium | |
CN108172161A (en) | Display methods, mobile terminal and computer readable storage medium based on flexible screen | |
CN109558054A (en) | A kind of message treatment method of mobile terminal, mobile terminal and storage medium | |
CN109462700A (en) | A kind of call method, mobile terminal and computer readable storage medium | |
CN109542325A (en) | Double-sided screen touch control method, double-sided screen terminal, readable storage medium storing program for executing | |
CN107450796B (en) | A kind of image processing method, mobile terminal and computer readable storage medium | |
CN108762639A (en) | A kind of control method of physical button, mobile terminal and storage medium | |
CN108614720A (en) | Application program launching method, equipment and computer readable storage medium | |
CN108241808A (en) | identification code display control method, terminal and computer readable storage medium | |
CN110096213A (en) | Terminal operation method, mobile terminal and readable storage medium storing program for executing based on gesture | |
CN109309762A (en) | Message treatment method, device, mobile terminal and storage medium | |
CN109165042A (en) | Restoration methods, terminal and computer readable storage medium are interrupted in a kind of application | |
CN109101301A (en) | A kind of display control method, mobile terminal and computer readable storage medium | |
CN108536368A (en) | Button application method, terminal and computer readable storage medium | |
CN108108092A (en) | The method, apparatus and computer readable storage medium that message is checked under screen mode toggle | |
CN110187934A (en) | Application control method, terminal and computer readable storage medium | |
CN110099173A (en) | Method, terminal and the storage medium of touch experience pattern switching | |
CN109683796A (en) | A kind of interaction control method, equipment and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181106 |