CN105426106A - Method and apparatus for switching songs in screen-locking state - Google Patents
Method and apparatus for switching songs in screen-locking state Download PDFInfo
- Publication number
- CN105426106A CN105426106A CN201510847152.XA CN201510847152A CN105426106A CN 105426106 A CN105426106 A CN 105426106A CN 201510847152 A CN201510847152 A CN 201510847152A CN 105426106 A CN105426106 A CN 105426106A
- Authority
- CN
- China
- Prior art keywords
- song
- sliding
- lock state
- screen lock
- slip
- 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/04883—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 for inputting data by handwriting, e.g. gesture or text
Abstract
The invention provides a method and an apparatus for switching songs in a screen-locking state. The method for switching the songs in the screen-locking state comprises the following steps: in the screen-locking state, obtaining an operation instruction of a user; detecting a corresponding relationship between the operation instruction of the user and a preset instruction; and according to the corresponding relationship between the operation instruction and the preset instruction, switching the songs. According to the method and the apparatus for switching the songs in the screen-locking state, the songs can be quickly switched in a simple and convenient mode, the switching mode is simple, and the cost is low, so that the user experience is greatly improved.
Description
Technical field
The present invention relates to mobile communication technology field, particularly relate to a kind of under screen lock state, switch song method and device.
Background technology
Along with the development of communication network, from strength to strength, existing smart machine as smart mobile phone, flat board are provided with touch display screen, thus achieves man-machine interaction efficiently to the function of existing smart machine.Further, existing smart machine is all configured with player usually, to realize the playing function of song.
Prior art, player needs button click just can switch song usually, cumbersome, if also will unlock then at button click at screen lock state, process is just more loaded down with trivial details, and be unfavorable for the operation of user, the experience of user is poor.
Summary of the invention
The shortcoming of prior art in view of the above, the object of the present invention is to provide a kind of under screen lock state, switch song method and device, switches the more loaded down with trivial details problem of song for solving in prior art under screen locking shape.
For achieving the above object and other relevant objects, the invention provides a kind of method switching song under screen lock state, the described method switching song under screen lock state comprises the following steps: under screen lock state, obtains the operational order of user; Detect the operational order of user and the corresponding relation of preset instructions; Corresponding relation according to operational order and preset instructions carries out hand-off process to song.
In one embodiment of the invention, the step of the described detection operational order of user and the corresponding relation of preset instructions comprises: the type judging the operational order of user; When the type of operational order is for sliding, judge whether described slip meets pre-conditioned; When slip meets pre-conditioned, hand-off process is carried out to song in the direction according to sliding.
In one embodiment of the invention, describedly judge whether described slip meets pre-conditioned step and comprise: obtain slide reference position, end position and slip time parameter; The distance of sliding is obtained according to described reference position and end position; The speed of sliding is obtained according to the distance of described slip and the time parameter of slip; When the speed of sliding is greater than predetermined threshold value, hand-off process is carried out to song in the direction according to sliding.
In one embodiment of the invention, describedly judge whether described slip meets pre-conditioned step and comprise: obtain the reference position and end position of sliding; The distance of sliding is obtained according to described reference position and end position; When the distance of sliding is greater than predeterminable range, hand-off process is carried out to song in the direction according to sliding.
In one embodiment of the invention, the direction according to sliding comprises the step that song carries out hand-off process: when the direction of sliding is for time to the right, song is switched to next; When slide direction be left time, song is switched to upper one.
The invention provides a kind of device switching song under screen lock state, the described device switching song under screen lock state comprises: acquisition module, for obtaining the operational order of user under screen lock state; Detection module, for the corresponding relation of the operational order and preset instructions that detect user; Handover module, carries out hand-off process for the corresponding relation according to operational order and preset instructions to song.
In one embodiment of the invention, described detection module comprises: the first judging unit, for judging the type of the operational order of user; Second judging unit, for when the type of operational order is for sliding, judges whether described slip meets pre-conditioned; Described handover module is used for when slip meets pre-conditioned, and hand-off process is carried out to song in the direction according to sliding.
In one embodiment of the invention, described second judging unit comprises: parameter acquiring unit, for obtaining the time parameter of the reference position of slip, end position and slip; Distance acquiring unit, for obtaining the distance of sliding according to described reference position and end position; Speed acquiring unit, for obtaining the speed of sliding according to the distance of described slip and the time parameter of slip; Described handover module is used for when the speed of sliding is greater than predetermined threshold value, and hand-off process is carried out to song in the direction according to sliding.
In one embodiment of the invention, described second judging unit comprises: parameter acquiring unit, for obtaining reference position and the end position of slip; Distance acquiring unit, for obtaining the distance of sliding according to described reference position and end position; Described handover module is used for when the distance of sliding is greater than predeterminable range, and hand-off process is carried out to song in the direction according to sliding.
In one embodiment of the invention, described handover module also for when slide direction be to the right time, song is switched to next; Or, when slide direction be left time, song is switched to upper one.
As mentioned above, method and the device switching song under screen lock state of the present invention, has following beneficial effect:
Method of the present invention and device, by judging the operational order of user, realize the switching to song when operational order meets pre-conditioned, substantially increase the efficiency that song switches, improve the experience of user simultaneously.
Accompanying drawing explanation
Fig. 1 is shown as the schematic flow sheet of method in an embodiment that the present invention switches song under screen lock state.
Fig. 2 is shown as the schematic flow sheet that the present invention switches step S12 in the method for song under screen lock state.
Fig. 3 ~ Fig. 5 is shown as the schematic diagram to the definition of screen coordinate system in existing Andriod system.
Fig. 6 is shown as the structural representation be installed in an embodiment that the present invention switches song under screen lock state.
Element numbers explanation
2 devices switching song under screen lock state
21 acquisition modules
22 detection modules
23 handover modules
S11 ~ S13 step
S121 ~ S123 step
Embodiment
Below by way of specific instantiation, embodiments of the present invention are described, those skilled in the art the content disclosed by this instructions can understand other advantages of the present invention and effect easily.The present invention can also be implemented or be applied by embodiments different in addition, and the every details in this instructions also can based on different viewpoints and application, carries out various modification or change not deviating under spirit of the present invention.It should be noted that, when not conflicting, the feature in following examples and embodiment can combine mutually.
It should be noted that, the diagram provided in following examples only illustrates basic conception of the present invention in a schematic way, then only the assembly relevant with the present invention is shown in graphic but not component count, shape and size when implementing according to reality is drawn, it is actual when implementing, and the kenel of each assembly, quantity and ratio can be a kind of change arbitrarily, and its assembly layout kenel also may be more complicated.
As described in the background art, in prior art when switching song, need to be operated by the control button clicked on screen, if and under screen lock state, the handoff procedure of song is more loaded down with trivial details, need first to unlock screen, then enter into song control program, switch.
And the invention provides one song switching mode efficiently, enormously simplify the song handoff procedure under screen lock state, improve the efficiency of switching, thus substantially increase the experience of user.
Refer to Fig. 1, be shown as the method that the present invention switches song under screen lock state, the described method switching song under screen lock state comprises the following steps:
S11, under screen lock state, obtains the operational order of user;
The method of switching song of the present invention is applied to such as smart mobile phone, panel computer, notebook computer etc. and has the electronic equipment of screen.In the present embodiment, be described for described electronic equipment smart mobile phone temporarily.Described smart mobile phone is such as installing Android operation system or iOS operating system, or the smart mobile phone of the operating system such as PalmOS, Symbian (Saipan) or BlackBerry (blackberry, blueberry) OS, WindowsPhone.In the present embodiment, be described with the smart mobile phone installing Android operation system.
Described smart mobile phone has touch display screen, and the contact point between described touch display screen and user corresponds to one or more fingers of user.This touch display screen can use LCD (liquid crystal display) technology or LPD (light emitting polymer displays) technology, but can use other display techniques in other embodiments.Touch display screen can use any one in multiple Touch technologies to detect contact and mobile or interruption thereof, these Touch technologies include but not limited to electric capacity, resistance, infrared and surface acoustic wave techniques, and other proximity sensor arrays, or for determining the other technologies of the one or more points contacted with touch display screen.User can use any suitable object or accessory, and such as stylus, finger etc. contact touch display screen.
When smart mobile phone is in screen lock state, obtain the touch operation of user on touch display screen by touch display screen.
S12, detects the operational order of user and the corresponding relation of preset instructions;
S13, the corresponding relation according to operational order and preset instructions carries out hand-off process to song.
With reference to figure 2, the step of the described detection operational order of user and the corresponding relation of preset instructions comprises:
S121, judges the type of the operational order of user;
S122, when the type of operational order is for sliding, judges whether described slip meets pre-conditioned;
S123, when slip meets pre-conditioned, hand-off process is carried out to song in the direction according to sliding.
Below in conjunction with Fig. 3 ~ Fig. 5, the definition for screen coordinate system in existing Andriod operating system is described.With reference to figure 3, the screen upper left corner is true origin (0,0), is to the right X-axis, becomes large successively; With lower be Y-axis, become large successively.
Suppose in MotionEvent: e1 is the starting point of finger first time by upper screen, and e2 lifts the terminal pointed and frame out, the Android screen coordinate system according to Fig. 3:
Finger slides to the right, and terminal (e2), on the right side of starting point (e1), has e2.getX ()-e1.getX () to be greater than 0;
Finger slides left, and terminal (e2), in the left side of starting point (e1), has e2.getX ()-e1.getX () to be less than 0;
Finger slide downward, terminal (e2), in the downside of starting point (e1), has e2.getY ()-e1.getY () to be greater than 0;
Finger upward sliding, terminal (e2), in the upside of starting point (e1), has e2.getY ()-e1.getY () to be less than 0.
With reference to figure 4, onScroll (MotionEvente1, MotionEvente2, floatdistanceX, floatdistanceY)
DistanceX is the X distance of twice call in front and back, is not the horizontal range of e2 and e1; DistanceY is the Y distance of twice call in front and back, is not the vertical range of e2 and e1.Concrete numerical value direction, with reference to figure 4, can not repeat them here.
With reference to figure 5, onFling (MotionEvente1, MotionEvente2, floatvelocityX, floatvelocityY)
VelocityX is the speed per second of X-axis; VelocityY is the speed per second of Y-axis.The direction of concrete numerical value, please refer to shown in Fig. 5.Examine and can find: the direction of velocityX, velocityY is just in time contrary with distanceX, distanceY direction.
Based on the definition of above-mentioned screen coordinate system, in the present embodiment, can by judging the distance of sliding or judging the speed of sliding, such as: in the present embodiment, describedly judge whether described slip meets pre-conditioned step and can comprise: obtain slide reference position, end position and slip time parameter; The distance of sliding is obtained according to described reference position and end position; The speed of sliding is obtained according to the distance of described slip and the time parameter of slip; When the speed of sliding is greater than predetermined threshold value, hand-off process is carried out to song in the direction according to sliding.
In other embodiments, describedly judge whether described slip meets pre-conditioned step and can also comprise: obtain the reference position and end position of sliding; The distance of sliding is obtained according to described reference position and end position; When the distance of sliding is greater than predeterminable range, hand-off process is carried out to song in the direction according to sliding.
In actual applications, the described direction according to sliding can comprise the step that song carries out hand-off process: when the direction of sliding is for time to the right, song is switched to next; When slide direction be left time, song is switched to upper one.
No matter all achieved the judgement of the touch operation to user by which kind of judgment mode above-mentioned, when the touch operation of user conforms to the condition preset, the switching to song can be realized, thus the handoff procedure under enormously simplify screen lock state, thus improve the experience of user.
With reference to figure 6, the invention provides a kind of device switching song under screen lock state, the described device 2 switching song under screen lock state comprises:
Acquisition module 21, for obtaining the operational order of user under screen lock state;
Detection module 22, for the corresponding relation of the operational order and preset instructions that detect user;
Handover module 23, carries out hand-off process for the corresponding relation according to operational order and preset instructions to song.
In the present embodiment, described detection module can comprise: the first judging unit (not shown), for judging the type of the operational order of user; Second judging unit (not shown), for when the type of operational order is for sliding, judges whether described slip meets pre-conditioned; Described handover module 23 is for when slip meets pre-conditioned, and hand-off process is carried out to song in the direction according to sliding.
Particularly, described second judging unit can comprise: parameter acquiring unit (not shown), for obtaining the time parameter of the reference position of slip, end position and slip; Distance acquiring unit (not shown), for obtaining the distance of sliding according to described reference position and end position; Speed acquiring unit (not shown), for obtaining the speed of sliding according to the distance of described slip and the time parameter of slip; When described handover module 23 is for being greater than predetermined threshold value when the speed of sliding, hand-off process is carried out to song in the direction according to sliding.
In other embodiments, described second judging unit can comprise: parameter acquiring unit (not shown), for obtaining reference position and the end position of slip; Distance acquiring unit (not shown), for obtaining the distance of sliding according to described reference position and end position; When described handover module 23 is for being greater than predeterminable range when the distance of sliding, hand-off process is carried out to song in the direction according to sliding.
In actual applications, described handover module also for when slide direction be to the right time, song is switched to next; Or, when slide direction be left time, song is switched to upper one.
The device switching song under screen lock state of the present embodiment can be arranged at existing smart mobile phone, flat board or computer etc. to be had on the equipment of touch display screen.The concrete handoff procedure switching the device of song under screen lock state of the present embodiment with reference to the aforementioned detailed description of method about switching song under screen lock state, can not repeat them here.
In sum, method and the device switching song under screen lock state of the present invention, the song achieved under screen lock state switches, and implementation is simple, and cost is lower, also improves the efficiency of switching simultaneously, thus substantially increases the experience of user.So the present invention effectively overcomes various shortcoming of the prior art and tool high industrial utilization.
Above-described embodiment is illustrative principle of the present invention and effect thereof only, but not for limiting the present invention.Any person skilled in the art scholar all without prejudice under spirit of the present invention and category, can modify above-described embodiment or changes.Therefore, such as have in art usually know the knowledgeable do not depart from complete under disclosed spirit and technological thought all equivalence modify or change, must be contained by claim of the present invention.
Claims (10)
1. under screen lock state, switch a method for song, it is characterized in that, the described method switching song under screen lock state comprises the following steps:
Under screen lock state, obtain the operational order of user;
Detect the operational order of user and the corresponding relation of preset instructions;
Corresponding relation according to operational order and preset instructions carries out hand-off process to song.
2. the method switching song under screen lock state according to claim 1, is characterized in that, the step of the described detection operational order of user and the corresponding relation of preset instructions comprises:
Judge the type of the operational order of user;
When the type of operational order is for sliding, judge whether described slip meets pre-conditioned;
When slip meets pre-conditioned, hand-off process is carried out to song in the direction according to sliding.
3. the method switching song under screen lock state according to claim 2, is characterized in that: describedly judge whether described slip meets pre-conditioned step and comprise:
Obtain slide reference position, end position and slip time parameter;
The distance of sliding is obtained according to described reference position and end position;
The speed of sliding is obtained according to the distance of described slip and the time parameter of slip;
When the speed of sliding is greater than predetermined threshold value, hand-off process is carried out to song in the direction according to sliding.
4. the method switching song under screen lock state according to claim 2, is characterized in that: describedly judge whether described slip meets pre-conditioned step and comprise:
Obtain the reference position and end position of sliding;
The distance of sliding is obtained according to described reference position and end position;
When the distance of sliding is greater than predeterminable range, hand-off process is carried out to song in the direction according to sliding.
5. the method switching song under screen lock state according to claim 2, is characterized in that: the direction according to sliding comprises the step that song carries out hand-off process: when the direction of sliding is for time to the right, song is switched to next; When slide direction be left time, song is switched to upper one.
6. under screen lock state, switch a device for song, it is characterized in that, the described device switching song under screen lock state comprises:
Acquisition module, for obtaining the operational order of user under screen lock state;
Detection module, for the corresponding relation of the operational order and preset instructions that detect user;
Handover module, carries out hand-off process for the corresponding relation according to operational order and preset instructions to song.
7. the device switching song under screen lock state according to claim 6, is characterized in that, described detection module comprises:
First judging unit, for judging the type of the operational order of user;
Second judging unit, for when the type of operational order is for sliding, judges whether described slip meets pre-conditioned;
Described handover module is used for when slip meets pre-conditioned, and hand-off process is carried out to song in the direction according to sliding.
8. the device switching song under screen lock state according to claim 7, is characterized in that, described second judging unit comprises:
Parameter acquiring unit, for obtaining the time parameter of the reference position of slip, end position and slip;
Distance acquiring unit, for obtaining the distance of sliding according to described reference position and end position;
Speed acquiring unit, for obtaining the speed of sliding according to the distance of described slip and the time parameter of slip;
Described handover module is used for when the speed of sliding is greater than predetermined threshold value, and hand-off process is carried out to song in the direction according to sliding.
9. the device switching song under screen lock state according to claim 7, is characterized in that, described second judging unit comprises:
Parameter acquiring unit, for obtaining reference position and the end position of slip;
Distance acquiring unit, for obtaining the distance of sliding according to described reference position and end position;
Described handover module is used for when the distance of sliding is greater than predeterminable range, and hand-off process is carried out to song in the direction according to sliding.
10. the device switching song under screen lock state according to claim 7, is characterized in that, described handover module also for when slide direction be to the right time, song is switched to next; Or, when slide direction be left time, song is switched to upper one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510847152.XA CN105426106A (en) | 2015-11-26 | 2015-11-26 | Method and apparatus for switching songs in screen-locking state |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510847152.XA CN105426106A (en) | 2015-11-26 | 2015-11-26 | Method and apparatus for switching songs in screen-locking state |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105426106A true CN105426106A (en) | 2016-03-23 |
Family
ID=55504342
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510847152.XA Pending CN105426106A (en) | 2015-11-26 | 2015-11-26 | Method and apparatus for switching songs in screen-locking state |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105426106A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107731247A (en) * | 2017-10-27 | 2018-02-23 | 珠海市魅族科技有限公司 | Playback of songs method, apparatus, computer installation and computer-readable recording medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101498986A (en) * | 2008-02-01 | 2009-08-05 | 胡宗宁 | Touch sliding operation system for touch screen mobile phone |
US20110181603A1 (en) * | 2010-01-23 | 2011-07-28 | Hon Hai Precision Industry Co., Ltd. | Electronic reader device and graphical user interface control method thereof |
CN103002148A (en) * | 2012-11-28 | 2013-03-27 | 广东欧珀移动通信有限公司 | Music switching method based on mobile terminal in screen extinguishment mode and mobile terminal |
CN103197886A (en) * | 2013-03-13 | 2013-07-10 | 北京小米科技有限责任公司 | Video switch method and terminal |
CN103197867A (en) * | 2012-01-04 | 2013-07-10 | 海尔集团公司 | Application program control method and system based on touch screen |
CN104820571A (en) * | 2015-03-20 | 2015-08-05 | 广东欧珀移动通信有限公司 | Method and device for switching songs |
-
2015
- 2015-11-26 CN CN201510847152.XA patent/CN105426106A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101498986A (en) * | 2008-02-01 | 2009-08-05 | 胡宗宁 | Touch sliding operation system for touch screen mobile phone |
US20110181603A1 (en) * | 2010-01-23 | 2011-07-28 | Hon Hai Precision Industry Co., Ltd. | Electronic reader device and graphical user interface control method thereof |
CN103197867A (en) * | 2012-01-04 | 2013-07-10 | 海尔集团公司 | Application program control method and system based on touch screen |
CN103002148A (en) * | 2012-11-28 | 2013-03-27 | 广东欧珀移动通信有限公司 | Music switching method based on mobile terminal in screen extinguishment mode and mobile terminal |
CN103197886A (en) * | 2013-03-13 | 2013-07-10 | 北京小米科技有限责任公司 | Video switch method and terminal |
CN104820571A (en) * | 2015-03-20 | 2015-08-05 | 广东欧珀移动通信有限公司 | Method and device for switching songs |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107731247A (en) * | 2017-10-27 | 2018-02-23 | 珠海市魅族科技有限公司 | Playback of songs method, apparatus, computer installation and computer-readable recording medium |
CN107731247B (en) * | 2017-10-27 | 2019-08-02 | 珠海市魅族科技有限公司 | Playback of songs method, apparatus, computer installation and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10013129B2 (en) | Electronic device and coordinate detecting method | |
US9229573B2 (en) | Input device, input support method, and program | |
CN102819352B (en) | The method and apparatus of control terminal | |
JP5732580B2 (en) | Electronic device and coordinate detection method | |
US8760435B2 (en) | Touch panel | |
CN103164135B (en) | A kind of electronic equipment unlock method and device, electronic equipment | |
CN103744582A (en) | Terminal control device and terminal control method | |
CN102662584A (en) | Multi-application execution method and mobile terminal | |
CN104866225A (en) | Electronic device having touch display screen and control method therefor | |
CN102760020B (en) | A kind of method of Detection capacitance formula touch-screen, device and mobile terminal | |
CN101984392A (en) | Operation method of simulation hardware button and touch screen terminal | |
KR20130052416A (en) | Method and apparatus for designating enire area using partial area touch in a portable equipment | |
CN104765524A (en) | Application switching method and device | |
CN102955661A (en) | Method and apparatus for navigating content on screen using pointing device | |
CN102768597B (en) | Method and device for operating electronic equipment | |
CN105045501A (en) | Electronic equipment and sliding action response method and system applied to electronic equipment | |
US9746963B2 (en) | Detection method using capacitive sensor, and electronic device | |
CN103370680A (en) | Touch input device, electronic apparatus, and input method | |
CN105228131A (en) | The assist process method of operational data, system and terminal equipment | |
CN105446598A (en) | Icon position switching method and system, and electronic device | |
CN105005440A (en) | Mobile terminal display interface scroll bar switching method and apparatus and terminal | |
CN105549969A (en) | Control method and system of projection documents and mobile terminal | |
CN105824567A (en) | Method and device for switching input method and terminal | |
CN105426106A (en) | Method and apparatus for switching songs in screen-locking state | |
CN103207742A (en) | Article selecting method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160323 |
|
RJ01 | Rejection of invention patent application after publication |