Summary of the invention
It is an object of the invention to provide the solution locking method of a kind of terminal and device, it is therefore intended that solve existing scheme lacks interesting and safety problem.
For solving above-mentioned technical problem, the present invention provides the solution locking method of a kind of terminal, including:
Receiving the instruction that terminal is unlocked of user's input, show the first unblock interface to user, described first unlocks the display interface that interface is the library comprising preset musical player;
Receive the instruction selecting the first song from described library of described user input, it is judged that whether described first song is default unblock song;
When described first song is default unblock song, showing the second unblock interface to described user, described second unlocks the display interface that interface is the playing progress bar comprising default unblock song;
Within a preset time interval when detect described user drag the final position of described playing progress bar be positioned within default unblock progress scope time, complete to unlock.
Alternatively, when described first song is different from the unblock song preset, terminal is jumped out described first and is unlocked interface, locks.
Alternatively, be not detected by described prefixed time interval described user operation or when detect described user drag the final position of described playing progress bar be not located at presetting within unblock progress scope time, return described first and unlock interface.
Alternatively, also include after completing to unlock:
Automatically exit from described music player, and automatically to remove in releasing process be the played data of described music player setting.
Present invention also offers the tripper of a kind of terminal, including:
First display module, for receiving the instruction that terminal is unlocked of user's input, shows the first unblock interface to user, and described first unlocks the display interface that interface is the library comprising preset musical player;
Judge module, for receiving the instruction selecting the first song from described library of described user input, it is judged that whether described first song is default unblock song;
Second display module, for when described first song is default unblock song, showing the second unblock interface to described user, described second unlocks the display interface that interface is the playing progress bar comprising default unblock song;
Detection module, within a preset time interval when detect described user drag the final position of described playing progress bar be positioned within default unblock progress scope time, complete to unlock.
Alternatively, also including: locking module, for when described first song is different from the unblock song preset, terminal is jumped out described first and is unlocked interface, locks.
Alternatively, also include: return module, for be not detected by described prefixed time interval described user operation or when detect described user drag the final position of described playing progress bar be not located at presetting within unblock progress scope time, return described first and unlock interface.
Alternatively, also including: remove module, for, after completing to unlock, automatically exiting from described music player, and automatically to remove in releasing process be the played data of described music player setting.
Alternatively, also include: trigger module, for receiving the open command of user, trigger tripper work.
The solution locking method of terminal provided by the present invention and device, receive the instruction that terminal is unlocked of user's input, show the first unblock interface to user; Receive the instruction selecting the first song from library of user's input, it is judged that whether this first song is default unblock song; When for preset unblock song time, show the second unblock interface to user; Within a preset time interval when detect user drag the final position of playing progress bar be positioned within default unblock progress scope time, complete to unlock. The solution locking method of terminal provided by the present invention and device, have more interest and safety relative to prior art, it is possible to promotes the experience of user.
Detailed description of the invention
In order to make those skilled in the art be more fully understood that the present invention program, below in conjunction with the drawings and specific embodiments, the present invention is described in further detail. Obviously, described embodiment is only a part of embodiment of the present invention, rather than whole embodiments. Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under not making creative work premise, broadly fall into the scope of protection of the invention.
The flow chart of a kind of detailed description of the invention solving locking method of terminal provided by the present invention is as it is shown in figure 1, the method includes:
Step S101: receive the instruction that terminal is unlocked of user's input, shows the first unblock interface to user, and described first unlocks the display interface that interface is the library comprising preset musical player;
Step S102: receive the instruction selecting the first song from described library of described user input, it is judged that whether described first song is default unblock song;
Step S103: when described first song is default unblock song, shows the second unblock interface to described user, and described second unlocks the display interface that interface is the playing progress bar comprising default unblock song;
Step S104: within a preset time interval when detect described user drag the final position of described playing progress bar be positioned within default unblock progress scope time, complete to unlock.
The solution locking method of terminal provided by the present invention, receives the instruction that terminal is unlocked of user's input, shows the first unblock interface to user; Receive the instruction selecting the first song from library of user's input, it is judged that whether this first song is default unblock song; When for preset unblock song time, show the second unblock interface to user; Within a preset time interval when detect user drag the final position of playing progress bar be positioned within default unblock progress scope time, complete to unlock. The solution locking method of terminal provided by the present invention and device, have more interest and safety relative to prior art, it is possible to promotes the experience of user.
On the basis of a upper embodiment, when described first song is different from the unblock song preset, terminal is jumped out described first and is unlocked interface, locks. And be not detected by described prefixed time interval described user operation or when detect described user drag the final position of described playing progress bar be not located at presetting within unblock progress scope time, return described first and unlock interface.
Terminal in the present invention can be specially mobile phone or tablet PC, in the another kind of detailed description of the invention solving locking method of terminal provided by the present invention, for mobile phone, its process specifically unlocked being further elaborated, refer to the flow chart of the method in Fig. 2, it specifically includes:
Step S201: user opens the function being unlocked by music player in arranging;
Step S202: receive user's setting to default unblock song and default unblock progress scope;
The concrete song of such as, in user setup music libraries one is as specific unblock song, this song bent certain time period (such as 4:10-4:20) is then set as unlocking progress scope, when user selects correct unblock song and moves between 4:10-4:20 by progress bar, can normal release, otherwise mobile phone cannot be introduced into mobile phone interface.
Step S203: under mobile phone is in screen lock state, user is by pressing the instruction that terminal input is unlocked by power key;
Step S204: mobile phone screen display music unlocks interface, the list of songs of display player;
Step S205: user selects song, it is judged that whether the song of selection is default unblock song;
Step 2061: when the song that user selects is default unblock song, slip musical time axle, whether terminal detection music arrives predetermined time period within a preset time interval;
Specifically, prefixed time interval can elect 5 seconds as. In the present embodiment, user needs after selecting the song arranged, and progress bar is moved to the playing progress rate between 4:10-4:20 could normal release.
Step S2062: when the song mistake that user selects, mobile phone locks;
Further, it is also possible to after being arranged on the song mistake that user selects, can not be again introduced into unlocking interface within 5 minutes and select song.
Step S207: when detecting music and arriving predetermined time period within a preset time interval, completes to unlock, enters mobile phone interface;
If be not detected by described prefixed time interval described user operation or when detect described user drag the final position of described playing progress bar be not located at presetting within unblock progress scope time, return described first and unlock interface. It is of course also possible to directly lock mobile phone, this does not all affect the realization of the present invention.
On the basis of any of the above-described embodiment, the solution locking method of terminal provided by the present invention can also include after completing to unlock: automatically exits from described music player, and automatically to remove in releasing process be the played data of described music player setting, so can economize internal memory unlocking deutomerite, not affect the normal use of mobile phone.
Certainly, music player can also automatically at running background, and this does not all affect the realization of the present invention.
The method by playing music unblock that the present embodiment provides, need to first select specific music, and need not play, and namely direct slip progress bar can complete to unlock. When actually used, not only increase user's enjoyment at ordinary times and information security, also more convenient, thus improving the experience of user.
The structured flowchart of a kind of detailed description of the invention of the tripper of terminal provided by the present invention is as it is shown on figure 3, include:
First display module 100, for receiving the instruction that terminal is unlocked of user's input, shows the first unblock interface to user, and described first unlocks the display interface that interface is the library comprising preset musical player;
Judge module 200, for receiving the instruction selecting the first song from described library of described user input, it is judged that whether described first song is default unblock song;
Second display module 300, for when described first song is default unblock song, showing the second unblock interface to described user, described second unlocks the display interface that interface is the playing progress bar comprising default unblock song;
Detection module 400, within a preset time interval when detect described user drag the final position of described playing progress bar be positioned within default unblock progress scope time, complete to unlock.
As a kind of preferred implementation, the tripper of terminal provided by the present invention can further include: locking module, and for when described first song is different from the unblock song preset, terminal is jumped out described first and unlocked interface, locks.
As a kind of preferred implementation, the tripper of terminal provided by the present invention can further include: returns module, for be not detected by described prefixed time interval described user operation or when detect described user drag the final position of described playing progress bar be not located at presetting within unblock progress scope time, return described first and unlock interface.
As a kind of preferred implementation, the tripper of terminal provided by the present invention can further include: removes module, for, after completing to unlock, automatically exiting from described music player, and automatically to remove in releasing process be the played data of described music player setting.
As a kind of preferred implementation, the tripper of terminal provided by the present invention can further include: trigger module, for receiving the open command of user, triggers the work of described tripper.
The tripper of terminal provided by the present invention is corresponding with said method, can be cross-referenced, does not repeat them here.
To sum up, the solution locking method of terminal provided by the present invention and device, receive the instruction that terminal is unlocked of user's input, show the first unblock interface to user; Receive the instruction selecting the first song from library of user's input, it is judged that whether this first song is default unblock song; When for preset unblock song time, show the second unblock interface to user; Within a preset time interval when detect user drag the final position of playing progress bar be positioned within default unblock progress scope time, complete to unlock. The solution locking method of terminal provided by the present invention and device, have more interest and safety relative to prior art, it is possible to promotes the experience of user.
In this specification, each embodiment adopts the mode gone forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment same or similar part mutually referring to.
Described above to the disclosed embodiments, makes professional and technical personnel in the field be capable of or uses the present invention. The multiple amendment of these embodiments be will be apparent from for those skilled in the art, and generic principles defined herein can without departing from the spirit or scope of the present invention, realize in other embodiments. Therefore, the present invention is not intended to be limited to the embodiments shown herein, and is to fit to the widest scope consistent with principles disclosed herein and features of novelty.