CN105335049A - Mobile terminal and method for dynamically redirecting volume key - Google Patents

Mobile terminal and method for dynamically redirecting volume key Download PDF

Info

Publication number
CN105335049A
CN105335049A CN201510711970.7A CN201510711970A CN105335049A CN 105335049 A CN105335049 A CN 105335049A CN 201510711970 A CN201510711970 A CN 201510711970A CN 105335049 A CN105335049 A CN 105335049A
Authority
CN
China
Prior art keywords
function
volume key
key
volume
mobile terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510711970.7A
Other languages
Chinese (zh)
Inventor
雷明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201510711970.7A priority Critical patent/CN105335049A/en
Publication of CN105335049A publication Critical patent/CN105335049A/en
Pending legal-status Critical Current

Links

Landscapes

  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a mobile terminal and a method for dynamically redirecting a volume key. The method comprises the following steps: at a preset functional interface, receiving and responding to a first operation signal, and moving a functional icon corresponding to a preset function to be nearby the volume key; and redirecting the function corresponding to the functional icon to the volume key, so that when the volume key receives a key pressing signal, the volume key controls and executes the preset function. By virtue of the way, the user experience can be enhanced.

Description

The method of mobile terminal and dynamically redirected volume key
Technical field
The present invention relates to field of mobile terminals, particularly relate to a kind of mobile terminal and the dynamic method being redirected volume key thereof.
Background technology
Current smart mobile phone is very popular and universal, and mobile phone is substantially all touch-screen, and physical button is considerably less, usually only has volume key.Sometimes user does not wish to adjust volume at any time, and wish the function function of volume key being changed temporarily into other, such as user wishes that when playing can open camera rapidly at any time captures, or open sound-track engraving apparatus rapidly to record, and these operations can be relatively slow by touch screen, easily miss some desirable picture or sound.
Summary of the invention
In order to solve the problems of the technologies described above, embodiments provide a kind of mobile terminal and the dynamic method being redirected volume key thereof, can Consumer's Experience be promoted.
The invention provides a kind of method that mobile terminal is dynamically redirected volume key, the method comprises: at preset function interface, receives and responds the first operation signal, moving near volume key by icon corresponding for preset function; Function corresponding to icon is redirected to volume key, when making volume key receive push button signalling, controls to perform preset function.
Wherein, volume key comprises volume and adds key or volume down key.
Wherein, the step function corresponding to icon being redirected to volume key comprises: receive the function register that application layer applications interface function is redirected volume key; An order broadcast is sent to application layer.
Wherein, when volume key receives push button signalling, the step performing preset function comprises: when volume key receives push button signalling, judge whether volume key have registered redirection function; If so, then send order broadcast to application layer, after making application layer receive broadcast, perform preset function.
Wherein, method also comprises: receive and respond the second operation signal, makes icon away near volume key; Nullify the redirection function of volume key.
The present invention also provides a kind of mobile terminal, comprising: processing module, at preset function interface, receives and responds the first operation signal, moving near volume key by icon corresponding for preset function; Redirection module, is connected with processing module, for the function corresponding to icon is redirected to volume key, when making volume key receive push button signalling, controls to perform preset function.
Wherein, volume key comprises volume and adds key or volume down key.
Wherein, redirection module is used for: receive the function register that application layer applications interface function is redirected volume key; An order broadcast is sent to application layer.
Wherein, mobile terminal also comprises execution module, and execution module is used for: when volume key receives push button signalling, judges whether volume key have registered redirection function; If so, then send order broadcast to application layer, after making application layer receive broadcast, perform preset function.
Wherein, mobile terminal also comprises cancellation module, cancellation module also for: receive and respond the second operation signal, making icon away near volume key; Nullify the redirection function of volume key.
Pass through such scheme, the invention has the beneficial effects as follows: by preset function interface, receive and respond the first operation signal, icon corresponding for preset function is moved near volume key, then the function corresponding to icon is redirected to volume key, when making volume key receive push button signalling, control to perform preset function, can Consumer's Experience be promoted.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.Wherein:
Fig. 1 is the schematic flow sheet of method that the mobile terminal of the embodiment of the present invention is dynamically redirected volume key;
Fig. 2 is that the mobile terminal of first embodiment of the invention is dynamically redirected the method schematic diagram of volume key;
Fig. 3 is that the mobile terminal of second embodiment of the invention is dynamically redirected the method schematic diagram of volume key;
Fig. 4 is that the mobile terminal of third embodiment of the invention is dynamically redirected the method schematic diagram of volume key;
Fig. 5 is the structural representation of the mobile terminal of first embodiment of the invention;
Fig. 6 is the structural representation of the mobile terminal of second embodiment of the invention;
Fig. 7 is the structural representation of the mobile terminal of third embodiment of the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under performing creative labour prerequisite, belong to the scope of protection of the invention.
Fig. 1 is the schematic flow sheet of method that the mobile terminal of the embodiment of the present invention is dynamically redirected volume key.As shown in Figure 1, mobile terminal is dynamically redirected the method for volume key and comprises:
Step S10: at preset function interface, receives and responds the first operation signal, being moved near volume key by icon corresponding for preset function.
Particularly, user is at the interface (interface of taking pictures as camera) of icon including preset function, press...with one's finger this icon, and dragged near volume key, then finger is decontroled, now, this volume key is redirected the function (as camera function) into correspondence, and this volume key side also shows this icon simultaneously.
Wherein, preset function can be camera function or sound-recording function etc., and this is not restricted.Volume key comprises volume and adds key or volume down key.Icon corresponding for preset function can be moved to volume and add key or volume down key.In other embodiments of the present invention, icon that also can be corresponding by different preset functions moves to different volume keys.As camera function icon moving corresponding for camera function added key to volume at camera interface, and recording interface by sound-recording function icon moving corresponding for sound-recording function to volume down key.On the contrary, also can be at camera interface by camera function icon moving corresponding for camera function to volume down key, and recording interface sound-recording function icon moving corresponding for sound-recording function is added key to volume.
Step S11: the function corresponding to icon is redirected to volume key, when making volume key receive push button signalling, controls to perform preset function.
In step s 11, the function register that application layer applications interface function is redirected volume key is received; An order broadcast is sent to application layer.
Alternatively, after the function corresponding to icon is redirected to volume key, at arbitrary function interface, when volume key receives push button signalling, judge whether volume key have registered redirection function; If so, then send this order broadcast to application layer, after making application layer receive broadcast, perform preset function.So make user can perform preset function fast, improve Consumer's Experience.
In embodiments of the present invention, when needing the redirection function nullifying volume key, the method that mobile terminal is dynamically redirected volume key also comprises: receive and respond the second operation signal, making icon away near volume key; Nullify the redirection function of volume key.
Alternatively, take preset function as camera function be example, mobile terminal is dynamically redirected the method schematic diagram of volume key as shown in Figure 2, at camera application function interface, in advance shutter icon being set to can be trailing, and see the figure a in Fig. 2, wherein A is that volume adds key, B is volume down key, and C is camera function icon.At camera application function interface, by shutter icon moving to volume down key side, as figure b, when decontroling icon, application program to the redirection function of the operating system registration volume down of mobile terminal, and specifies the icon that will show and the newer command that will perform simultaneously.Complete volume key be redirected after, demonstrate this icon registered on volume down key side, be redirected to point out the function of user's volume down key.See figure c, complete volume key be redirected after, at any function interface, namely current application program interface may not be camera function interface, and volume down keyed jointing receives volume key event, perform camera function.As schemed shown in d, if the redirection function of volume down key will be nullified, only the shutter icon on volume down key side need be removed, making shutter icon away from volume down key.
In embodiments of the present invention, as shown in Figure 3, mobile terminal application operating system layer 10 and application layer 11 realize the redirection function of volume key.At Application Program Interface, operating system layer 10 receives the function register of the redirected volume key of application layer 11, and can send an order broadcast to application layer 11.
More specifically, operating system layer 10 receives the registration of application layer 11, is redirected with the function realizing volume key.Need to define the interface function that application layer can be called for this reason, because volume key can add key or volume down key for volume, can define two interface functions, one adds the interface function that key function is redirected for volume, and one be the redirected interface function of volume down key function:
Only can certainly define an interface function, utilize the parameter in interface function to distinguish volume to add key or volume down key, effect is the same.
When application layer 11 application interface function carry out volume key function be redirected registration time, first operating system be presented at the icon of preset function on screen, to point out user, then records the order of be redirected preset function.For Android system, the order of the preset function be redirected is placed in BindingIntent (a kind of packaging container of order), save when pressing volume key event in BindingIntent, wish order broadcast (Intent) that operating system layer 10 sends, in operating system layer 10, preserved the redirection function of volume by Two Variables mVolumeKeyDownFunction and mVolumeKeyUpFunction.Operating system layer 10 can by judging whether mVolumeKeyDownFunction or mVolumeKeyUpFunction is that sky judges whether to be provided with redirection function.
When user presses the volume key on mobile terminal side, namely when volume key receives the first operation signal, operating system layer 10 first can receive key-press event, and then pass to application layer 11 and process, application layer 11 dynamically registers the New function of volume key to operating system layer 10, if after application layer have registered New function, operating system layer 10 performs new function after receiving key-press event, so just achieves being redirected of volume key function.Be implemented as, application layer 11 just registers an order to operating system layer 10, just sends the order of this registration after operating system layer 10 receives key-press event simply, or is received by application layer 11 and realize this order.Like this will be very flexible, improve Consumer's Experience.
When user has dragged icon after near volume key away from, operating system layer 10 can carry out the cancellation of redirection function, and its interface function realized is as follows:
Above-mentioned interface function is called by operating system layer 10, realizes icon to drag away near volume key, to nullify the redirection function of volume key.After the redirection function of volume key is canceled, cancels the icon display on volume key side, then variable mVolumeKeyDownFunction and mVolumeKeyUpFunction is set to sky.
Mobile terminal is after having key-press event to occur, need to judge whether it is volume key event, and judge whether further to have registered redirection function, namely whether mVolumeKeyDownFunction or mVolumeKeyUpFunction is empty, if then send the broadcast of redirection function.
Particularly see Fig. 4, the method that mobile terminal is dynamically redirected volume key comprises:
Step S100: start.
Step S101: key-press event occurs.
Step S102: determine whether that volume adds event.If so, then step S103 is performed; If not, then step S105 is performed.
Step S103: judge whether the redirection function that registration volume adds.If so, then step S104 is performed; If not, then step S105 is performed.
Step S104: the order broadcast sending registration.Then terminate.
In step S104, preset function is redirected to volume and adds key, making volume add keyed jointing when receiving push button signalling, performing preset function, as taken pictures.
Step S105: determine whether volume down event.If so, then step S106 is performed; If not, then step S108 is performed.
Step S106: the redirection function whether registering volume down.If so, then step S107 is performed; If not, then step S108 is performed.
Step S107: the order broadcast sending registration.Then terminate.
In step S104, preset function is redirected to volume down key, when making volume down keyed jointing receive push button signalling, performs preset function, as taken pictures.
Step S108: perform normal subsequent treatment.
In step S108, represent that volume adds key and volume down key is not all redirected preset function, now perform corresponding function according to push button signalling, namely if volume adds key signals, then perform volume and add function.If volume down key signals, then perform volume down function.If other key signals, then the corresponding function performing other keys.
Step S109: terminate.
In the invention process, after completing the redirection function of volume key, no matter whether application program exits, as long as press volume key all will perform relevant function.So application layer can start a background service, receive registration and broadcast to the order of operating system layer.Broadcast to the order of operating system layer to receive oneself registration as camera application program can start a background service, after receiving this order broadcast, just connect camera apparatus, and after making a system initial configuration, call takepicture function interface to take pictures.
If camera application program starts, just can not go again to connect camera apparatus, if therefore camera application program is in foreground initiation, then cancel the monitoring to order broadcast in the background service started, only have and just allow background service snoop command broadcast when camera application program exits foreground.When camera application program in foreground initiation, then monitor set order by camera application program and broadcast, after receiving relevant order broadcast, carry out photographing operation.
Fig. 5 is the structural representation of the mobile terminal of first embodiment of the invention.As shown in Figure 5, mobile terminal 20 comprises: processing module 21 and redirection module 22.Processing module 21, at preset function interface, receives and responds the first operation signal, being moved near volume key by icon corresponding for preset function.Redirection module 22 is connected with processing module 21, for the function corresponding to icon is redirected to volume key, when making volume key receive push button signalling, controls to perform preset function.
Wherein, preset function can be camera function or sound-recording function etc., and this is not restricted.Volume key comprises volume and adds key or volume down key.Icon corresponding for preset function can be moved to volume and add key or volume down key by processing module 21.In other embodiments of the present invention, the icon that processing module 21 also can be corresponding by different preset functions moves to different volume keys.As camera function icon moving corresponding for camera function added key to volume at camera interface, and recording interface by sound-recording function icon moving corresponding for sound-recording function to volume down key.On the contrary, processing module 21 also can be at camera interface by camera function icon moving corresponding for camera function to volume down key, and recording interface sound-recording function icon moving corresponding for sound-recording function is added key to volume.
In embodiments of the present invention, redirection module 22 for: receive the function register that application layer applications interface function is redirected volume key; An order broadcast is sent to application layer.At function of application interface, icon is moved to volume key side by processing module 21, when decontroling icon, answer redirection module 22 to the redirection function of the operating system registration volume of mobile terminal, and specify the icon that will show and the newer command that will perform simultaneously.Complete volume key be redirected after, demonstrate this icon registered on volume key side, be redirected to point out the function of user's volume key.
Alternatively, see Fig. 6, mobile terminal also comprises execution module 23.Execution module 23 for: when volume key receives push button signalling, judge whether volume key have registered redirection function; If so, then send order broadcast to application layer, after making application layer receive broadcast, perform preset function.Particularly, after the function corresponding to icon is redirected to volume key, at arbitrary function interface, when volume key receives push button signalling, whether execution module 23 is that sky judges whether volume key have registered redirection function by two parameters in order.In embodiments of the present invention, redirection module 22 just registers an order to operating system, just sends the order of this registration after operating system receives key-press event simply, is received and realize this order by execution module 23.Like this will be very flexible, improve Consumer's Experience.
Alternatively, see Fig. 7, mobile terminal 20 also comprises cancellation module 24.Cancellation module 24 also for: receive and respond the second operation signal, making icon away near volume key; Nullify the redirection function of volume key.Particularly, cancellation module 24 calls cancellation interface function, realizes icon to drag away near volume key, to nullify the redirection function of volume key.After the redirection function of volume key is canceled, cancels the icon display on volume key side, then correlated variables is set to sky.
In sum, the present invention passes through at preset function interface, receive and respond the first operation signal, icon corresponding for preset function is moved near volume key, then the function corresponding to icon is redirected to volume key, when making volume key receive push button signalling, control to perform preset function, can Consumer's Experience be promoted.
The foregoing is only embodiments of the invention; not thereby the scope of the claims of the present invention is limited; every utilize instructions of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.

