Summary of the invention
In order to solve the problem of background technology, embodiments provide a kind of unlock method and device.Described technical scheme is as follows:
On the one hand, provide a kind of unlock method, described method comprises:
Obtain the first centre of gravity place parameter that affixed first accessory is corresponding, and judge whether the described first centre of gravity place parameter default centre of gravity place parameter corresponding with affixed predetermined accessories mates;
If the default centre of gravity place parameter matching that described first centre of gravity place parameter is corresponding with affixed predetermined accessories, then perform unlocking operation;
Wherein, described first centre of gravity place parameter at least comprises the first centre of gravity place coordinate, described default centre of gravity place parameter at least comprises default centre of gravity place coordinate, described first centre of gravity place parameter is the centre of gravity place parameter of terminal and described first accessory entirety, and described default centre of gravity place parameter is the centre of gravity place parameter of described terminal and described predetermined accessories entirety.
Preferably, the quantity of described predetermined accessories is one, and described predetermined accessories is affixed in different pre-note positions, and the default centre of gravity place parameter that the affixed predetermined accessories in different affixed positions is corresponding is different, and each default centre of gravity place parameter correspondence performs a unlocking function.
Preferably, the quantity of described predetermined accessories is multiple, and affixed position is one, and the default centre of gravity place parameter that the affixed different predetermined accessories in identical affixed position is corresponding is different, and each default centre of gravity place parameter correspondence performs a unlocking function.
Preferably, the quantity of described predetermined accessories is multiple, and affixed position is multiple, and the default centre of gravity place parameter that the affixed different predetermined accessories in different affixed position is corresponding is different, and each default centre of gravity place parameter correspondence performs a unlocking function.
Preferably, the first centre of gravity place parameter that affixed first accessory of described acquisition is corresponding, comprising:
The first centre of gravity place coordinate corresponding to affixed described first accessory is obtained according to the position of affixed described first accessory and the weight of described first accessory, and using described first centre of gravity place coordinate as the described first centre of gravity place parameter got;
Described judge whether the described first centre of gravity place parameter default centre of gravity place parameter corresponding with affixed predetermined accessories mates before, also comprise:
Default centre of gravity place coordinate corresponding to affixed predetermined accessories is obtained according to the position of affixed predetermined accessories and the weight of predetermined accessories, and using default centre of gravity place coordinate as the default centre of gravity place parameter got;
Wherein, described first centre of gravity place coordinate is the centre of gravity place coordinate of terminal and described first accessory entirety, and described default centre of gravity place coordinate is the centre of gravity place coordinate of described terminal and described predetermined accessories entirety.
Preferably, describedly judge whether the described first centre of gravity place parameter default centre of gravity place parameter corresponding with affixed predetermined accessories mates, and comprising:
Judge that whether described first centre of gravity place coordinate is consistent with arbitrary default centre of gravity place coordinate, if described first centre of gravity place coordinate is consistent with arbitrary default centre of gravity place coordinate, then judge the default centre of gravity place parameter matching that described first centre of gravity place parameter is corresponding with affixed predetermined accessories;
Described execution unlocking operation, comprising:
Perform the unlocking function corresponding with the default centre of gravity place parameter of described first centre of gravity place parameter matching.
Preferably, described method also comprises:
The second centre of gravity place parameter corresponding before obtaining affixed described first accessory, according to described second centre of gravity place parameter display second center of gravity mark, and the default centre of gravity place parameter display corresponding according to affixed predetermined accessories presets center of gravity mark;
The first centre of gravity place parameter corresponding according to affixed described first accessory moves described second center of gravity mark;
Wherein, if the default centre of gravity place parameter matching that described first centre of gravity place parameter is corresponding with affixed predetermined accessories, then described second center of gravity mark moves to identify with described default center of gravity and overlaps.
On the other hand, provide a kind of tripper, described device comprises:
First acquisition module, for obtaining the first centre of gravity place parameter corresponding to affixed first accessory;
Judge module, for judging whether the first centre of gravity place parameter that described first acquisition module gets default centre of gravity place parameter corresponding with affixed predetermined accessories mates;
Unlocked state, during for judging the described first centre of gravity place parameter default centre of gravity place parameter matching corresponding with affixed predetermined accessories when described judge module, performs unlocking operation;
Wherein, described first centre of gravity place parameter at least comprises the first centre of gravity place coordinate, described default centre of gravity place parameter at least comprises default centre of gravity place coordinate, described first centre of gravity place parameter is the centre of gravity place parameter of terminal and described first accessory entirety, and described default centre of gravity place parameter is the centre of gravity place parameter of described terminal and described predetermined accessories entirety.
Preferably, the quantity of described predetermined accessories is one, and the affixed position in described terminal is multiple, and the default centre of gravity place parameter that the affixed predetermined accessories in different affixed positions is corresponding is different, the corresponding unlocking function of each default centre of gravity place parameter.
Preferably, the quantity of described predetermined accessories is multiple, and the affixed position in described terminal is one, and the default centre of gravity place parameter that the affixed each predetermined accessories in identical affixed position is corresponding is different, the corresponding unlocking function of each default centre of gravity place parameter.
Preferably, the quantity of described predetermined accessories is multiple, and the affixed position in described terminal is multiple, and the default centre of gravity place parameter that the affixed different predetermined accessories in different affixed position is corresponding is different, the corresponding unlocking function of each default centre of gravity place parameter.
Preferably, described first acquisition module, for obtaining the first centre of gravity place coordinate corresponding to affixed described first accessory according to the position of affixed described first accessory and the weight of described first accessory, and using described first centre of gravity place coordinate as the described first centre of gravity place parameter got;
Described device, also comprises:
Second acquisition module, for obtaining default centre of gravity place coordinate corresponding to affixed predetermined accessories, and using default centre of gravity place coordinate as the default centre of gravity place parameter got according to the position of affixed predetermined accessories and the weight of predetermined accessories;
Wherein, described first centre of gravity place coordinate is the centre of gravity place coordinate of terminal and described first accessory entirety, and described default centre of gravity place coordinate is the centre of gravity place coordinate of described terminal and described predetermined accessories entirety.
Preferably, described judge module, for judging that whether described first centre of gravity place coordinate is consistent with arbitrary default centre of gravity place coordinate, if described first centre of gravity place coordinate is consistent with arbitrary default centre of gravity place coordinate, then judge the default centre of gravity place parameter matching that described first centre of gravity place parameter is corresponding with affixed predetermined accessories;
Described unlocked state, for performing the unlocking function corresponding with the default centre of gravity place parameter of described first centre of gravity place parameter matching.
Preferably, described device also comprises:
3rd acquisition module, for obtaining the second centre of gravity place parameter corresponding before affixed described first accessory;
First display module, for identifying according to described second centre of gravity place parameter display second center of gravity;
Second display module, presets center of gravity mark for the default centre of gravity place parameter display corresponding according to affixed predetermined accessories;
Mobile module, moves described second center of gravity mark for the first centre of gravity place parameter corresponding according to affixed described first accessory;
Wherein, if the default centre of gravity place parameter matching that described first centre of gravity place parameter is corresponding with affixed predetermined accessories, then the second center of gravity mark of described first display module display moves to identify with described default center of gravity and overlaps by described mobile module.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is:
By judging whether the first centre of gravity place parameter default centre of gravity place parameter corresponding with affixed predetermined accessories mates, and when judging the described first centre of gravity place parameter default centre of gravity place parameter matching corresponding with affixed predetermined accessories, perform unlocking operation, thus provide a kind of new unlocking manner, not only effectively can prevent the maloperation of terminal, also enhance confidentiality, improve user experience.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Embodiment one
Embodiments provide a kind of unlock method, see Fig. 1, the method flow that the present embodiment provides comprises:
Step 101: obtain the first centre of gravity place parameter that affixed first accessory is corresponding, and judge whether the first centre of gravity place parameter default centre of gravity place parameter corresponding with affixed predetermined accessories mates; Wherein, the first centre of gravity place parameter at least comprises the first centre of gravity place coordinate, presets centre of gravity place parameter and at least comprises default centre of gravity place coordinate;
Preferably, the quantity of predetermined accessories is one, and affixed position is multiple, and the default centre of gravity place parameter that the affixed predetermined accessories in different affixed positions is corresponding is different, the corresponding unlocking function of each default centre of gravity place parameter.
Preferably, the quantity of predetermined accessories is multiple, and affixed position is one, and the default centre of gravity place parameter that the affixed each predetermined accessories in identical affixed position is corresponding is different, the corresponding unlocking function of each default centre of gravity place parameter.
Preferably, the quantity of predetermined accessories is multiple, and affixed position is multiple, and the default centre of gravity place parameter that the affixed different predetermined accessories in different affixed position is corresponding is different, the corresponding unlocking function of each default centre of gravity place parameter.
Preferably, obtain the first centre of gravity place parameter that affixed first accessory is corresponding, include but not limited to:
The first centre of gravity place coordinate corresponding to affixed first accessory is obtained according to the position of affixed first accessory and the weight of the first accessory, and using the first centre of gravity place coordinate as the first centre of gravity place parameter got;
Before judging whether the first centre of gravity place parameter default centre of gravity place parameter corresponding with affixed predetermined accessories mates, also comprise:
Default centre of gravity place coordinate corresponding to affixed predetermined accessories is obtained according to the position of affixed predetermined accessories and the weight of predetermined accessories, and using default centre of gravity place coordinate as the default centre of gravity place parameter got.
Step 102: if the default centre of gravity place parameter matching that the first centre of gravity place parameter is corresponding with affixed predetermined accessories, then perform unlocking operation.
Preferably, judge whether the first centre of gravity place parameter default centre of gravity place parameter corresponding with affixed predetermined accessories mates, and includes but not limited to:
Judge that whether the first centre of gravity place coordinate is consistent with arbitrary default centre of gravity place coordinate, if the first centre of gravity place coordinate is consistent with arbitrary default centre of gravity place coordinate, then judge the default centre of gravity place parameter matching that the first centre of gravity place parameter is corresponding with affixed predetermined accessories;
Perform unlocking operation, include but not limited to:
Perform the unlocking function corresponding with the default centre of gravity place parameter of the first centre of gravity place parameter matching.
Preferably, the method also comprises:
The second centre of gravity place parameter corresponding before obtaining affixed first accessory, according to the second centre of gravity place parameter display second center of gravity mark, and the default centre of gravity place parameter display corresponding according to affixed predetermined accessories presets center of gravity mark;
The first centre of gravity place parameter corresponding according to affixed first accessory moves the second center of gravity mark;
Wherein, if the default centre of gravity place parameter matching that the first centre of gravity place parameter is corresponding with affixed predetermined accessories, then the second center of gravity mark moves to identify with default center of gravity and overlaps.
The method that the present embodiment provides, by judging whether the first centre of gravity place parameter default centre of gravity place parameter corresponding with affixed predetermined accessories mates, and when the default centre of gravity place parameter matching that judgement first centre of gravity place parameter is corresponding with affixed predetermined accessories, perform unlocking operation, thus provide a kind of new unlocking manner, not only effectively can prevent the maloperation of terminal, also have more uniqueness.And if affixed position is different or default solution fitting for lock is not right, then all can not realize unlocking, therefore, add the confidentiality of unblock, have more security.
Embodiment two
Embodiments provide a kind of unlock method, now in conjunction with the content of above-described embodiment one, in detail explanation is explained to the unlocking manner that the present embodiment provides.See Fig. 2, the method flow that the present embodiment provides comprises:
Step 201: obtain default centre of gravity place coordinate corresponding to affixed predetermined accessories according to the position of affixed predetermined accessories and the weight of predetermined accessories, and using default centre of gravity place coordinate as the default centre of gravity place parameter got;
For this step, now in conjunction with an example, in detail explanation is explained to the principle obtaining object centre of gravity place parameter.
See Fig. 3, the center of gravity identifying object with symbol C, gets the rectangular coordinate system in space Oxyz be connected on the object, with x
c, y
c, z
cmarker body weight heart position coordinates, is respectively Δ P with the terrestrial gravitation suffered by each fritter on object
1, Δ P
2... Δ P
nfor example, then each fritter on object forms a space system of parallel forces.And (identifying with symbol P) size of making a concerted effort of this system of parallel forces equals the weight of object, namely has:
P=ΣΔP
i(1)
The active line of P passes through the center of gravity C (x of object with joint efforts
c, y
c, z
c), then according to resultant moment theorem, following formula can be obtained:
P*x
C=ΣΔP
i*x
i(2)
So, can obtain, x
c=Σ Δ P
ix
i/ P (3)
In like manner, can obtain, y
c=Σ Δ P
iy
i/ P (4)
Preferably, in order to determine another coordinate z of object center of gravity C
c, coordinate system can be rotated 90 together with Objects around A y-axis and make x-axis upwards vertical, so the direction of gravity is parallel with x-axis.Formula (5) can be obtained again, z according to resultant moment theorem
c=Σ Δ P
iz
i/ P (5)
In sum, the centre of gravity place parameter of object just can be obtained by above-mentioned formula (3), formula (4) and formula (5).
According to above-mentioned acquisition object centre of gravity place Parameter Principle, can according to the weight of the position of affixed predetermined accessories and predetermined accessories get terminal is affixed have a predetermined accessories time corresponding default centre of gravity place parameter, namely the geometric center of terminal during predetermined accessories can be not affixedly had to be that true origin sets up space right-angle Oxyz coordinate system, and by terminal and affixed predetermined accessories integrally, overall each fritter forms a space system of parallel forces, and the weight that the size of making a concerted effort of this space system of parallel forces equals overall.Again according to formula (3), formula (4) and formula (5) just can determine affixed have a predetermined accessories time default centre of gravity place parameter corresponding to terminal.
Preferably, the method that the present embodiment provides, when arranging predetermined accessories and affixed position, in order to increase diversity and the confidentiality of unblock, provides multiple set-up mode.Wherein, following three kinds of modes are included but not limited to:
First kind of way, the quantity of predetermined accessories is one, and affixed position is multiple, and the default centre of gravity place parameter that the affixed predetermined accessories in different affixed positions is corresponding is different, the corresponding unlocking function of each default centre of gravity place parameter.
For this kind of mode, see Fig. 4, when predetermined accessories is affixed on position a, b, c shown in Fig. 4 respectively, corresponding centre of gravity place position a1, b1, c1 respectively shown in Fig. 4, and the location parameter of a1, b1, c1 is default center of gravity parameter, and when gravity motion is to position a1, correspondence can be set and enters note process interface; When gravity motion is to position b1, correspondence can be set and enters mail treatment interface; When gravity motion is to position c1, correspondence can be set and enters music-playing interface.Wherein, the unlocking function that position a1, b1, c1 are corresponding can set according to the own situation of terminal user, and the unlocking function that the present embodiment is corresponding to each default centre of gravity place parameter does not specifically limit.
The second way, the quantity of predetermined accessories is multiple, and affixed position is one, and the default centre of gravity place parameter that the affixed each predetermined accessories in identical affixed position is corresponding is different, the corresponding unlocking function of each default centre of gravity place parameter.
For this kind of mode, see Fig. 5, when 3 predetermined accessories are affixed on the position shown in Fig. 5 respectively, corresponding centre of gravity place position a1, b1, c1 respectively shown in Fig. 5, and the location parameter of a1, b1, c1 is default center of gravity parameter, and when predetermined accessories a is affixed on affixed position, correspondence can be set and enters note process interface; When predetermined accessories b is affixed on affixed position, correspondence can be set and enters mail treatment interface; When predetermined accessories c is affixed on affixed position, correspondence can be set and enters music-playing interface.Wherein, when predetermined accessories a, predetermined accessories b, predetermined accessories c are affixed on affixed position, corresponding unlocking function can set according to the own situation of terminal user, and the unlocking function that the present embodiment is corresponding to each default centre of gravity place parameter does not specifically limit.
The third mode, the quantity of predetermined accessories is multiple, and affixed position is multiple, and the default centre of gravity place parameter that the affixed different predetermined accessories in different affixed position is corresponding is different, the corresponding unlocking function of each default centre of gravity place parameter.
For this kind of mode, see Fig. 6, when 3 predetermined accessories are affixed on position a, b, c shown in Fig. 6 respectively, corresponding centre of gravity place position a1, b1, c1 respectively shown in Fig. 6, and the location parameter of a1, b1, c1 is default center of gravity parameter, and when predetermined accessories a is affixed on affixed position a, correspondence can be set and enters note process interface; When predetermined accessories b is affixed on affixed position b, correspondence can be set and enters mail treatment interface; When predetermined accessories c is affixed on affixed position c, correspondence can be set and enters music-playing interface.Wherein, when predetermined accessories a is affixed on affixed position a, predetermined accessories b is affixed on affixed position b, predetermined accessories c is affixed on affixed position c, corresponding unlocking function can set according to the own situation of terminal user, and the unlocking function that the present embodiment is corresponding to each default centre of gravity place parameter does not specifically limit.
It should be noted that, when performing the method that the present embodiment provides, without the need to all performing this step at every turn, namely only when first time performs unlocking operation, performing this step, when follow-up execution unlocking operation, can directly perform following step.But when the position of predetermined accessories or the weight of predetermined accessories change, need again perform this step, to obtain new default centre of gravity place parameter.
Step 202: obtain the first centre of gravity place parameter that affixed first accessory is corresponding, the first centre of gravity place parameter at least comprises the first centre of gravity place coordinate;
For this step, according to obtaining object centre of gravity place Parameter Principle in above-mentioned steps 201, then obtain the first centre of gravity place parameter that affixed first accessory is corresponding, include but not limited to: obtain the first centre of gravity place coordinate corresponding to affixed first accessory according to the position of affixed first accessory and the weight of the first accessory, and using the first centre of gravity place coordinate as the first centre of gravity place parameter got.Can by terminal and the first affixed accessory integrally, overall each fritter forms a space system of parallel forces, and the weight that the size of making a concerted effort of this space system of parallel forces equals overall.Again according to the formula (3) in above-mentioned steps 201, formula (4) and formula (5) just can determine affixed have the first accessory time the first centre of gravity place parameter corresponding to terminal.
Step 203: judge whether the first centre of gravity place parameter default centre of gravity place parameter corresponding with affixed predetermined accessories mates;
For this step, the number of the default centre of gravity place parameter no matter above-mentioned steps gets is several, judges whether the first centre of gravity place parameter default centre of gravity place parameter corresponding with affixed predetermined accessories mates, and includes but not limited to as under type:
Judge that whether the first centre of gravity place coordinate is consistent with arbitrary default centre of gravity place coordinate, if the first centre of gravity place coordinate is consistent with arbitrary default centre of gravity place coordinate, then judge the default centre of gravity place parameter matching that the first centre of gravity place parameter is corresponding with affixed predetermined accessories.
For the ease of understanding, with the first centre of gravity place coordinate for (x
1, y
1, z
1), arbitrary default centre of gravity place coordinate is (x
y, y
y, z
y) be example, if then judge x
1=x
y, y
1=y
y, and z
1=z
y, then judge the default centre of gravity place parameter matching that the first centre of gravity place parameter is corresponding with during affixed predetermined accessories, and continue to perform following step 204; If have at least one not mate in three coordinate components, then judge that the first centre of gravity place parameter default centre of gravity place parameter corresponding with affixed predetermined accessories is not mated.
Step 204: if the default centre of gravity place parameter matching that the first centre of gravity place parameter is corresponding with affixed predetermined accessories, then perform unlocking operation;
Wherein, perform unlocking operation, include but not limited to:
Perform the unlocking function corresponding with the default centre of gravity place parameter of the first centre of gravity place parameter matching.
Continue for Fig. 4, if predetermined accessories is affixed on position a, then after the default centre of gravity place parameter getting the first centre of gravity place parameter and position a, just judge whether the first centre of gravity place parameter mates with the default centre of gravity place parameter of position a, after judging the two coupling, just enter note process interface, so that terminal user performs the operations such as short message receiving-transmitting, namely perform the unlocking function corresponding with the default center of gravity parameter of the position a of the first centre of gravity place parameter matching.
Preferably, in order to enrich the visual effect of user, make user in releasing process, the centre of gravity place situation of change of terminal can be recognized intuitively, the method that the present embodiment provides, perform in the process unlocked, also will arrange on the screen of terminal and show center of gravity mark, before and after clearly affixed first accessory, the centre of gravity place situation of change of terminal, detailed process is as described below:
The second centre of gravity place parameter corresponding before obtaining affixed first accessory, according to the second centre of gravity place parameter display second center of gravity mark, and the default centre of gravity place parameter display corresponding according to affixed predetermined accessories presets center of gravity mark;
The first centre of gravity place parameter corresponding according to affixed first accessory moves the second center of gravity mark;
Wherein, if the default centre of gravity place parameter matching that the first centre of gravity place parameter is corresponding with affixed predetermined accessories, then the second center of gravity mark moves to identify with default center of gravity and overlaps.
Existing composition graphs 5, is illustrated the process that above-mentioned display center of gravity identifies with a concrete example.
First, the centre of gravity place parameter of terminal when obtaining not affixed first accessory according to the mode of the acquisition centre of gravity place parameter in above-mentioned steps 201, i.e. the second centre of gravity place parameter.Afterwards, on the screen of terminal, the second center of gravity mark is shown, because terminal belongs to regular object, therefore according to the second centre of gravity place parameter, when not affixed predetermined accessories, its center of gravity is positioned at its geometric center, and namely the second center of gravity identifies the cornerwise intersection be positioned on the terminal screen shown in Fig. 5.When affixed have during the first accessory (suppose that now the first accessory is affixed on position a), the centre of gravity place of terminal can be moved, and the center of gravity parameter corresponding to center of gravity after being moved is the first center of gravity parameter, due to the default centre of gravity place match parameters of now the first centre of gravity place parameter and position a, therefore, user intuitively can move to default center of gravity mark to the second center of gravity mark from the screen of terminal, i.e. corresponding successful unlock, user can perform the operations such as short message receiving-transmitting.If the first accessory is affixed on other positions (position except except position a, b, c), the centre of gravity place of terminal also can be moved, and the center of gravity parameter corresponding to center of gravity after being moved is the first center of gravity parameter, because now the first centre of gravity place parameter is not all mated with 3 default centre of gravity place parameters, therefore, although now from the screen of terminal, user can see that the second center of gravity mark is mobile, but center of gravity mark position is not preset in its position moved to, so unlock unsuccessfully, any operation can not be performed to terminal.
The method that the present embodiment provides, by judging whether the first centre of gravity place parameter default centre of gravity place parameter corresponding with affixed predetermined accessories mates, and when the default centre of gravity place parameter matching that judgement first centre of gravity place parameter is corresponding with affixed predetermined accessories, perform unlocking operation, thus provide a kind of new unlocking manner, not only effectively can prevent the maloperation of terminal, also have more uniqueness.And if affixed position is different or default solution fitting for lock is not right, then all can not realize unlocking, therefore, add the confidentiality of unblock, have more security.
Embodiment three
Embodiments provide a kind of mobile terminal, for performing the method that above-described embodiment one or embodiment two provide, see Fig. 7, this mobile terminal comprises:
First acquisition module 71, for obtaining the first centre of gravity place parameter corresponding to affixed first accessory;
Judge module 72, for judging whether the first centre of gravity place parameter that the first acquisition module 71 gets default centre of gravity place parameter corresponding with affixed predetermined accessories mates;
Unlocked state 73, during for judging the first centre of gravity place parameter default centre of gravity place parameter matching corresponding with affixed predetermined accessories when judge module 72, performs unlocking operation;
Wherein, the first centre of gravity place parameter at least comprises the first centre of gravity place coordinate, presets centre of gravity place parameter and at least comprises default centre of gravity place coordinate.
Preferably, the quantity of predetermined accessories is one, and the affixed position in terminal is multiple, and the default centre of gravity place parameter that the affixed predetermined accessories in different affixed positions is corresponding is different, the corresponding unlocking function of each default centre of gravity place parameter.
Preferably, the quantity of predetermined accessories is multiple, and the affixed position in terminal is one, and the default centre of gravity place parameter that the affixed each predetermined accessories in identical affixed position is corresponding is different, the corresponding unlocking function of each default centre of gravity place parameter.
Preferably, the quantity of predetermined accessories is multiple, and the affixed position in terminal is multiple, and the default centre of gravity place parameter that the affixed different predetermined accessories in different affixed position is corresponding is different, the corresponding unlocking function of each default centre of gravity place parameter.
Preferably, the first acquisition module 71, for obtaining the first centre of gravity place coordinate corresponding to affixed first accessory according to the position of affixed first accessory and the weight of the first accessory, and using the first centre of gravity place coordinate as the first centre of gravity place parameter got;
See Fig. 8, this mobile terminal, also comprises:
Second acquisition module 74, for obtaining default centre of gravity place coordinate corresponding to affixed predetermined accessories, and using default centre of gravity place coordinate as the default centre of gravity place parameter got according to the position of affixed predetermined accessories and the weight of predetermined accessories.
Preferably, judge module 72, for judging that whether the first centre of gravity place coordinate is consistent with arbitrary default centre of gravity place coordinate, if the first centre of gravity place coordinate is consistent with arbitrary default centre of gravity place coordinate, then judge the default centre of gravity place parameter matching that the first centre of gravity place parameter is corresponding with affixed predetermined accessories;
Unlocked state 73, for performing the unlocking function corresponding with the default centre of gravity place parameter of the first centre of gravity place parameter matching.
Preferably, see Fig. 9, this mobile terminal also comprises:
3rd acquisition module 75, for obtaining the second centre of gravity place parameter corresponding before affixed first accessory;
First display module 76, for identifying according to the second centre of gravity place parameter display second center of gravity;
Second display module 77, presets center of gravity mark for the default centre of gravity place parameter display corresponding according to affixed predetermined accessories;
Mobile module 78, moves the second center of gravity mark for the first centre of gravity place parameter corresponding according to affixed first accessory;
Wherein, if the default centre of gravity place parameter matching that the first centre of gravity place parameter is corresponding with affixed predetermined accessories, then the second center of gravity mark that the first display module shows by mobile module moves to identify with default center of gravity and overlaps.
In sum, the mobile terminal that the embodiment of the present invention provides, by judging whether the first centre of gravity place parameter default centre of gravity place parameter corresponding with affixed predetermined accessories mates, and when the default centre of gravity place parameter matching that judgement first centre of gravity place parameter is corresponding with affixed predetermined accessories, perform unlocking operation, thus provide a kind of new unlocking manner, not only effectively can prevent the maloperation of terminal, also have more uniqueness.And if affixed position is different or default solution fitting for lock is not right, then all can not realize unlocking, therefore, add the confidentiality of unblock, have more security.
It should be noted that: the mobile terminal that above-described embodiment provides is when performing unlocking operation, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, inner structure by mobile terminal is divided into different functional modules, to complete all or part of function described above.In addition, the mobile terminal that above-described embodiment provides and unlock method embodiment belong to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.