Summary of the invention
In order to improve the user to the processing speed of this conversation event with to the contact person's of portable terminal efficiency of managing, the embodiment of the invention provides a kind of establishment message registration method, device and portable terminal.Described technical scheme is as follows:
First aspect provides a kind of establishment message registration method, and described method comprises:
When portable terminal generation conversation event, obtain conversation opposite end contact person's telephone number;
Obtain the current geographical location information of portable terminal;
According to described contact person's telephone number and described geographical location information, generate message registration.
In conjunction with first aspect, in first kind of possibility implementation of the embodiment of the invention, to obtain before the current geographical location information of portable terminal, described method also comprises:
The telephone number of having preserved according to this locality and described contact person's telephone number are identified described contact person's telephone number;
Correspondingly, obtain the current geographical location information of portable terminal, in the following way:
When described contact person's telephone number is strangeness numbers, obtain the current geographical location information of portable terminal.
In conjunction with first kind of the embodiment of the invention may implementation, second kind of the embodiment of the invention may implementation in, the telephone number of having preserved according to this locality and described contact person's telephone number are identified described contact person's telephone number, in the following way:
Obtain the local telephone number of having preserved;
Judge the telephone number that whether comprises this contact person in the telephone number of having preserved described this locality;
When comprising described contact person's telephone number in the telephone number that has preserved described this locality, described contact person's telephone number is known number;
When not comprising described contact person's telephone number in the telephone number that has preserved described this locality, described contact person's telephone number is strangeness numbers.
In conjunction with first aspect, in the third possibility implementation of the embodiment of the invention, to obtain after the current geographical location information of portable terminal, described method also comprises:
According to the geographical location information that gets access to, obtain the Weather information of described geographical location information correspondence;
Correspondingly, according to described contact person's telephone number and described geographical location information, generate message registration, in the following way:
According to described contact person's telephone number, described geographical location information and described Weather information, generate message registration.
In conjunction with the third possibility implementation of the embodiment of the invention, in the 4th kind of possibility implementation of the embodiment of the invention, according to the geographical location information that gets access to, obtain the Weather information of described geographical location information correspondence, in the following way:
Send the weather data request to the Weather information data source, described geographical location information is carried in described weather data request, makes described Weather information data source return the weather data of described geographical location information correspondence;
Receive the weather data that described Weather information data source sends;
Resolve described weather data, obtain and the corresponding Weather information of default weather items.
Second aspect provides a kind of establishment call recording device, and described device comprises:
The number acquisition module is used for obtaining conversation opposite end contact person's telephone number when portable terminal generation conversation event;
The geographical position acquisition module is used for obtaining the current geographical location information of portable terminal;
The message registration generation module is used for telephone number and described geographical location information according to described contact person, generates message registration.
In conjunction with second aspect, in first kind of possibility implementation of the embodiment of the invention, described device also comprises:
The number identification module for the telephone number of having preserved according to this locality and described contact person's telephone number, is identified described contact person's telephone number;
Correspondingly, described geographical position acquisition module comprises:
The geographical position acquiring unit is used for obtaining the current geographical location information of portable terminal when described contact person's telephone number is strangeness numbers.
In conjunction with first kind of possibility implementation of the embodiment of the invention, in second kind of possibility implementation of the embodiment of the invention, described number identification module comprises:
The local number acquiring unit is used for obtaining the local telephone number of having preserved;
Judging unit is used for judging whether the telephone number of having preserved described this locality comprises this contact person's telephone number;
Determining unit is used for when described judging unit determines that the telephone number that preserved described this locality comprises described contact person's telephone number, and described contact person's telephone number is known number;
Described determining unit also is used for when described judging unit determines that the telephone number of having preserved described this locality does not comprise described contact person's telephone number, and described contact person's telephone number is strangeness numbers.
In conjunction with second aspect, in the third possibility implementation of the embodiment of the invention, described device also comprises:
The Weather information acquisition module is used for obtaining the Weather information of described geographical location information correspondence according to the geographical location information that gets access to;
Correspondingly, described message registration generation module is used for according to described contact person's telephone number, described geographical location information and described Weather information, generates message registration.
In conjunction with the third possibility implementation of the embodiment of the invention, in the 4th kind of possibility implementation of the embodiment of the invention, described Weather information acquisition module comprises:
The request of data unit is used for sending the weather data request to the Weather information data source, and described geographical location information is carried in described weather data request, makes described Weather information data source return the weather data of described geographical location information correspondence;
The data receiving element is used for receiving the weather data that described Weather information data source sends;
The Weather information acquiring unit is used for resolving described weather data, obtains and the corresponding Weather information of default weather items.
The third aspect provides a kind of portable terminal, and described portable terminal comprises:
Display screen;
One or more processors;
Memory; With
One or more modules, described one or more module stores are in described memory and be configured to be carried out by described one or more processors, and wherein, described one or more modules have following function:
When portable terminal generation conversation event, obtain conversation opposite end contact person's telephone number;
Obtain the current geographical location information of portable terminal;
According to described contact person's telephone number and described geographical location information, generate message registration.
The beneficial effect that the technical scheme that the embodiment of the invention provides is brought is:
The method that the embodiment of the invention provides, device and portable terminal by when the portable terminal generation conversation event, obtain conversation opposite end contact person's telephone number; Obtain the current geographical location information of portable terminal; According to described contact person's telephone number and described geographical location information, generate message registration.Adopt technical scheme of the present invention, by telephone number and the current geographical location information of portable terminal that obtains the contact person, and generation message registration, make telephone number and the geographical location information that the user comprises according to described message registration, scene when remembering to quicklook the conversation event and taking place improves the user to the processing speed of this conversation event with to the contact person's of portable terminal efficiency of managing.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
Fig. 1 is a kind of flow chart of creating the message registration method that the embodiment of the invention provides.The executive agent of this inventive embodiments is portable terminal, and referring to Fig. 1, described method comprises:
101: when portable terminal generation conversation event, obtain conversation opposite end contact person's telephone number;
In the embodiment of the invention, in a portable terminal registration monitoring (listen) event, be used for monitoring the call state of this portable terminal, when this call state is represented this portable terminal generation conversation event, obtain the opposite end contact person's of this conversation event telephone number, wherein, this conversation event can be caller event or called event, preferably, this conversation event can be called event.
Wherein, the operating system used of this portable terminal can be Android system, iOS system etc.
Particularly, be that the Android system is example with the employed operating system of this portable terminal, portable terminal is by onCallStateChanged (int state, string incomingNumber) monitors the call state of this portable terminal, when state is CALL_STATE_RINGING, represent that this portable terminal receives incoming call, the incomingNumber of this moment namely is the telephone number of incoming call, this telephone number is retrieved as this conversation opposite end contact person's telephone number.
102: obtain the current geographical location information of portable terminal;
Wherein, this geographical location information can comprise street name, realm name, city's name of this current position of portable terminal etc.This geographical location information can obtain according to the latitude and longitude coordinates that portable terminal obtains by modes such as location.Can determine the current position of this portable terminal according to this geographical location information, i.e. the current position of mobile phone users.
103: telephone number and this geographical location information according to this contact person generate message registration.
Particularly, the file format of the database file of message registration can comprise a plurality of fields, and these a plurality of fields are used for the relevant information of the corresponding conversation event of record, as contact person's telephone number and air time etc.In the process that generates message registration, telephone number and this geographical location information according to this contact person, field of expansion in the file format of this database file, be used for this geographical location information of record, make telephone number and this geographical location information of this contact person be associated, be convenient to when the user checks this message registration, not only can check the air time, can also view residing geographical location information of when conversation self, recall the conversation scene of this geographical location information correspondence intuitively.
The method that the embodiment of the invention provides by when the portable terminal generation conversation event, is obtained conversation opposite end contact person's telephone number; Obtain the current geographical location information of portable terminal; Telephone number and this geographical location information according to this contact person generate message registration.Adopt technical scheme of the present invention, by telephone number and the current geographical location information of portable terminal that obtains the contact person, and generation message registration, make telephone number and the geographical location information that the user comprises according to this message registration, scene when remembering to quicklook the conversation event and taking place improves the user to the processing speed of this conversation event with to the contact person's of portable terminal efficiency of managing.
Alternatively, obtain before the current geographical location information of portable terminal, this method also comprises:
The telephone number of having preserved according to this locality and this contact person's telephone number are identified this contact person's telephone number;
Correspondingly, obtaining the current geographical location information of portable terminal comprises:
When this contact person's telephone number is strangeness numbers, obtain the current geographical location information of portable terminal.
Alternatively, the telephone number of having preserved according to this locality and this contact person's telephone number are identified this contact person's telephone number, comprising:
Obtain the local telephone number of having preserved;
Judge the telephone number that whether comprises this contact person in the telephone number of having preserved described this locality;
When comprising this contact person's telephone number in the telephone number that has preserved this this locality, this contact person's telephone number is known number;
When not comprising this contact person's telephone number in the telephone number that has preserved this this locality, this contact person's telephone number is strangeness numbers.
Alternatively, obtain after the current geographical location information of portable terminal, this method also comprises:
According to the geographical location information that gets access to, obtain the Weather information of this geographical location information correspondence;
Correspondingly, telephone number and this geographical location information according to this contact person generate message registration, comprising:
According to this contact person's telephone number, this geographical location information and this Weather information, generate message registration.
Alternatively, according to the geographical location information that gets access to, obtain the Weather information of this geographical location information correspondence, comprising:
Send the weather data request to the Weather information data source, this geographical location information is carried in this weather data request, makes this Weather information data source return the weather data of this geographical location information correspondence;
Receive the weather data that this Weather information data source sends;
Resolve this weather data, obtain and the corresponding Weather information of default weather items.
Above-mentioned all optional technical schemes can adopt any combination to form optional embodiment of the present invention, give unnecessary details no longer one by one at this.
Fig. 2 is a kind of flow chart of creating the message registration method that the embodiment of the invention provides.The executive agent of this inventive embodiments is portable terminal, and referring to Fig. 2, described method comprises:
201: when portable terminal generation conversation event, obtain conversation opposite end contact person's telephone number;
202: portable terminal obtains the local telephone number of having preserved;
Particularly, use the Android system to be example with this portable terminal, by the local All Contacts's who has preserved of getContentResolver () .query () inquiry telephone number.
This step 202 does not have inevitable sequential relationship with step 201, when portable terminal generation conversation event, obtain conversation opposite end contact person's telephone number process and obtain local telephone number process of having preserved and can carry out simultaneously, can one in front and one in back carry out, the embodiment of the invention is not done restriction to this yet.Wherein, the embodiment of the invention is to describe to be implemented as example after the telephone number process of obtaining conversation opposite end contact person of local telephone number process of having preserved in step 201 of obtaining in the step 202.
203: judge the telephone number that whether comprises this contact person in the telephone number of having preserved described this locality;
If, execution in step 204;
If not, execution in step 205;
Particularly, the telephone number that any this locality that inquires on this portable terminal has been preserved and this contact person's telephone number are identified, when the telephone number of having preserved when this any this locality is identical with this contact person's telephone number, comprise this contact person's telephone number in the telephone number of representing to have preserved this this locality; When all telephone numbers of having preserved when this locality and this contact person's telephone number are all inequality, do not comprise this contact person's telephone number in the telephone number of representing to have preserved this this locality.
204: when comprising this contact person's telephone number in the telephone number that has preserved this this locality, this contact person's telephone number is known number, generates message registration, finishes;
The message registration that this step 204 generates comprises essential informations such as this contact person's telephone number and air time.
205: when not comprising this contact person's telephone number in the telephone number that has preserved this this locality, this contact person's telephone number is strangeness numbers;
Need to prove, this step 202-205 is optional step, the embodiment of the invention is only obtained the current geographical location information of this portable terminal with this portable terminal acquiescence when this portable terminal and strangeness numbers are conversed be that example describes, and in actual applications, when this portable terminal acquiescence is obtained the current geographical location information of this portable terminal per capita to the contact of all conversation events of this portable terminal, need not carry out this step 202-205, after having carried out step 201, directly execution in step 206 gets final product.
206: portable terminal obtains the current geographical location information of portable terminal;
This geographical location information is the title of this current position of portable terminal, as the WangJing West Road, Chaoyang District, BeiJing City, simultaneously can also be according to the current position of this portable terminal, inquiry third party map, obtain the map that comprises current geographical position sign, the embodiment of the invention is not done restriction to this.
This step 206 specifically can comprise following arbitrary step (1), (2) or (3):
(1) applied global positioning system GPS positions, and obtains the current geographical location information of this portable terminal;
Particularly, applied global positioning system GPS obtains the latitude and longitude coordinates of this current position of portable terminal, and according to the latitude and longitude coordinates of obtaining, inquires about this latitude and longitude coordinates corresponding geographical location information, is kept in this portable terminal.
Wherein, when the inquiry geographical location information, can be with this latitude and longitude coordinates as keyword, inquire about this latitude and longitude coordinates corresponding geographical location information on the internet, can also the geographical position be installed at portable terminal uses, the geographical position that can obtain each latitude and longitude coordinates correspondence is used in this geographical position, according to the current position of this portable terminal latitude and longitude coordinates, obtains this current geographical location information in use in this geographical position.The embodiment of the invention is not done restriction to this.
Applied global positioning system GPS locatees the current position of this portable terminal, and the accuracy height has global, continuity and good anti-interference.
(2) the as fired basis position service of standing firm positions, and obtains the current geographical location information of this portable terminal;
Particularly, this portable terminal is measured different base stations in the down-bound pilot frequency signal at this portable terminal place, coordinate according to measurement result and different base station, determine the latitude and longitude coordinates of this portable terminal, and according to this latitude and longitude coordinates, obtain this current geographical location information, this obtains the geographical location information process and step (1) is similar, does not repeat them here.
When the as fired basis position service of standing firm positioned, this portable terminal did not need to have the GPS function, can be applicable to indoor positioning.
(3) employing wireless fidelity technology Wi-Fi positions, and obtains the current geographical location information of this portable terminal;
Particularly, this portable terminal detects near the signal power of the different Wi-Fi Hotspots this portable terminal, detection information is sent to location-server, make this location-server according to this detection information, inquire about the coordinate of this different Wi-Fi Hotspot of preserving in this location-server, determine the latitude and longitude coordinates of this portable terminal, and this latitude and longitude coordinates sends to this portable terminal, this portable terminal is according to the latitude and longitude coordinates that receives, obtain this current geographical location information, this obtains the geographical location information process and step (1) is similar, does not repeat them here.
The Wi-Fi location technology can be applicable to indoor positioning, and locating speed is fast, has reduced interference, the accuracy height.
Need to prove, when obtaining the current geographical location information of portable terminal, can be according to configuring condition, current geographic position type and the signal strength signal intensity etc. of this portable terminal, select each or multinomial execution in the above-mentioned steps.Wherein, this configuring condition refers to whether this portable terminal is installed GPS and used, whether have situations such as Wi-Fi positioning function; This current geographical position type comprises that this portable terminal is in indoor or is in outdoor; This signal strength signal intensity refers to the signal strength signal intensity of the different base station that this portable terminal receives.Select corresponding locate mode according to the different situations of this portable terminal, in order to obtain the current geographical location information of this portable terminal fast.
Further, in another embodiment that the embodiment of the invention provides, afterwards, this method can also comprise steps A, B and C " to obtain the current geographical location information of portable terminal " in step 206:
A: portable terminal sends the weather data request to the Weather information data source, and this geographical location information is carried in this weather data request, makes this Weather information data source return the weather data of this geographical location information correspondence;
Wherein, the Weather information data server that this Weather information data source can be the Internet can also be that the Weather information of installing on this portable terminal is used the Weather information data of obtaining.
Particularly, this Weather information data source has been preserved the weather data of diverse geographic location correspondence, when this portable terminal sends the weather data request to the Weather information data source, this Weather information data source receives this request, according to this geographical location information that carries in this request, obtain the weather data of this geographical location information correspondence, and send to this portable terminal.
B: portable terminal receives the weather data that this Weather information data source sends;
C: portable terminal is resolved this weather data, obtains and the corresponding Weather information of default weather items;
This weather data comprises all weather items, as weather pattern (as fine, cloudy, light rain or cloudy etc.), temperature, wind-force, pollution index etc.When not needing to obtain the weather data of all items, can preestablish the weather items that to obtain, i.e. default weather items.Should default weather items can be arranged when developing by the technical staff, can in use be arranged by mobile phone users yet, the embodiment of the invention is not done restriction to this.
Particularly, this portable terminal according to this default weather items, is resolved this weather data after receiving the weather data of this Weather information data source transmission, obtains and the corresponding Weather information of this default weather items.
207: portable terminal generates message registration according to telephone number and this geographical location information of this contact person, finishes;
Particularly, file format to the database file of message registration is expanded, make a plurality of fields after the expansion record this contact person's telephone number, air time and this geographical location information etc. respectively, then this message registration of generating of this step 207 comprises this contact person's essential information and this geographical location information such as telephone number, air time.
Correspondingly, on the basis based on steps A, B and C, this step 207 can be replaced by following steps: portable terminal generates message registration according to this contact person's telephone number, this geographical location information and this Weather information.That is to say that this message registration comprises essential information, this geographical location information and this Weather informations such as this contact person's telephone number, air time.
Fig. 3 is that a kind of message registration that the embodiment of the invention provides shows schematic diagram.Referring to Fig. 3, the details that show corresponding message registration at portable terminal, telephone number " 10086100101 ", air time " 2013/03/19,15:05 ", conversation place " WangJing West Road, Chaoyang District, BeiJing City " and the Weather information " moderate snow changes slight snow, 4 to-2 ℃, gentle breeze " that comprise the contact person.Wherein, picture 1 is the map that obtains according to portable terminal conversation place at that time, the particular geographic location when this map comprises mobile terminal call and surrounding environment zone; Should default weather items comprise weather pattern, temperature and wind-force.
Example based on Fig. 3, when the user can't remember the represented conversation event of the incoming call message registration of this strangeness numbers, check the message registration details, according to the essential information in the message registration, geographical location information and Weather information, scene when recalling with this Affiliate sessions intuitively, in order to identify this contact person's identity, and to this conversation event related content handle it.
The method that the embodiment of the invention provides by when the portable terminal generation conversation event, is obtained conversation opposite end contact person's telephone number; Obtain the current geographical location information of portable terminal; Telephone number and this geographical location information according to this contact person generate message registration.Adopt technical scheme of the present invention, by telephone number and the current geographical location information of portable terminal that obtains the contact person, and generation message registration, make telephone number and the geographical location information that the user comprises according to this message registration, scene when remembering to quicklook the conversation event and taking place improves the user to the processing speed of this conversation event with to the contact person's of portable terminal efficiency of managing.
Fig. 4 is a kind of establishment call recording device structural representation that the embodiment of the invention provides.The executive agent of this inventive embodiments is portable terminal, and referring to Fig. 4, described device comprises:
Number acquisition module 41 is used for obtaining conversation opposite end contact person's telephone number when portable terminal generation conversation event;
Geographical position acquisition module 42 is used for obtaining the current geographical location information of portable terminal;
Message registration generation module 43 is used for telephone number and this geographical location information according to this contact person, generates message registration.
Alternatively, this device also comprises:
The number identification module for the telephone number of having preserved according to this locality and this contact person's telephone number, is identified this contact person's telephone number;
Correspondingly, this geographical position acquisition module 42 comprises:
The geographical position acquiring unit is used for obtaining the current geographical location information of portable terminal when this contact person's telephone number is strangeness numbers.
Alternatively, this number identification module comprises:
The local number acquiring unit is used for obtaining the local telephone number of having preserved;
Judging unit is used for judging whether the telephone number of having preserved described this locality comprises this contact person's telephone number;
Determining unit is used for when described judging unit determines that the telephone number that preserved described this locality comprises described contact person's telephone number, and described contact person's telephone number is known number;
Described determining unit also is used for when described judging unit determines that the telephone number of having preserved described this locality does not comprise described contact person's telephone number, and described contact person's telephone number is strangeness numbers.
Alternatively, this device also comprises:
The Weather information acquisition module is used for obtaining the Weather information of this geographical location information correspondence according to the geographical location information that gets access to;
Correspondingly, described message registration generation module 43 is used for according to described contact person's telephone number, described geographical location information and described Weather information, generates message registration.
Alternatively, this Weather information acquisition module comprises:
The request of data unit is used for sending the weather data request to the Weather information data source, and this geographical location information is carried in this weather data request, makes this Weather information data source return the weather data of this geographical location information correspondence;
The data receiving element is used for receiving the weather data that this Weather information data source sends;
The Weather information acquiring unit is used for resolving this weather data, obtains and the corresponding Weather information of default weather items.
The device that the embodiment of the invention provides by when the portable terminal generation conversation event, obtains conversation opposite end contact person's telephone number; Obtain the current geographical location information of portable terminal; Telephone number and this geographical location information according to this contact person generate message registration.Adopt technical scheme of the present invention, by telephone number and the current geographical location information of portable terminal that obtains the contact person, and generation message registration, make telephone number and the geographical location information that the user comprises according to this message registration, scene when remembering to quicklook the conversation event and taking place improves the user to the processing speed of this conversation event with to the contact person's of portable terminal efficiency of managing.
Need to prove: the device of the establishment message registration that above-described embodiment provides is when creating message registration, only the division with above-mentioned each functional module is illustrated, in the practical application, can as required the above-mentioned functions distribution be finished by different functional modules, the internal structure that is about to portable terminal is divided into different functional modules, to finish all or part of function described above.In addition, the device of the establishment message registration that above-described embodiment provides belongs to same design with the method embodiment that creates message registration, and its specific implementation process sees method embodiment for details, repeats no more here.
The embodiment of the invention also provides a kind of portable terminal, and this portable terminal comprises:
Display screen;
One or more processors;
Memory; With
One or more modules, these one or more module stores are in this memory and be configured to be carried out by these one or more processors, and wherein, these one or more modules have following function:
When portable terminal generation conversation event, obtain conversation opposite end contact person's telephone number;
Obtain the current geographical location information of portable terminal;
Telephone number and this geographical location information according to this contact person generate message registration.
Alternatively, these one or more modules are identified this contact person's telephone number for the telephone number of having preserved according to this locality and this contact person's telephone number;
Correspondingly, these one or more modules also are used for obtaining the current geographical location information of portable terminal when this contact person's telephone number is strangeness numbers.
Alternatively, these one or more modules also are used for obtaining the local telephone number of having preserved;
Judge the telephone number that whether comprises this contact person in the telephone number of having preserved described this locality;
When comprising this contact person's telephone number in the telephone number that has preserved this this locality, this contact person's telephone number is known number;
When not comprising this contact person's telephone number in the telephone number that has preserved this this locality, this contact person's telephone number is strangeness numbers.
Alternatively, these one or more modules also are used for according to the geographical location information that gets access to, and obtain the Weather information of this geographical location information correspondence;
Correspondingly, telephone number and this geographical location information according to this contact person generate message registration, comprising:
According to this contact person's telephone number, this geographical location information and this Weather information, generate message registration.
Alternatively, these one or more modules also are used for sending the weather data request to the Weather information data source, and this geographical location information is carried in this weather data request, makes this Weather information data source return the weather data of this geographical location information correspondence;
Receive the weather data that this Weather information data source sends;
Resolve this weather data, obtain and the corresponding Weather information of default weather items.
The portable terminal that the embodiment of the invention provides by when the portable terminal generation conversation event, obtains conversation opposite end contact person's telephone number; Obtain the current geographical location information of portable terminal; Telephone number and this geographical location information according to this contact person generate message registration.Adopt technical scheme of the present invention, by telephone number and the current geographical location information of portable terminal that obtains the contact person, and generation message registration, make telephone number and the geographical location information that the user comprises according to this message registration, scene when remembering to quicklook the conversation event and taking place improves the user to the processing speed of this conversation event with to the contact person's of portable terminal efficiency of managing.
The all or part of step that one of ordinary skill in the art will appreciate that realization above-described embodiment can be finished by hardware, also can instruct relevant hardware to finish by program, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be read-only memory, disk or CD etc.
The above only is preferred embodiment of the present invention, and is in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.