Claims (10)

1. mobile terminal is dynamically redirected a method for volume key, and it is characterized in that, described method comprises:
At preset function interface, receive and respond the first operation signal, icon corresponding for described preset function is moved near volume key;
Function corresponding to described icon is redirected to described volume key, when making described volume key receive push button signalling, controls to perform described preset function.
2. method according to claim 1, is characterized in that, described volume key comprises volume and adds key or volume down key.
3. method according to claim 1, is characterized in that, described step function corresponding to described icon being redirected to described volume key comprises:
Receive the function register that application layer applications interface function is redirected described volume key;
An order broadcast is sent to described application layer.
4. method according to claim 3, is characterized in that, when described volume key receives push button signalling, the step performing described preset function comprises:
When described volume key receives described push button signalling, judge whether described volume key have registered redirection function;
If so, then send described order broadcast to described application layer, after making described application layer receive described broadcast, perform described preset function.
5. method according to claim 1, is characterized in that, described method also comprises:
Receive and respond the second operation signal, making described icon away near described volume key;
Nullify the redirection function of described volume key.
6. a mobile terminal, is characterized in that, described mobile terminal comprises:
Processing module, at preset function interface, receives and responds the first operation signal, moving near volume key by icon corresponding for described preset function;
Redirection module, is connected with described processing module, for the function corresponding to described icon is redirected to described volume key, when making described volume key receive push button signalling, controls to perform described preset function.
7. mobile terminal according to claim 6, is characterized in that, described volume key comprises volume and adds key or volume down key.
8. mobile terminal according to claim 6, is characterized in that, described redirection module is used for:
Receive the function register that application layer applications interface function is redirected described volume key;
An order broadcast is sent to described application layer.
9. mobile terminal according to claim 6, is characterized in that, described mobile terminal also comprises execution module, and described execution module is used for:
When described volume key receives described push button signalling, judge whether described volume key have registered redirection function;
If so, then send described order broadcast to described application layer, after making described application layer receive described broadcast, perform described preset function.
10. mobile terminal according to claim 6, is characterized in that, described mobile terminal also comprises cancellation module, described cancellation module also for:
Receive and respond the second operation signal, making described icon away near described volume key;
Nullify the redirection function of described volume key.
CN201510711970.7A 2015-10-27 2015-10-27 Mobile terminal and method for dynamically redirecting volume key Pending CN105335049A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510711970.7A CN105335049A (en) 2015-10-27 2015-10-27 Mobile terminal and method for dynamically redirecting volume key

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510711970.7A CN105335049A (en) 2015-10-27 2015-10-27 Mobile terminal and method for dynamically redirecting volume key

