Summary of the invention
The technical problem to be solved in the present invention is in that, drawbacks described above for prior art, a kind of method based on mobile terminal automatically refusing incoming call and mobile terminal are provided, have submitted and start the method for incoming call blocking function and mobile equipment according to place, make the present invention realize carrying out the function of automatic rejection in different places for different incoming calls.
This invention address that the technical scheme that technical problem adopts is as follows:
A kind of method based on mobile terminal automatically refusing incoming call, wherein, including step:
A, described mobile terminal receive the operational order of user and pre-set the place of automatically refusing incoming call and the rejection number corresponding with this place, and store;
B, described mobile terminal period obtain current positional information, when there being incoming call, it is judged that whether the current positional information obtained is the place pre-setting automatically refusing incoming call;
C, when being, determine whether whether current call number is the rejection number corresponding with this automatically refusing incoming call place that be that pre-set, when being, then control this incoming call of rejection.
Described step A specifically includes:
The operational order of A1, described mobile terminal reception user pre-sets the place of one or more automatically refusing incoming call;
A2, described mobile terminal automatic mapping go out the latitude and longitude coordinates range information corresponding with each preset location and store;
A3, described mobile terminal receive the operational order of user and arrange the rejection number information corresponding with each place.
Described step A1 also includes: the operational order of described mobile terminal reception user arranges the place of one or more automatically refusing incoming call in advance on mobile terminal map.
Described step B specifically includes:
B1, described mobile terminal period obtain current positional information, and described current positional information is converted to current latitude and longitude coordinates information;
B2, when there being incoming call, it is judged that whether current latitude and longitude coordinates information in the latitude and longitude coordinates range information that preset location is corresponding;When being, then confirm that mobile terminal current location is one of place pre-setting automatically refusing incoming call.
Described step C specifically includes:
C1, when judging that described mobile terminal current location is when the place of an automatically refusing incoming call pre-set, determine whether that the rejection number that current call number is corresponding with the place with this automatically refusing incoming call pre-set is identical;
C2, when the rejection number that the place with this automatically refusing incoming call determining whether current call number with pre-set is corresponding is identical, then control this incoming call of rejection.
It is position acquisition by the acquisition of GPS location, base station CellID that described mobile terminal period obtains current positional information, and Wi-Fi location obtains.
A kind of mobile terminal adopting the method such as above-mentioned automatically refusing incoming call, wherein, comprising:
Arranging module, the operational order for receiving user pre-sets the place of automatically refusing incoming call and the rejection number corresponding with this place, and stores;
Locating module, for periodically obtaining the positional information that mobile terminal is current, exports position analysis judgment module when there being incoming call incoming call by positional information;
Location resolution judge module, for resolving the location information data of locating module output, calculates current position coordinates, and judges whether the current positional information obtained is one of place pre-setting automatically refusing incoming call;
Control module, for when whether the current positional information obtained of judgement is one of place pre-setting automatically refusing incoming call, determine whether whether current call number is the rejection number corresponding with this automatically refusing incoming call place that be that pre-set, when being, then control this incoming call of rejection.
The described module that arranges farther includes:
First receives unit, and the operational order for receiving user arranges the place of one or more automatically refusing incoming call in advance on cell phone map;
Map unit, goes out the latitude and longitude coordinates range information corresponding with each preset location for automatic mapping and stores;
Second receives unit, and the operational order for receiving user arranges the rejection number information corresponding with each place.
Described locating module includes: for being positioned the GPS positioning unit of current location information by GPS;For being positioned the base station CellID positioning unit of current location information by base station CellID or for being positioned the Wi-Fi positioning unit of current location information by Wi-Fi.
Described control module farther includes
Judging unit, for when judging that described mobile terminal current location is when the place of an automatically refusing incoming call pre-set, determine whether that whether corresponding with the place with this automatically refusing incoming call pre-set current call number rejection number be identical;
Rejection control unit, for when the rejection number that the place with this automatically refusing incoming call determining whether current call number with pre-set is corresponding is identical, then controlling this incoming call of rejection.
A kind of method based on mobile terminal automatically refusing incoming call provided by the present invention and mobile terminal, it makes mobile terminal add New function: can carry out the function of automatic rejection in different places for different incoming calls.The present invention is directed to the mobile terminal with positioning function, user may be set in some places, the incoming call of some number is carried out automatic rejection, when mobile terminal arrives in this ground point range, the then mobile terminal automatically rejecting incoming call to arranging, mobile terminal can be made to realize different receiving rejection functions in different places, the great motility provided the user and convenience.
Detailed description of the invention
For making the purpose of the present invention, technical scheme and advantage clearly, clearly, developing simultaneously referring to accompanying drawing, the present invention is described in more detail for embodiment.Should be appreciated that specific embodiment described herein is only in order to explain the present invention, is not intended to limit the present invention.
Refer to the flow chart of preferred embodiment that Fig. 1, Fig. 1 are the methods of a kind of automatically refusing incoming call based on mobile terminal of the present invention.
Automatically refusing incoming call method of the present invention, for mobile phone, is described further by the present embodiment.
Shown in the present embodiment comprises the following steps that;User can be turned on and off this automatically refusing incoming call function from main separation, and when user selects to close, then relevant automatically refusing incoming call function is closed;When user selects to open, then enter step 101, mobile phone receives the operational order of user and pre-sets the place of automatically refusing incoming call and the rejection number corresponding with this place, and store;
In the present embodiment, user can arrange the place of multiple automatically refusing incoming call and the multiple rejection numbers corresponding with this place.Such as user arranges described place by cell phone map, namely user arranges the place of one or more automatically refusing incoming call on cell phone map, and some numbers of refusal are needed in this place, adopt cell phone map described place is set more to facilitate the use of cellphone subscriber, be more beneficial for user flexibility quick and relatively accurate required location information is set.
Preferably, user selects place in cell phone map, because described place has mapping relations with actual latitude and longitude coordinates, namely all corresponding latitude and longitude coordinates scope in each place preset on cell phone map, so that described mobile terminal automatic mapping goes out the latitude and longitude coordinates range information corresponding with each preset location and stores, can according to described latitude and longitude coordinates range information user, the refusal number corresponding with each place is set, such as, the number such as friend being arranged on company's meeting room rejection other friend unrelated with work is first-class, after setting corresponding rejection number, enter step 102, mobile phone periodically obtains current positional information, and described current positional information is converted to current latitude and longitude coordinates information.
Wherein, user is in the process using described mobile phone, meeting is change mobile phone location as required, and the difference according to position, required for user, the number information of rejection also can be different, in order to better realize the present invention, so, described mobile phone need to periodically obtain current positional information, and acquired current location information is converted to current latitude and longitude coordinates information, thus judging the position that user mobile phone is current more accurately, and current latitude coordinate scope.
It is preferred that it is by the acquisition of GPS location, base station CellID(cell ID that mobile terminal period described in described step 102 obtains current positional information) location obtains, and Wi-Fi location obtains.
Wherein, described localization method can select, according to the difference that mobile phone is arranged, the localization method adapted with mobile phone the machine, when mobile phone is provided simultaneously with above two or three kinds of positioning functions, user can according to the use habit regioselective method of oneself, thus embodying the characteristic of man-machine interaction more preferably.
Carrying out described step 102, mobile terminal period obtains current positional information, and described current positional information is converted in the process of current latitude and longitude coordinates information, when having incoming call, then enter step 103, when there being incoming call, it is judged that the latitude and longitude coordinates information of current location is whether in the latitude and longitude coordinates range information that preset location is corresponding;As previously shown, when user is with mobile phone at company's meeting room.
When the result judged is no, namely during cell phone incoming call, the latitude and longitude coordinates information of mobile phone current location is not in the corresponding latitude and longitude coordinates range information of preset location, then return step 102, continue periodically to obtain the current location information of mobile terminal, and described current positional information is converted to current latitude and longitude coordinates information.
When the result judged is yes, namely during cell phone incoming call, the latitude and longitude coordinates information of mobile phone current location is in the corresponding latitude and longitude coordinates range information of preset location, then confirm that mobile phone current location is one of place pre-setting automatically refusing incoming call, such as, as previously shown, when user mobile phone current location is when company's meeting room, and it is one of place pre-setting automatically refusing incoming call that previous exemplary arranges the said firm's meeting room.Then this enforcement judge mobile phone current location for described in pre-set the place of automatically refusing incoming call for the moment.Subsequently into step 104, determine whether whether current call number is the rejection number corresponding with this automatically refusing incoming call place that be that pre-set;Such as it was previously stated, determine whether that whether current call number is the number of default friend's first.
When the result judged is no, namely current call number is not the rejection number corresponding with this automatically refusing incoming call place pre-set, then manually selected by user oneself, answer or hang up, then proceed by step 102, mobile phone periodically obtains current positional information, and described current positional information is converted to current latitude and longitude coordinates information.
When the result judged is yes, when rejection number that namely to determine whether current call number corresponding with the place with this automatically refusing incoming call pre-set is identical, for instance as it was previously stated, determine whether that current call number is the number of default friend's first.Then entering step 106, controlling this incoming call of rejection, thus reaching the purpose according to positional information automatically refusing incoming call.
Based on above-described embodiment, present invention also offers the mobile terminal of a kind of automatically refusing incoming call method adopting above-described embodiment, concrete as in figure 2 it is shown, Fig. 2 is the structured flowchart of the preferred embodiment of the mobile terminal of a kind of automatically refusing incoming call, the mobile terminal of the present embodiment includes;
Arranging module 230, the operational order for receiving user pre-sets the place of automatically refusing incoming call and the rejection number corresponding with this place, and stores, specifically as described in above-mentioned steps 101.
Locating module 200, for periodically obtaining the positional information that mobile terminal is current, exports position analysis judgment module when there being incoming call incoming call by positional information, specifically as described in above-mentioned steps 102.
Location resolution judge module 210, for resolving the location information data of locating module output, calculates current position coordinates, and judges whether the current positional information obtained is one of place pre-setting automatically refusing incoming call, specifically as described in above-mentioned steps 103.
Control module 220, positional information for currently obtaining when judgement is one of place pre-setting automatically refusing incoming call, determine whether whether current call number is the rejection number corresponding with this automatically refusing incoming call place that be that pre-set, when being, then control this incoming call of rejection, specifically as described in above-mentioned steps 104.
It is preferred that as it is shown on figure 3, the described module 230 that arranges farther includes:
First receives unit 231, and the operational order for receiving user arranges the place of one or more automatically refusing incoming call in advance on cell phone map, specifically as described in above-mentioned steps 101.
Map unit 232, goes out the latitude and longitude coordinates range information corresponding with each preset location for automatic mapping and stores, specifically as described in above-mentioned steps 101.
Second receives unit 233, and the operational order for receiving user arranges the rejection number information corresponding with each place, specifically as described in above-mentioned steps 101.
Locating module 200 described in the present embodiment, such as Fig. 4, described locating module 200 farther includes:
For being positioned the GPS positioning unit 201 of current location information by GPS, specifically as described in above-mentioned steps 102.
For being positioned the base station CellID positioning unit 202 of current location information by base station CellID, specifically as described in above-mentioned steps 102.
For being positioned the Wi-Fi positioning unit 203 of current location information by Wi-Fi, specifically as described in above-mentioned steps 102.
Wherein, described locating module 200 is operationally, it is select by GPS positioning unit 201, or select base station CellID positioning unit 202 and Wi-Fi positioning unit 203, according to mobile phone, decision can be set for self, when mobile phone include above-mentioned positioning unit two or three, then can carry out regioselective unit according to the use habit of self.
Described control module 220 farther includes;
Judging unit 221, for when judging that described mobile terminal current location is when the place of an automatically refusing incoming call pre-set, determine whether that whether corresponding with the place with this automatically refusing incoming call pre-set current call number rejection number be identical, specifically as described in above-mentioned steps 104.
Rejection control unit, for when the rejection number that the place with this automatically refusing incoming call determining whether current call number with pre-set is corresponding is identical, then controlling this incoming call of rejection, specifically as described in above-mentioned steps 104.
Below, the invention will be further described to lift specific embodiment, when the action that user uses described mobile terminal to carry out automatically refusing incoming call, first with what arrange that module 230 provides the user, interface is set, cell phone map arranges the place of one or more automatically refusing incoming call, arrange module 230 automatic mapping goes out the latitude and longitude coordinates range information corresponding with each preset location and stores, then user is according to different needs, the number information of different automatically refusing incoming calls is set in different places, after user setup, module 230 is set described information notice is controlled module 220, and activate locating module 220 and start working.
Locating module 220 periodically obtains the positional information that user is current, and described current positional information is converted to current latitude and longitude coordinates information, wherein said locating module 220 realizes positioning function by GPS location, base station CellID location, and Wi-Fi location, concrete which kind of localization method of applying can be determined according to the selection of mobile phone self configuration and user.
When there being incoming call incoming call, during by incoming call incoming call, the positional information of user exports position analysis judgment module 210, described location resolution judge module 210 resolves the location information data of locating module 200 output, calculate current position coordinates, and judge whether the current positional information obtained is one of place pre-setting automatically refusing incoming call;Without in preset location, then do not deal with, if in preset location, then determine whether whether this incoming call in the rejection number information of user setup, if not in the number information of user preset, is then manually selected by user and answer or hang up under this place, if in the number information of user preset, notice controls module 220, after control module 220 has notice, and the call manager interface hanging up calling of calling mobile phone platform.
In sum, the present invention receives the operational order of user by mobile terminal, store the information refusing accordingly to answer, and periodically obtain the positional information of user, judge whether to refuse to listen according to setting during incoming call, it is achieved thereby that in different location, for the function automatically refusing to listen of jack per station, improve mobile terminal and realize refusing the motility of auditory function, greatly facilitate user.
It should be appreciated that the application of the present invention is not limited to above-mentioned citing, for those of ordinary skills, it is possible to improved according to the above description or convert, all these improve and convert the protection domain that all should belong to claims of the present invention.