Summary of the invention
In view of above content, a kind of method that is necessary to provide mobile phone and locks its application, its by utilize map software set starting point, destination and midway the point of process lock mobile phone, allow user need not carry on the back again the password that a pile is loaded down with trivial details.
Described mobile phone, this mobile phone comprises a plurality of application, map software, GPS and storage device, and described mobile phone also comprises lock cell, and this lock cell comprises: select module, for the application of selecting to lock; Start module, for when selected the application that need to lock, startup map software, and obtain the map of the current position of mobile phone that map software provides; Setting module, sets starting point, destination and the point of process midway accordingly for select to indicate point on the described map obtaining; Acquisition module, for obtain respectively the starting point, destination of described setting and the point corresponding gps coordinate separately of process midway from GPS, and is stored as the gps coordinate that sets in storage device, thereby this application is locked.
The method of described locking mobile phone application, comprises step: a. selects the application that need to lock; B. start map software, and obtain the map of the current position of mobile phone that map software provides; C. on the described map obtaining, select to indicate point and set accordingly starting point, destination and the point of process midway; D. from GPS, obtain respectively the starting point, destination of described setting and the point corresponding gps coordinate separately of process midway, and be stored as the gps coordinate that sets in storage device, thereby this application is locked.
Compared to prior art, mobile phone provided by the invention and lock the method for its application, utilize map software to set starting point, destination and the point of process midway, by obtain corresponding coordinate to mobile phone lock, release, allow user needn't carry on the back again the password that a pile is loaded down with trivial details.
Embodiment
As shown in Figure 1, be the system architecture diagram of the preferred embodiment of the present invention's mobile phone with lock function.Described mobile phone 1 comprises a plurality of application 10, lock cell 20, map software 30, GPS(Global Position System, global positioning system) 40 and storage device 50.
Described a plurality of application 10 mainly refer to application program data in mobile phone 1 and file etc.Described map software 30 is the map data storehouse on can requester network map server 3 obtain corresponding map by network 2, offer mobile phone 1, and map software 30 provides the function that obtains the map in this place by inquiring about certain point searching.This network 2 can be the Internet, local area network (LAN) or other any suitable information medias.
Described GPS40 is for obtaining the gps coordinate of mobile phone 1.It should be noted that by described map software 30 and be combined with GPS40, on the map providing for mobile phone 1 in described map software 30, the point marking on map (index point that place name is corresponding) is all to there being a corresponding gps coordinate.Described storage device 50 is for storing Various types of data, such as storing gps coordinate value etc.
As shown in Figure 2, the functional block diagram of the preferred embodiment of lock cell of the present invention.Described lock cell 20 comprises selects module 200, startup module 202, setting module 204, acquisition module 206, reminding module 208, judge module 210 and processing module 212.
The application 10 of described selection module 200 for selecting to lock.
Described startup module 202, for when selecting the application 10 that need to lock, starts map software 30, and obtains the map that map software 30 offers mobile phone 1.The map obtaining described in it should be noted that is the map of mobile phone 1 current position.
Described setting module 204 is for according to user's hobby, selects to indicate point and come a corresponding setting starting point, destination and the point of process midway on the described map obtaining.
Described acquisition module 206 is for obtaining respectively the starting point, destination of described setting and the point corresponding gps coordinate separately of process midway from GPS40, and be stored as the gps coordinate that sets in storage device 50, thereby this application 10 is locked.
Described startup module 202 also, for when user's click carried out locking the application 10 corresponding icon arranging, again starts map software 30, and again obtains the map that map software 30 offers mobile phone 1.It should be noted that the map again obtaining due to map software 30 may be different with the map possibility of obtaining before, can obtain mobile phone 1 map of the position at place before by the position at place before map software 30 searching handsets 1.
Described reminding module 208, prompting user selects starting point, destination and the point of process midway again on obtained map.
Described acquisition module 206, for receiving starting point that user selects again, destination and the point corresponding gps coordinate separately of process midway, and is stored as received gps coordinate in storage device 50.
Whether described judge module 210 is consistent with the gps coordinate setting for judging received gps coordinate.When the gps coordinate of point of the gps coordinate of received starting point and the gps coordinate of the starting point setting, the gps coordinate of destination receiving and the gps coordinate of the destination setting and the process midway that receives and the gps coordinate of the point of the process midway setting are all consistent, described judge module 210 judges that the gps coordinate receiving is consistent with the gps coordinate setting; When the gps coordinate of point of the gps coordinate of received starting point and the gps coordinate of the starting point setting, the gps coordinate of destination receiving and the gps coordinate of the destination setting and the process midway that receives and any gps coordinate in the gps coordinate of the point of the process midway setting are when inconsistent, the gps coordinate that described judge module 210 judgements receive is inconsistent with the gps coordinate setting.
Described processing module 212, for when judging that the gps coordinate receiving is consistent with the gps coordinate setting, is opened this application 10, and this application 10 can be moved for user.
Described processing module 212 also, for when judging that the gps coordinate receiving and the gps coordinate setting are inconsistent, is pointed out user's input error.
As shown in Figure 3, be the flow chart that the present invention locks the preferred embodiment in the method for mobile phone application, the application of mobile phone being locked.
Step S10, selects the application 10 of module 200 for selecting to lock.
Step S11, when selecting the application that need to lock, described startup module 202 starts map software 30 and obtains the map that map software 30 offers mobile phone 1.
Step S12, according to user's hobby, described setting module 204 is selected to indicate point and is come a corresponding setting starting point, destination and the point of process midway on the described map obtaining.
Step S13, described acquisition module 206 obtains respectively the starting point, destination of described setting and the point corresponding gps coordinate separately of process midway from GPS40, and the gps coordinate of setting storage is in storage device 50.It should be noted that the setting that locks has been passed through in now this application 10 locked.
As shown in Figure 4, be that the present invention locks the flow chart to the preferred embodiment of the application release of mobile phone in the method for mobile phone application.
Step S14, when user's click carried out locking the corresponding icon of application of setting, starts module 202 and again starts map software 30, and again obtain the map that map software 30 offers mobile phone 1.
Step S15, reminding module 208 prompting users again click and indicate point and select starting point, destination and the point of process midway on obtained map.
Step S16, acquisition module 206 receives starting point that users select again, destination and the point corresponding gps coordinate separately of process midway, and is stored as received gps coordinate.
Step S17, whether the gps coordinate that judge module 210 judgements receive is consistent with the gps coordinate setting; When received gps coordinate is consistent with the gps coordinate setting, enter step S18; When received gps coordinate and the gps coordinate setting are inconsistent, enter step S19.When the gps coordinate of point of the gps coordinate of received starting point and the gps coordinate of the starting point setting, the gps coordinate of destination receiving and the gps coordinate of the destination setting and the process midway that receives and the gps coordinate of the point of the process midway setting are all consistent, judge that the gps coordinate receiving is consistent with the gps coordinate setting; In the gps coordinate of point and the gps coordinate of the point of the process midway setting of the gps coordinate of received starting point and the gps coordinate of the starting point setting, the gps coordinate of destination receiving and the gps coordinate of the destination setting and the process midway that receives, when one of them gps coordinate is inconsistent, the gps coordinate that judgement receives is inconsistent with the gps coordinate setting.
Step S18, described processing module 212 is opened this application 10, and this application 10 can be moved for user, and then flow process finishes.
Step S19, described processing module 212 prompting user input error, then process ends.