CN103685670A - Method and equipment for automatically saving telephone numbers - Google Patents
Method and equipment for automatically saving telephone numbers Download PDFInfo
- Publication number
- CN103685670A CN103685670A CN201210335086.4A CN201210335086A CN103685670A CN 103685670 A CN103685670 A CN 103685670A CN 201210335086 A CN201210335086 A CN 201210335086A CN 103685670 A CN103685670 A CN 103685670A
- Authority
- CN
- China
- Prior art keywords
- phone number
- short message
- string
- save
- automatically
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Telephonic Communication Services (AREA)
- Telephone Function (AREA)
Abstract
本发明提供了一种电话号码自动保存的方法和设备。所述方法包括:接收短消息;对短消息的内容进行字符串匹配;当字符串匹配成功时,确定短消息的内容与电话号码有关,并对从短消息提取的相关电话号码进行自动保存。本发明的电话号码自动保存的方法和设备能够根据接收到的短消息的内容对相关电话号码进行自动保存,免去了用户手动保存的操作过程,给用户带来了便捷的体验。
The invention provides a method and equipment for automatically saving telephone numbers. The method includes: receiving a short message; performing string matching on the content of the short message; when the string matching is successful, determining that the content of the short message is related to a telephone number, and automatically saving the relevant telephone number extracted from the short message. The method and device for automatically saving phone numbers of the present invention can automatically save relevant phone numbers according to the content of the received short message, eliminating the need for the user to manually save the operation process, and bringing convenient experience to the user.
Description
技术领域 technical field
本发明涉及一种管理通讯录中的电话号码的方法和设备,更具体地说,涉及一种对电话号码进行自动保存的方法和设备。The invention relates to a method and equipment for managing telephone numbers in an address book, more specifically, a method and equipment for automatically saving telephone numbers.
背景技术 Background technique
随着通信技术的不断发展,移动终端越来越普及。这些移动终端除了具有与其他人进行通信的功能之外,还具有各种应用功能,诸如通讯录管理、视频播放、互联网接入等等。但是,当用户收到已知电话号码发送的“我的新电话号码是XXXXXXXXXXX,请保存”等类似的消息时,通讯录管理功能并不能帮助用户保存或更新电话号码。在这种情况下,用户需要进行手动操作,将新的电话号码复制,然后将复制的电话号码保存在通讯录中。此外,当用户收到陌生电话号码发送的“我是XXX,这是我的新电话号码,请保存”等类似的消息时,通讯录管理功能同样不能帮助用户保存或更新电话号码。在这种情况下,用户需要进行手动操作,将陌生电话号码保存在通讯录中。通过以上手动操作来保存电话号码和更新通讯录给用户带来了一定程度上的麻烦。With the continuous development of communication technologies, mobile terminals are becoming more and more popular. In addition to the function of communicating with other people, these mobile terminals also have various application functions, such as address book management, video playback, Internet access and so on. However, when the user receives a message like "My new phone number is XXXXXXXXXXXX, please save" from a known phone number, the address book management function cannot help the user save or update the phone number. In this case, the user needs to perform a manual operation to copy the new phone number, and then save the copied phone number in the address book. In addition, when the user receives a message like "I am XXX, this is my new phone number, please save" from an unfamiliar phone number, the address book management function also cannot help the user save or update the phone number. In this case, the user needs to perform a manual operation to save the unfamiliar phone number in the address book. Saving the phone number and updating the address book through the above manual operations has brought a certain degree of trouble to the user.
因此,需要一种当用户接收到变更电话号码的内容的消息时无需用户手动操作就能够自动保存电话号码的方法和设备。Therefore, there is a need for a method and apparatus for automatically saving a phone number without a user's manual operation when the user receives a message to change the content of the phone number.
发明内容 Contents of the invention
本发明的一方面在于提供一种电话号码自动保存方法和设备,所述电话号码自动保存方法和设备能够根据接收到的短消息的内容,确定该短消息是否与保存相关电话号码有关,当确定该短消息与保存相关电话号码时对相关电话号码进行自动保存。One aspect of the present invention is to provide a method and device for automatically saving a telephone number. The method and device for automatically saving a telephone number can determine whether the short message is related to saving the relevant telephone number according to the content of the received short message. When it is determined The relevant telephone number is automatically saved when the short message and the relevant telephone number are saved.
本发明的另一方面在于提供种电话号码自动保存方法和设备,所述电话号码自动保存方法和设备能够根据用户的选择,进行不同的操作,例如,自动保存相关电话号码、添加相关电话号码和覆盖原有电话号码等。Another aspect of the present invention is to provide a method and device for automatically saving phone numbers. The method and device for automatically saving phone numbers can perform different operations according to the user's selection, for example, automatically save related phone numbers, add related phone numbers and Overwrite the original phone number, etc.
根据本发明的一方面,提供了一种电话号码自动保存的方法,所述方法包括:接收短消息;对短消息的内容进行字符串匹配;当字符串匹配成功时,确定短消息的内容与电话号码有关,并对从短消息提取的相关电话号码进行自动保存。According to one aspect of the present invention, a method for automatically saving a phone number is provided, the method comprising: receiving a short message; performing string matching on the content of the short message; when the string matching is successful, determining the content of the short message and related to the phone number, and automatically save the related phone number extracted from the short message.
对短消息的内容进行字符串匹配的步骤可包括:当发送短消息的电话号码未保存在通讯录中时,将通讯录中保存的联系人姓名字符串与短消息中的文本字符串进行匹配;当姓名字符串与文本字符串匹配成功时,将短消息中除了匹配成功的姓名字符串之外的其它文本字符串与关键字符串进行匹配;当所述其它文本字符串与关键字符串匹配成功时,确定字符串匹配成功,并将发送短消息的电话号码确定为相关电话号码。The step of performing string matching on the content of the short message may include: when the phone number sending the short message is not stored in the address book, matching the contact name string stored in the address book with the text string in the short message ; When the name string matches the text string successfully, match other text strings in the short message except the successfully matched name string with the key string; when the other text strings match the key string When it succeeds, it is determined that the character string matches successfully, and the phone number for sending the short message is determined as the related phone number.
对短消息的内容进行字符串匹配的步骤可包括:当发送短消息的电话号码已经保存在通讯录中时,确定短消息中是否包含符合预定条件的连续数字;当确定包括符合预定条件的连续数字时,将短消息中除了符合预定条件的连续数字之外的其它文本字符串与关键字符串进行匹配;当所述其它文本字符串与关键字符串匹配成功时,确定字符串匹配成功,并将所述符合预定条件的连续数字确定为相关电话号码。The step of performing character string matching on the content of the short message may include: when the phone number sending the short message has been saved in the address book, determining whether the short message contains continuous numbers meeting predetermined conditions; number, match other text strings in the short message except the continuous numbers that meet the predetermined conditions with the key string; when the other text strings are successfully matched with the key string, determine that the string matching is successful, and The continuous numbers meeting the predetermined conditions are determined as relevant phone numbers.
对所述相关电话号码进行自动保存的步骤可包括:发出是否保存所述相关电话号码的提示;如果接收到保存所述相关电话号码的指示,则对所述相关电话号码进行自动保存;如果接收到不保存所述相关电话号码的指示,则不保存所述相关电话号码。The step of automatically saving the related phone number may include: issuing a prompt whether to save the related phone number; if receiving an instruction to save the related phone number, automatically saving the related phone number; If an instruction not to save the related phone number is received, the related phone number is not saved.
对所述相关电话号码进行自动保存的步骤可包括:发出是否保存所述相关电话号码的提示;如果接收到不保存所述相关电话号码的指示,则不保存所述相关电话号码;如果接收到保存所述相关电话号码的指示,则发出是添加所述相关电话号码还是覆盖原有电话号码的提示;如果接收到添加所述相关电话号码的指示,则在通讯录中将所述相关电话号码自动添加到相应联系人的记录中;如果接收到覆盖原有电话号码的指示,则在通讯录中将所述相关电话号码自动覆盖相应联系人的记录中的原有电话号码。The step of automatically saving the related phone number may include: issuing a prompt whether to save the related phone number; if receiving an instruction not to save the related phone number, not saving the related phone number; Save the instruction of the related phone number, then issue a prompt whether to add the related phone number or cover the original phone number; if the instruction of adding the related phone number is received, then add the related phone number automatically added to the record of the corresponding contact; if an instruction to overwrite the original phone number is received, the relevant phone number is automatically overwritten in the address book with the original phone number in the record of the corresponding contact.
关键字符串可包括与电话号码有关的词汇字符串。Key character strings may include lexical character strings related to phone numbers.
根据本发明的另一方面,提供了一种电话号码自动保存的设备,所述设备包括:接收单元,接收短消息;匹配单元,对短消息的内容进行字符串匹配;自动保存单元,当字符串匹配成功时,确定短消息的内容与电话号码有关,并对从短消息提取的相关电话号码进行自动保存。According to another aspect of the present invention, there is provided a device for automatically saving a telephone number, said device comprising: a receiving unit, receiving a short message; a matching unit, performing character string matching on the content of the short message; an automatic saving unit, when the character When the string matching is successful, it is determined that the content of the short message is related to the phone number, and the related phone number extracted from the short message is automatically saved.
当发送短消息的电话号码未保存在通讯录中时,匹配单元可将通讯录中保存的联系人姓名字符串与短消息中的文本字符串进行匹配;当姓名字符串与文本字符串匹配成功时,匹配单元可将短消息中除了匹配成功的姓名字符串之外的其它文本字符串与关键字符串进行匹配;当所述其它文本字符串与关键字符串匹配成功时,匹配单元可确定字符串匹配成功,并将发送短消息的电话号码确定为相关电话号码。When the phone number sending the short message is not stored in the address book, the matching unit can match the contact name string saved in the address book with the text string in the short message; when the name string and the text string match successfully , the matching unit can match other text strings except the successfully matched name string with the key string in the short message; when the other text strings match the key string successfully, the matching unit can determine the character string The string matching is successful, and the phone number sending the short message is determined as the related phone number.
当发送短消息的电话号码已经保存在通讯录中时,匹配单元可确定短消息中是否包含符合预定条件的连续数字;当确定包括符合预定条件的连续数字时,匹配单元可将短消息中除了符合预定条件的连续数字之外的其它文本字符串与关键字符串进行匹配;当所述其它文本字符串与关键字符串匹配成功时,匹配单元可确定字符串匹配成功,并将所述符合预定条件的连续数字确定为相关电话号码。When the phone number sending the short message has been stored in the address book, the matching unit can determine whether the short message contains continuous numbers that meet the predetermined conditions; Other text strings other than consecutive numbers that meet the predetermined conditions are matched with the key string; when the other text strings are successfully matched with the key string, the matching unit can determine that the string matching is successful, and the matching predetermined Consecutive digits of the condition determine the associated phone number.
自动保存单元在对所述相关电话号码进行自动保存时,可发出是否保存所述相关电话号码的提示;如果接收到保存所述相关电话号码的指示,则自动保存单元可对所述相关电话号码进行自动保存;如果接收到不保存所述相关电话号码的指示,则自动保存单元可不保存所述相关电话号码。When the automatic saving unit automatically saves the related phone number, it can issue a prompt whether to save the related phone number; if an instruction to save the related phone number is received, the automatic saving unit can save the related phone number performing automatic saving; if an instruction not to save the related phone number is received, the automatic saving unit may not save the related phone number.
自动保存单元在对所述相关电话号码进行自动保存时,可发出是否保存所述相关电话号码的提示;如果接收到不保存所述相关电话号码的指示,则自动保存单元可不保存所述相关电话号码;如果接收到保存所述相关电话号码的指示,则自动保存单元可发出是添加所述相关电话号码还是覆盖原有电话号码的提示;如果接收到添加所述相关电话号码的指示,则自动保存单元可在通讯录中将所述相关电话号码自动添加到相应联系人的记录中;如果接收到覆盖原有电话号码的指示,则自动保存单元可在通讯录中将所述相关电话号码自动覆盖相应联系人的记录中的原有电话号码。When the automatic saving unit automatically saves the related phone number, it can issue a prompt whether to save the related phone number; if an instruction not to save the related phone number is received, the automatic saving unit may not save the related phone number. number; if an instruction to save the related phone number is received, the automatic storage unit may issue a prompt whether to add the related phone number or cover the original phone number; if an instruction to add the related phone number is received, the The saving unit can automatically add the relevant phone number to the record of the corresponding contact in the address book; if an instruction to cover the original phone number is received, the automatic saving unit can automatically add the related phone number in the address book Overwrites the existing phone number on record for the corresponding contact.
关键字符串可包括与电话号码有关的词汇字符串。Key character strings may include lexical character strings related to phone numbers.
根据本发明的示例性实施例的电话号码自动保存方法和设备能够根据接收到的短消息的内容对相关电话号码进行自动保存,免去了用户手动保存的操作过程,给用户带来了便捷的体验。此外,根据本发明的示例性实施例的电话号码自动保存方法和设备还能够根据用户的选择,进行不同的操作(例如,自动保存相关电话号码、添加相关电话号码和覆盖原有电话号码等),从而给用户带来了即便捷又人性化的体验。The method and device for automatically saving phone numbers according to the exemplary embodiments of the present invention can automatically save the relevant phone numbers according to the content of the received short message, eliminating the need for the user to manually save the operation process, and bringing convenience to the user experience. In addition, the method and device for automatically saving phone numbers according to exemplary embodiments of the present invention can also perform different operations according to the user's selection (for example, automatically save related phone numbers, add related phone numbers, and overwrite original phone numbers, etc.) , thus bringing users a convenient and humanized experience.
附图说明 Description of drawings
通过结合附图,从实施例的下面描述中,本发明这些和/或其它方面及优点将会变得清楚,并且更易于理解,其中:These and/or other aspects and advantages of the present invention will become clear and easier to understand from the following description of the embodiments in conjunction with the accompanying drawings, wherein:
图1是示出根据本发明的示例性实施例的电话号码自动保存设备100的框图;FIG. 1 is a block diagram showing a telephone number automatic storage device 100 according to an exemplary embodiment of the present invention;
图2是示出根据本发明的示例性实施例的电话号码自动保存方法的流程图;Fig. 2 is a flowchart showing a method for automatically saving a phone number according to an exemplary embodiment of the present invention;
图3是示出根据本发明的示例性实施例的在发送短消息的电话号码未保存在通讯录中的情况下字符串匹配的方法的流程图;FIG. 3 is a flowchart showing a method for character string matching under the condition that the phone number sending the short message is not stored in the address book according to an exemplary embodiment of the present invention;
图4是示出根据本发明的另一示例性实施例的在发送短消息的电话号码已经保存在通讯录中的情况下字符串匹配的方法的流程图;FIG. 4 is a flowchart showing a method for character string matching under the condition that the phone number sending the short message has been saved in the address book according to another exemplary embodiment of the present invention;
图5是根据本发明的示例性实施例的相关电话号码自动保存步骤的流程图;Fig. 5 is a flow chart of the steps of automatically saving relevant phone numbers according to an exemplary embodiment of the present invention;
图6是根据本发明的另一示例性实施例的相关电话号码自动保存步骤的流程图。Fig. 6 is a flow chart of the steps of automatically saving related phone numbers according to another exemplary embodiment of the present invention.
具体实施方式 Detailed ways
提供参照附图的以下描述以帮助对由权利要求及其等同物限定的本发明的示例性实施例的全面的理解。包括各种特定细节以帮助理解,但这些细节仅被视为是示例性的。因此,本领域的普通技术人员将认识到在不脱离本发明的范围和精神的情况下,可对描述于此的实施例进行各种改变和修改。此外,为了清楚和简洁,省略对公知的功能和结构的描述。The following description with reference to the accompanying drawings is provided to assist in a comprehensive understanding of exemplary embodiments of the present invention as defined by the claims and their equivalents. Various specific details are included to aid in understanding but are to be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted for clarity and conciseness.
图1是示出根据本发明的示例性实施例的电话号码自动保存设备100的框图。FIG. 1 is a block diagram illustrating a phone number automatic saving device 100 according to an exemplary embodiment of the present invention.
参照图1,根据本发明的示例性实施例的电话号码自动保存设备100可包括接收单元101、匹配单元102以及自动保存单元103。Referring to FIG. 1 , a phone number automatic saving device 100 according to an exemplary embodiment of the present invention may include a receiving unit 101 , a matching unit 102 and an automatic saving unit 103 .
接收单元101可由移动终端中的射频(RF)单元来实现,用于接收短消息。The receiving unit 101 can be realized by a radio frequency (RF) unit in the mobile terminal, and is used for receiving short messages.
当接收单元101接收到短消息时,匹配单元102可对短消息的内容进行字符串匹配。When the receiving unit 101 receives the short message, the matching unit 102 can perform character string matching on the content of the short message.
根据本发明的示例性实施例,当发送由接收单元101接收的短消息的电话号码未保存在通讯录中(即,发送该短消息的电话号码是陌生电话号码)时,匹配单元102将通讯录中保存的联系人姓名字符串与短消息中的文本字符串进行匹配。具体地说,匹配单元102将通讯录中保存的所有联系人的姓名字符串依次与短消息中的文本字符串进行匹配,当某一联系人的姓名字符串与短消息中的文本字符串相同时,则确定匹配成功,即短消息中存在该联系人的姓名。According to an exemplary embodiment of the present invention, when the phone number sending the short message received by the receiving unit 101 is not saved in the address book (that is, the phone number sending the short message is an unfamiliar phone number), the matching unit 102 will communicate The contact name string saved in the directory is matched with the text string in the short message. Specifically, the matching unit 102 sequentially matches the name strings of all contacts stored in the address book with the text strings in the short message. At the same time, it is determined that the matching is successful, that is, the name of the contact exists in the short message.
例如,接收单元101接收的短消息内容为“你好,我是张三,这是我的新号,请惠存”。匹配单元102将通讯录中保存的所有联系人的姓名字符串依次与短消息中的文本字符串进行匹配。当匹配单元102发现通讯录中保存的联系人张三的姓名字符串“张三”与短消息中的文本字符串“张三”相同时,匹配单元102确定匹配成功。For example, the content of the short message received by the receiving unit 101 is "Hello, I am Zhang San, this is my new number, please save it". The matching unit 102 sequentially matches the name strings of all contacts stored in the address book with the text strings in the short message. When the matching unit 102 finds that the name string "Zhang San" of the contact Zhang San saved in the address book is the same as the text string "Zhang San" in the short message, the matching unit 102 determines that the matching is successful.
当通讯录中的某一联系人的姓名字符串与文本字符串匹配成功时,匹配单元102将短消息中除了匹配成功的姓名字符串之外的其它文本字符串与关键字符串进行匹配。具体地说,匹配单元102可包括多个关键字符串。所述多个关键字符串可包括与电话号码有关的词汇字符串,诸如新号、保存、惠存、更新等,这些关键字符串可被存储在匹配单元102包括的字符串数据库(未示出)中,但本发明不限于此。当所述其它文本字符串中包含所述多个关键字符串中的至少一个时,则匹配单元102确定所述其它文本字符串与关键字符串匹配成功。此时,匹配单元102确定字符串匹配成功,并将发送短消息的电话号码确定为相关电话号码。When the name string of a contact in the address book matches the text string successfully, the matching unit 102 matches other text strings in the short message except the successfully matched name string with the key string. Specifically, the matching unit 102 may include multiple key character strings. The plurality of key character strings may include vocabulary character strings related to phone numbers, such as new number, save, benefit deposit, update, etc., and these key character strings may be stored in a character string database (not shown) included in the matching unit 102. ), but the present invention is not limited thereto. When the other text strings contain at least one of the plurality of key character strings, the matching unit 102 determines that the other text strings are successfully matched with the key character strings. At this time, the matching unit 102 determines that the character strings are matched successfully, and determines the phone number sending the short message as the related phone number.
例如,当通讯录中的联系人张三的姓名字符串“张三”与文本字符串“张三”匹配成功时,匹配单元102将其它字符串“你好,我是,这是我的新号,请惠存”与存储的多个关键字符串(诸如,新号、保存、惠存、更新、换号等)进行匹配。匹配单元102发现所述其它字符串中包含关键字符串“新号”和“惠存”,因此确定所述其它文本字符串与关键字符串匹配成功。此时,匹配单元102确定字符串匹配成功,并将发送该短消息的电话号码确定为相关电话号码。For example, when the name string "Zhang San" of the contact person Zhang San in the address book is successfully matched with the text string "Zhang San", the matching unit 102 matches other character strings "Hello, I am, this is my new Number, please save" is matched with multiple stored key character strings (such as new number, save, benefit save, update, change number, etc.). The matching unit 102 finds that the other character strings contain the key character strings "Xinhao" and "Huicun", so it determines that the other text character strings are successfully matched with the key character strings. At this time, the matching unit 102 determines that the character strings are matched successfully, and determines the phone number sending the short message as the related phone number.
根据另一示例性实施例,当发送由接收单元101接收的短消息的电话号码已保存在通讯录中(即,发送该短消息的电话号码是熟悉电话号码)时,匹配单元102确定短消息中是否包含符合预定条件的连续数字。具体地说,匹配单元102可包括多种预定条件,并将多种预定条件存储在匹配单元102包括的电话号码确定表(未示出)中,但本发明不限于此。所述多种预定条件可以是默认的条件也可由用户设置。当短消息中的连续数字满足所述多种预定条件之一时,匹配单元102可确定短消息中包括符合预定条件的连续数字。所述多种预定条件可包括:连续数字为11位数字、连续数字为国际代码(诸如“+86”)+11位数字、连续数字为8位数字或7位数字、连续数字为区号(诸如“010”)+8位数字、连续数字为区号(诸如“0599”)+7位数字等。According to another exemplary embodiment, when the phone number sending the short message received by the receiving unit 101 has been saved in the address book (that is, the phone number sending the short message is a familiar phone number), the matching unit 102 determines that the short message Whether contains consecutive numbers that meet the predetermined conditions. Specifically, the matching unit 102 may include various predetermined conditions and store the various predetermined conditions in a telephone number determination table (not shown) included in the matching unit 102, but the present invention is not limited thereto. The various predetermined conditions may be default conditions or may be set by the user. When the consecutive digits in the short message satisfy one of the various predetermined conditions, the matching unit 102 may determine that the short message includes consecutive digits meeting the predetermined condition. The various predetermined conditions may include: consecutive numbers are 11 digits, consecutive numbers are international codes (such as "+86") + 11 digits, consecutive numbers are 8-digits or 7-digits, consecutive numbers are area codes (such as "010") + 8 digits, continuous numbers are area codes (such as "0599") + 7 digits, etc.
例如,接收单元101接收的短消息是好友张三发送的短消息,内容为“本人将使用新号:13922332233,请保存”。该短消息中的“13922332233”满足连续数字为11位数字的预定条件,因此,匹配单元102可将“13922332233”确定为符合预定条件的连续数字。For example, the short message received by the receiving unit 101 is a short message sent by friend Zhang San, and the content is "I will use a new number: 13922332233, please save it". "13922332233" in the short message satisfies the predetermined condition that the continuous number is 11 digits, therefore, the matching unit 102 can determine "13922332233" as a continuous number that meets the predetermined condition.
当确定短消息中包括符合预定条件的连续数字时,匹配单元102将短消息中除了符合预定条件的连续数字之外的其它文本字符串与关键字符串进行匹配。具体地说,匹配单元102可包括多个关键字符串。所述多个关键字符串可包括与电话号码有关的词汇字符串,诸如新号、保存、惠存、更新等,这些关键字符串可被存储在匹配单元102包括的字符串数据库(未示出)中,但本发明不限于此。当所述其它文本字符串中包含所述多个关键字符串中的至少一个时,则匹配单元102确定所述其它文本字符串与关键字符串匹配成功。此时,匹配单元102确定字符串匹配成功,并将所述符合预定条件的连续数字确定为相关电话号码。When it is determined that the short message includes consecutive numbers meeting the predetermined condition, the matching unit 102 matches other text strings in the short message except the continuous number meeting the predetermined condition with the key character string. Specifically, the matching unit 102 may include multiple key character strings. The plurality of key character strings may include vocabulary character strings related to phone numbers, such as new number, save, benefit deposit, update, etc., and these key character strings may be stored in a character string database (not shown) included in the matching unit 102. ), but the present invention is not limited thereto. When the other text strings contain at least one of the plurality of key character strings, the matching unit 102 determines that the other text strings are successfully matched with the key character strings. At this point, the matching unit 102 determines that the character strings are matched successfully, and determines the continuous numbers meeting the predetermined condition as the relevant phone number.
例如,当确定张三发送的短消息中包括符合预定条件的“13922332233”时,匹配单元102将其它字符串“本人将使用新号,请保存”与存储的多个关键字符串(诸如,新号、保存、惠存、更新、换号等)进行匹配。匹配单元102发现所述其它字符串中包含关键字符串“新号”和“保存”,因此确定所述其它文本字符串与关键字符串匹配成功。此时,匹配单元102确定字符串匹配成功,并将“13922332233”确定为相关电话号码。For example, when it is determined that the short message sent by Zhang San includes "13922332233" that meets the predetermined condition, the matching unit 102 compares other character strings "I will use a new number, please save" with a plurality of stored key character strings (such as new number, save, save, update, change number, etc.) for matching. The matching unit 102 finds that the other character strings contain the key character strings "new number" and "save", so it determines that the other text character strings are successfully matched with the key character string. At this time, the matching unit 102 determines that the character strings are matched successfully, and determines "13922332233" as the relevant phone number.
自动保存单元103可在字符串匹配成功时,确定短消息的内容与电话号码有关,并对从短消息提取的相关电话号码进行自动保存。具体地,自动保存单元103可将从短消息提取的相关电话号码自动保存到通讯录中的相应联系人的记录中。但应该理解,本发明的自动保存的方法不限于此。所述相关电话号码可以是未保存在通讯录中的发送短消息的电话号码或短消息中的符合预定条件的连续数字。The automatic saving unit 103 may determine that the content of the short message is related to a phone number when the character strings are successfully matched, and automatically save the related phone number extracted from the short message. Specifically, the automatic saving unit 103 can automatically save the relevant phone number extracted from the short message into the record of the corresponding contact in the address book. But it should be understood that the automatic saving method of the present invention is not limited thereto. The relevant phone number may be a phone number for sending the short message that is not stored in the address book or a continuous number in the short message that meets a predetermined condition.
根据本发明的示例性实施例,自动保存单元103可在对所述相关电话号码进行自动保存时,向用户发出是否保存所述相关电话号码的提示。如果接收到用户选择的保存所述相关电话号码的指示,则自动保存单元103对所述相关电话号码进行自动保存。如果接收到用户选择的不保存所述相关电话号码的指示,则自动保存单元103不保存所述相关电话号码。According to an exemplary embodiment of the present invention, the automatic saving unit 103 may issue a prompt to the user whether to save the related phone number when automatically saving the related phone number. If an instruction to save the related phone number selected by the user is received, the automatic saving unit 103 automatically saves the related phone number. If an instruction not to save the related phone number selected by the user is received, the automatic saving unit 103 does not save the related phone number.
根据本发明的另一示例性实施例,自动保存单元103可在对所述相关电话号码进行自动保存时,向用户发出是否保存所述相关电话号码的提示。如果接收到不保存所述相关电话号码的指示,则自动保存单元103不保存所述相关电话号码。如果接收到保存所述相关电话号码的指示,则自动保存单元103发出是添加所述相关电话号码还是覆盖原有电话号码的提示。如果接收到添加所述相关电话号码的指示,则自动保存单元103在通讯录中将所述相关电话号码自动添加到相应联系人的记录中。如果接收到覆盖原有电话号码的指示,则自动保存单元103在通讯录中将所述相关电话号码自动覆盖相应联系人的记录中的原有电话号码。According to another exemplary embodiment of the present invention, the automatic saving unit 103 may issue a prompt to the user whether to save the related phone number when automatically saving the related phone number. If an instruction not to save the related phone number is received, the automatic saving unit 103 does not save the related phone number. If an instruction to save the related phone number is received, the automatic saving unit 103 issues a prompt whether to add the related phone number or overwrite the original phone number. If an instruction to add the related phone number is received, the automatic saving unit 103 automatically adds the related phone number to the record of the corresponding contact in the address book. If an instruction to overwrite the original phone number is received, the automatic saving unit 103 automatically overwrites the relevant phone number in the address book with the original phone number in the record of the corresponding contact.
图2是示出根据本发明的示例性实施例的电话号码自动保存方法的流程图。FIG. 2 is a flowchart illustrating a method for automatically saving a phone number according to an exemplary embodiment of the present invention.
参照图2,在步骤201,通过接收单元101接收短消息。接收单元101可由移动终端中的射频(RF)单元来实现。Referring to FIG. 2 , in
在步骤202,通过匹配单元102可对短消息的内容进行字符串匹配。以下将参照图3和图4来描述根据本发明的示例性实施例的通过匹配单元102对短消息的内容进行字符串匹配的步骤。In
图3是示出根据本发明的示例性实施例的在发送短消息的电话号码未保存在通讯录中的情况下字符串匹配的方法的流程图,图4是示出根据本发明的另一示例性实施例的在发送短消息的电话号码已经保存在通讯录中的情况下字符串匹配的方法的流程图。Fig. 3 is the flow chart showing the method for character string matching under the situation that the telephone number that sends short message is not preserved in address book according to the exemplary embodiment of the present invention, and Fig. 4 is a flow chart showing another method according to the present invention The flow chart of the method for character string matching in the case that the phone number sending the short message has been saved in the address book of the exemplary embodiment.
参照图3,当发送由接收单元101接收的短消息的电话号码未保存在通讯录中(即,发送该短消息的电话号码是陌生电话号码)时,在步骤301,通过匹配单元102将通讯录中保存的联系人姓名字符串与短消息中的文本字符串进行匹配。具体地说,通过匹配单元102将通讯录中保存的所有联系人的姓名字符串依次与短消息中的文本字符串进行匹配,当某一联系人的姓名字符串与短消息中的文本字符串相同时,则确定匹配成功,即短消息中存在该联系人的姓名。Referring to Fig. 3, when sending the phone number of the short message received by the receiving unit 101 is not stored in the address book (that is, the phone number sending the short message is an unfamiliar phone number), in
当通过匹配单元102确定姓名字符串匹配成功时,进行步骤302,当通过匹配单元102确定姓名字符串匹配不成功(即,短消息中不存在与通讯录中保存的联系人的姓名字符串相同的文本字符串)时,结束操作。When it is determined that the name string matching is successful by the matching unit 102,
在步骤302,通过匹配单元102将短消息中除了匹配成功的姓名字符串之外的其它文本字符串与关键字符串进行匹配。具体地说,匹配单元102可包括多个关键字符串。所述多个关键字符串可包括与电话号码有关的词汇字符串,诸如新号、保存、惠存、更新、换号等,这些关键字符串可被存储在匹配单元102包括的字符串数据库(未示出)中,但本发明不限于此。In
当所述其它文本字符串中包含所述多个关键字符串中的至少一个时,通过匹配单元102确定所述其它文本字符串与关键字符串匹配成功,进行步骤303。当所述其它文本字符串中没有包含所述多个关键字符串中的任何一个时,通过匹配单元102确定所述其它文本字符串与关键字符串匹配不成功,结束操作。When the other text strings contain at least one of the plurality of key character strings, the matching unit 102 determines that the other text strings are successfully matched with the key character strings, and step 303 is performed. When the other text strings do not contain any one of the plurality of key character strings, the matching unit 102 determines that the other text strings are not successfully matched with the key character strings, and the operation ends.
在步骤303,通过匹配单元102确定字符串匹配成功,并将发送短消息的电话号码确定为相关电话号码。In
参照图4,当发送由接收单元101接收的短消息的电话号码已保存在通讯录中(即,发送该短消息的电话号码是熟悉电话号码)时,在步骤401,通过匹配单元102确定短消息中是否包含符合预定条件的连续数字。具体地说,匹配单元102可包括多种预定条件,并将多种预定条件存储在匹配单元102包括的电话号码确定表(未示出)中,但本发明不限于此。所述多种预定条件可以是默认的条件也可由用户设置。当短消息中的连续数字满足所述多种预定条件之一时,通过匹配单元102可确定短消息中包括符合预定条件的连续数字。所述多种预定条件可包括:连续数字为11位数字、连续数字为国际代码(诸如“+86”)+11位数字、连续数字为8位数字或7位数字、连续数字为区号(诸如“010”)+8位数字、连续数字为区号(诸如“0599”)+7位数字等。Referring to Fig. 4, when sending the phone number of the short message received by the receiving unit 101 has been stored in the address book (that is, the phone number sending the short message is a familiar phone number), in step 401, determine the short message by the matching unit 102 Whether the message contains consecutive numbers that meet a predetermined condition. Specifically, the matching unit 102 may include various predetermined conditions and store the various predetermined conditions in a telephone number determination table (not shown) included in the matching unit 102, but the present invention is not limited thereto. The various predetermined conditions may be default conditions or may be set by the user. When the consecutive numbers in the short message meet one of the various predetermined conditions, the matching unit 102 can determine that the short message includes consecutive numbers meeting the predetermined condition. The various predetermined conditions may include: consecutive numbers are 11 digits, consecutive numbers are international codes (such as "+86") + 11 digits, consecutive numbers are 8-digits or 7-digits, consecutive numbers are area codes (such as "010") + 8 digits, continuous numbers are area codes (such as "0599") + 7 digits, etc.
当通过匹配单元102确定短消息中包括符合预定条件的连续数字时,进行步骤402,当通过匹配单元102确定短消息中未包括符合预定条件的连续数字时,结束操作。When it is determined by the matching unit 102 that the short message contains consecutive numbers meeting the predetermined condition, go to step 402 ; when it is determined by the matching unit 102 that the short message does not include any continuous number meeting the predetermined condition, the operation ends.
在步骤402,通过匹配单元102将短消息中除了符合预定条件的连续数字之外的其它文本字符串与关键字符串进行匹配。具体地说,匹配单元102可包括多个关键字符串。所述多个关键字符串可包括与电话号码有关的词汇字符串,诸如新号、保存、惠存、更新、换号等,这些关键字符串可被存储在匹配单元102包括的字符串数据库(未示出)中,但本发明不限于此。In step 402, the matching unit 102 matches other text strings in the short message except the continuous numbers meeting the predetermined condition with the key string. Specifically, the matching unit 102 may include multiple key character strings. The plurality of key character strings may include vocabulary character strings related to phone numbers, such as new number, save, benefit deposit, update, number change, etc., and these key character strings may be stored in the character string database ( not shown), but the present invention is not limited thereto.
当所述其它文本字符串中包含所述多个关键字符串中的至少一个时,通过匹配单元102确定所述其它文本字符串与关键字符串匹配成功,进行步骤403,当所述其它文本字符串中没有包含所述多个关键字符串中的任何一个时,结束操作。When at least one of the plurality of key character strings is included in the other text character strings, it is determined by the matching unit 102 that the other text character strings are successfully matched with the key character strings, and step 403 is performed. When the other text character strings When any one of the plurality of key character strings is not included in the string, the operation ends.
在步骤403,通过匹配单元102确定字符串匹配成功,并将所述符合预定条件的连续数字确定为相关电话号码。In step 403, it is determined by the matching unit 102 that the character strings are matched successfully, and the continuous numbers meeting the predetermined conditions are determined as the relevant phone numbers.
返回参照图2,当通过匹配单元102确定字符串匹配成功时,进行步骤203,当通过匹配单元102确定字符串匹配不成功时,结束操作。Referring back to FIG. 2 , when it is determined by the matching unit 102 that the string matching is successful, proceed to step 203 , and when it is determined by the matching unit 102 that the string matching is not successful, the operation ends.
在步骤203,通过自动保存单元103确定短消息的内容与电话号码有关,并对从短消息提取的相关电话号码进行自动保存。具体地,通过自动保存单元103可将从短消息提取的相关电话号码自动保存到通讯录中的相应联系人的记录中。但应该理解,本发明的自动保存的方法不限于此。所述相关电话号码可以是未保存在通讯录中的发送短消息的电话号码或短消息中的符合预定条件的连续数字。以下参照图5和图6来描述根据本发明的示例性实施例的自动保存单元103对所述相关电话号码进行自动保存的步骤。In
图5是根据本发明的示例性实施例的相关电话号码自动保存步骤的流程图,图6是根据本发明的另一示例性实施例的相关电话号码自动保存步骤的流程图。Fig. 5 is a flow chart of the steps of automatically saving related phone numbers according to an exemplary embodiment of the present invention, and Fig. 6 is a flow chart of the steps of automatically saving related phone numbers according to another exemplary embodiment of the present invention.
参照图5,在步骤501,通过自动保存单元103向用户发出是否保存所述相关电话号码的提示。如果接收到用户选择的保存所述相关电话号码的指示,则在步骤502,通过自动保存单元103对所述相关电话号码进行自动保存。如果接收到用户选择的不保存所述相关电话号码的指示,则在步骤503,通过自动保存单元103不保存所述相关电话号码。Referring to FIG. 5 , in
参照图6,在步骤601,通过自动保存单元103可向用户发出是否保存所述相关电话号码的提示。如果接收到不保存所述相关电话号码的指示,则在步骤602,通过自动保存单元103不保存所述相关电话号码。如果接收到保存所述相关电话号码的指示,则在步骤603,通过自动保存单元103发出是添加所述相关电话号码还是覆盖原有电话号码的提示。如果接收到添加所述相关电话号码的指示,则在步骤604,通过自动保存单元103在通讯录中将所述相关电话号码自动添加到相应联系人的记录中。如果接收到覆盖原有电话号码的指示,则在步骤605,通过自动保存单元103在通讯录中将所述相关电话号码自动覆盖相应联系人的记录中的原有电话号码。Referring to FIG. 6 , in
本领域的技术人员将理解,可根据计算机程序指令来执行根据本发明的示例性实施例的上述电话号码自动保存方法。Those skilled in the art will understand that the above-mentioned method for automatically saving a phone number according to an exemplary embodiment of the present invention can be implemented according to computer program instructions.
根据本发明的示例性实施例的电话号码自动保存方法和设备能够根据接收到的短消息的内容,确定该短消息是否与保存相关电话号码有关,当确定该短消息与保存相关电话号码时,对相关电话号码进行自动保存,免去了用户手动保存的操作过程,给用户带来了便捷的体验。此外,根据本发明的示例性实施例的电话号码自动保存方法和设备还能够根据用户的选择,进行不同的操作(例如,自动保存相关电话号码、添加相关电话号码和覆盖原有电话号码等),从而给用户带来了即便捷又人性化的体验。此外,本领域的技术人员应该理解,本发明的电话号码自动保存步骤不限于此,例如,还可根据用户的选择,将相关电话号码设置为在相关联系人的所有电话号码中相关联系人的默认电话号码,从而增加用户的便利性等。The method and device for automatically saving a phone number according to an exemplary embodiment of the present invention can determine whether the short message is related to saving a related phone number according to the content of the received short message, and when it is determined that the short message is related to saving a related phone number, The relevant phone numbers are automatically saved, eliminating the need for the user to manually save the operation process, and bringing a convenient experience to the user. In addition, the method and device for automatically saving phone numbers according to exemplary embodiments of the present invention can also perform different operations according to the user's selection (for example, automatically save related phone numbers, add related phone numbers, and overwrite original phone numbers, etc.) , thus bringing users a convenient and humanized experience. In addition, those skilled in the art should understand that the automatic phone number saving step of the present invention is not limited thereto, for example, according to the user's selection, the relevant phone number can also be set as the number of the relevant contact among all the phone numbers of the relevant contact. Default phone number, thereby increasing user convenience, etc.
虽然本发明是参照其示例性的实施例被显示和描述的,但是本领域的技术人员应该理解,在不脱离由权利要求及其等同物限定的本发明的精神和范围的情况下,可以对其形式和细节进行各种改变。While the invention has been shown and described with reference to exemplary embodiments thereof, it should be understood by those skilled in the art that changes may be made without departing from the spirit and scope of the invention as defined by the claims and their equivalents. Various changes are made in its form and details.
Claims (12)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201210335086.4A CN103685670A (en) | 2012-09-11 | 2012-09-11 | Method and equipment for automatically saving telephone numbers |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201210335086.4A CN103685670A (en) | 2012-09-11 | 2012-09-11 | Method and equipment for automatically saving telephone numbers |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN103685670A true CN103685670A (en) | 2014-03-26 |
Family
ID=50321928
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201210335086.4A Pending CN103685670A (en) | 2012-09-11 | 2012-09-11 | Method and equipment for automatically saving telephone numbers |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN103685670A (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104023124A (en) * | 2014-05-14 | 2014-09-03 | 上海卓悠网络科技有限公司 | Method and device for automatically identifying and extracting a name in short message |
| CN104683589A (en) * | 2015-03-10 | 2015-06-03 | 苏州天鸣信息科技有限公司 | A method, device and mobile terminal for changing contact information in an address book |
| CN110855822A (en) * | 2018-08-03 | 2020-02-28 | Oppo(重庆)智能科技有限公司 | Strange number remarking method, strange number remarking device and mobile terminal |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP0804009A2 (en) * | 1996-04-26 | 1997-10-29 | Mitsubishi Denki Kabushiki Kaisha | Mobile communication terminal equipment and portable electronic apparatus |
| CN1925516A (en) * | 2005-08-31 | 2007-03-07 | 乐金电子(中国)研究开发中心有限公司 | Address book information managing and short message transmitting method for mobile communication terminal |
| CN1933634A (en) * | 2006-08-24 | 2007-03-21 | 华为技术有限公司 | Mobile terminal and person to contact information updating method and system |
| CN101064747A (en) * | 2006-04-27 | 2007-10-31 | 环达电脑(上海)有限公司 | Method and system for updating address book of mobile communication terminal |
| CN101873557A (en) * | 2010-06-25 | 2010-10-27 | 华为终端有限公司 | Method and user terminal for prompting end user to store contact |
-
2012
- 2012-09-11 CN CN201210335086.4A patent/CN103685670A/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP0804009A2 (en) * | 1996-04-26 | 1997-10-29 | Mitsubishi Denki Kabushiki Kaisha | Mobile communication terminal equipment and portable electronic apparatus |
| CN1925516A (en) * | 2005-08-31 | 2007-03-07 | 乐金电子(中国)研究开发中心有限公司 | Address book information managing and short message transmitting method for mobile communication terminal |
| CN101064747A (en) * | 2006-04-27 | 2007-10-31 | 环达电脑(上海)有限公司 | Method and system for updating address book of mobile communication terminal |
| CN1933634A (en) * | 2006-08-24 | 2007-03-21 | 华为技术有限公司 | Mobile terminal and person to contact information updating method and system |
| CN101873557A (en) * | 2010-06-25 | 2010-10-27 | 华为终端有限公司 | Method and user terminal for prompting end user to store contact |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104023124A (en) * | 2014-05-14 | 2014-09-03 | 上海卓悠网络科技有限公司 | Method and device for automatically identifying and extracting a name in short message |
| CN104683589A (en) * | 2015-03-10 | 2015-06-03 | 苏州天鸣信息科技有限公司 | A method, device and mobile terminal for changing contact information in an address book |
| CN110855822A (en) * | 2018-08-03 | 2020-02-28 | Oppo(重庆)智能科技有限公司 | Strange number remarking method, strange number remarking device and mobile terminal |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10080111B2 (en) | Techniques for communication using audio stickers | |
| US9288245B2 (en) | Apparatus and methods of accessing content | |
| CN102970402B (en) | A kind of method updating mobile terminal addressbook associated person information and device | |
| US8620366B2 (en) | Data synchronization method between mobile terminal and server | |
| WO2012152097A1 (en) | Method for updating lexicon of input method, character input method, and terminal | |
| US20160092441A1 (en) | File Acquiring Method and Device | |
| WO2014117656A1 (en) | Mobile terminal and method for extracting communication contact information | |
| CN102821182B (en) | Automatic phone directory contact matching method for handheld device | |
| CN103051768A (en) | Method and system for updating contact ways in address book | |
| CN103701994A (en) | Automatic responding method and automatic responding device | |
| CN102929960A (en) | Adaptive method and system for theme music | |
| CN103685670A (en) | Method and equipment for automatically saving telephone numbers | |
| US20120117197A1 (en) | Content auto-discovery | |
| CN105978794A (en) | Method and device for replacing note name in instant messaging platform address book | |
| WO2019153533A1 (en) | Dynamic routing control method and apparatus, computer device and storage medium | |
| CN101541003A (en) | System and method for managing mobile phone based on third generation (3G) mobile communication service | |
| CN104270496B (en) | The method and device of display of calling side's information | |
| CN112954103B (en) | A calling method, device, storage medium and fixed telephone | |
| CN106888241A (en) | Data processing method and device based on cloud number | |
| WO2014180362A1 (en) | Terminal and method thereof for managing multimedia notepad | |
| CN105812535A (en) | Method of recording speech communication information and terminal | |
| CN102227900A (en) | Method and system for synchronizing information | |
| CN102184168A (en) | Device and method for implementing electronic bookmarks | |
| WO2017020665A1 (en) | Wallpaper switching method and apparatus | |
| WO2016058385A1 (en) | Information storage method and device, and terminal |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20140326 |