Publications (1)

Publication Number Publication Date
CN105335049A true CN105335049A (en) 2016-02-17

Family

ID=55285637

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510711970.7A Pending CN105335049A (en) 2015-10-27 2015-10-27 Mobile terminal and method for dynamically redirecting volume key

Country Status (1)

Country Link
CN (1) CN105335049A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105974929A (en) * 2016-06-11 2016-09-28 深圳市哈博森科技有限公司 Unmanned plane control method based on operation and control of intelligent device
CN109656731A (en) * 2018-12-21 2019-04-19 北京捷思锐科技股份有限公司 A kind of method and device of dynamic adaptation terminal push

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010136403A (en) * 2010-01-04 2010-06-17 Toshiba Corp Mobile phone
CN103544973A (en) * 2013-10-18 2014-01-29 深圳市欧珀通信软件有限公司 Method and device for song control of music player
CN103744530A (en) * 2014-01-24 2014-04-23 福州瑞芯微电子有限公司 System, terminal and method for realizing keyboard touching function
CN104020976A (en) * 2014-06-20 2014-09-03 深圳市中兴移动通信有限公司 Method and device for adjusting screen brightness
CN104951093A (en) * 2014-03-31 2015-09-30 维沃移动通信有限公司 Mobile terminal capable of calling programs or functions by customizing keys and method of mobile terminal
CN104980592A (en) * 2014-08-01 2015-10-14 陈青华 Intelligent mobile terminal intercommunication method and apparatus thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010136403A (en) * 2010-01-04 2010-06-17 Toshiba Corp Mobile phone
CN103544973A (en) * 2013-10-18 2014-01-29 深圳市欧珀通信软件有限公司 Method and device for song control of music player
CN103744530A (en) * 2014-01-24 2014-04-23 福州瑞芯微电子有限公司 System, terminal and method for realizing keyboard touching function
CN104951093A (en) * 2014-03-31 2015-09-30 维沃移动通信有限公司 Mobile terminal capable of calling programs or functions by customizing keys and method of mobile terminal
CN104020976A (en) * 2014-06-20 2014-09-03 深圳市中兴移动通信有限公司 Method and device for adjusting screen brightness
CN104980592A (en) * 2014-08-01 2015-10-14 陈青华 Intelligent mobile terminal intercommunication method and apparatus thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105974929A (en) * 2016-06-11 2016-09-28 深圳市哈博森科技有限公司 Unmanned plane control method based on operation and control of intelligent device
CN109656731A (en) * 2018-12-21 2019-04-19 北京捷思锐科技股份有限公司 A kind of method and device of dynamic adaptation terminal push

Similar Documents

Publication Publication Date Title
EP4030276B1 (en) Content continuation method and electronic device
CN105511686B (en) Call processing method, device and terminal electronic device
EP4002066A1 (en) Air gesture interaction method and electronic device
CN103092464B (en) End device and icon method of operating thereof
CN107205084B (en) Network speed processing method and device of application program and terminal
CN105159559A (en) Mobile terminal control method and mobile terminal
CN108196750B (en) Screen interface screenshot method and device and computer-readable storage medium
CN107728923B (en) Operation processing method and mobile terminal
JP6491237B2 (en) Method, apparatus, program and recording medium for processing touch screen point reports
CN104509123A (en) Apparatus and method for providing n-screen service in broadcast system
CN105487680A (en) Terminal screen capture method and apparatus and terminal
CN109542325B (en) Double-sided screen touch method, double-sided screen terminal and readable storage medium
CN101141505A (en) Earphone keying shot method of mobile phone
CN106603801B (en) Call recording method and device
CN110806832A (en) Parameter adjusting method and electronic equipment
CN105577775A (en) Dual-channel downloading method and device
CN105335049A (en) Mobile terminal and method for dynamically redirecting volume key
CN111556196B (en) Call method and device and electronic equipment
CN107943370A (en) Advertisement display method, device and storage medium
CN104023117B (en) A kind of method of information processing and electronic equipment
CN104780574A (en) Method and device for network switchover
CN111093133A (en) Wireless device control method, apparatus and computer readable storage medium
CN106714125A (en) Method and device for setting call transfer number
CN112351507B (en) Interaction control method, interaction control device, electronic equipment and readable storage medium
JP2005328321A5 (en)

Legal Events

Date Code Title Description
C06 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

Application publication date: 20160217

RJ01 Rejection of invention patent application after publication