技术领域technical field
本发明涉及移动通信技术领域,更具体地说,涉及一种在移动终端中生成常用联系人列表的系统及方法。The present invention relates to the technical field of mobile communication, and more specifically, to a system and method for generating a frequently used contact list in a mobile terminal.
背景技术Background technique
手机等移动终端作为目前普及的通讯工具,已经成为人们工作生活中不可或缺的一部分。为了方便手机用户,很多手机具有快速拨号功能,用户可以将经常联系的联系人设置常用联系人,在快速拨号列表中建立快拨项。在需要拨打这些常用联系人的电话时,不必再输入完整的电话号码,只要通过较为简单的键盘或触摸操作按下一个或少数几个实体或虚拟按键,即可激发快拨项而实现快速拨号。然而,传统的建立快速拨号列表的方法是需要用户手动去设置的,对于对应每个常用联系人的快拨项的新增、删除等操作都需要用户手动进行,操作较为繁琐。Mobile terminals such as mobile phones, as popular communication tools at present, have become an indispensable part in people's work and life. For the convenience of mobile phone users, many mobile phones have a speed dial function. Users can set frequently contacted contacts as frequent contacts and create speed dial items in the speed dial list. When it is necessary to call these frequently used contacts, it is no longer necessary to enter the complete phone number, as long as one or a few physical or virtual keys are pressed through a relatively simple keyboard or touch operation, the quick dial item can be activated to achieve speed dialing . However, the traditional method of establishing a speed dial list requires the user to manually set it, and operations such as adding and deleting a speed dial item corresponding to each frequently used contact need to be manually performed by the user, and the operation is relatively cumbersome.
发明内容Contents of the invention
针对现有技术中上述建立快速拨号列表操作繁琐的缺陷,本发明提供一种移动终端常用联系人列表生成系统及方法,能够省去用户的操作,自动灵活地建立常用联系人列表,方便用户快速查找联系人。Aiming at the cumbersome operation of establishing a speed dial list in the prior art, the present invention provides a system and method for generating a list of frequently used contacts in a mobile terminal, which can save the user's operation and automatically and flexibly establish a list of frequently used contacts, which is convenient for users to quickly Find a contact.
为解决其技术问题,本发明提供一种移动终端常用联系人列表生成方法,其特征在于,包括以下步骤:For solving its technical problem, the present invention provides a kind of mobile terminal common contact list generation method, it is characterized in that, comprises the following steps:
S1、当移动终端与一联系人发生电话通讯后,记录移动终端与该联系人的通话时间,当移动终端与一联系人发生短信通讯后,则记录移动终端与该联系人之间收发短信的总字数;S1. When the mobile terminal has a telephone communication with a contact, record the call time between the mobile terminal and the contact; total word count;
S2、判断该联系人是否存在于联系人权重排名数组中,若该联系人存在联系人权重排名数组中,则根据步骤S1记录的上述电话或短信通讯信息,将该联系人的权重增加相应的值,其中,通话时间较长或收发短信字数较多,则对应该联系人增加的权重越大;S2. Judging whether the contact exists in the contact weight ranking array, if the contact exists in the contact weight ranking array, according to the above-mentioned telephone or SMS communication information recorded in step S1, the weight of the contact is increased by a corresponding value, wherein, the longer the call time or the larger the number of text messages sent and received, the greater the weight added to the contact;
S3、从联系人权重排名数组中筛选出权重最大的一定数量的联系人,将这些权重最大的联系人组成常用联系人列表。S3. Select a certain number of contacts with the highest weight from the contact weight ranking array, and form these contacts with the highest weight into a common contact list.
本发明还提供一种移动终端常用联系人列表生成系统,应用于移动终端,所述系统包括:The present invention also provides a system for generating a list of frequently used contacts in a mobile terminal, which is applied to a mobile terminal, and the system includes:
信息获取模块(10),用于记录联系人的通讯信息,当移动终端与一联系人发生电话通讯后,记录移动终端与该联系人的通话时间,当移动终端与一联系人发生短信通讯后,则记录移动终端与该联系人之间收发短信的总字数;The information acquisition module (10) is used to record the communication information of the contact, when the mobile terminal has a telephone communication with a contact, record the call time between the mobile terminal and the contact, and when the mobile terminal has a short message communication with a contact , then record the total number of words sent and received between the mobile terminal and the contact;
权重分配模块(20),用于根据联系人的通讯信息将联系人的权重增加相应的值;A weight assignment module (20), configured to increase the weight of the contact by a corresponding value according to the communication information of the contact;
列表生成模块(30),用于从联系人权重排名数组中筛选出权重最大的一定数量的联系人,将这些具有最大权重的联系人组成常用联系人列表。A list generating module (30), configured to filter out a certain number of contacts with the highest weight from the contact weight ranking array, and form these contacts with the largest weight into a common contact list.
实施本发明的一种常用联系人列表的系统及方法,具有以下有益效果:常用联系人列表的自动生成,省去了用户建立快速拨号列表的繁琐操作;有利于用户快速查找联系人,有利于用户快速拨号;常用联系人列表的生成方法合理、灵活,综合考虑了通话、通话时间、短信、短信字数、使用时间因素,根据联系人被使用频率排序,符合用户需求。The system and method for implementing a frequently-used contact list of the present invention have the following beneficial effects: the automatic generation of the frequently-used contact list saves the cumbersome operation for the user to establish a speed dial list; it is beneficial for the user to quickly find the contact person and facilitate User speed dialing; the generation method of the frequently used contact list is reasonable and flexible, comprehensively considering the factors of calls, call time, SMS, number of text messages, and usage time, and sorting contacts according to the frequency of use to meet user needs.
附图说明Description of drawings
下面将结合附图及实施例对本发明作进一步说明,附图中:The present invention will be further described below in conjunction with accompanying drawing and embodiment, in the accompanying drawing:
图1是本发明移动终端常用联系人列表生成方法较佳实施例的流程图;Fig. 1 is a flowchart of a preferred embodiment of a method for generating a list of frequently used contacts in a mobile terminal of the present invention;
图2是图1中步骤S 170的具体流程图;Fig. 2 is the concrete flowchart of step S170 among Fig. 1;
图3是本发明移动终端常用联系人列表生成系统较佳实施例的结构示意图。Fig. 3 is a schematic structural diagram of a preferred embodiment of a system for generating a list of frequently used contacts in a mobile terminal according to the present invention.
具体实施方式Detailed ways
图1是本发明移动终端常用联系人列表生成方法较佳实施例的流程图,包括以下步骤:Fig. 1 is a flow chart of a preferred embodiment of the method for generating a list of frequently used contacts in a mobile terminal of the present invention, including the following steps:
在步骤S110中,记录联系人的通讯信息。当移动终端与一联系人发生电话通讯后,记录移动终端与该联系人的通话时间,当移动终端与一联系人发生短信通讯后,则记录移动终端与该联系人之间收发短信的总字数,所述短信通讯包括发送短信、接收短信,例如给联系人张三拨打电话,通话时间为3分钟,记录此通话时间。In step S110, the communication information of the contact is recorded. When the mobile terminal has a telephone communication with a contact, record the call time between the mobile terminal and the contact; when the mobile terminal has a short message communication with a contact, record the total number of words sent and received between the mobile terminal and the contact , the short message communication includes sending short messages and receiving short messages, such as making a call to contact Zhang San, and the call time is 3 minutes, and the call time is recorded.
在步骤S120中,判断该联系人是否存在一预设于该移动终端中的联系人权重排名数组中。该联系人权重排名数组用于存储一定数量的联系人及其权重,联系人的权重发生增减后结果都存储于权重排名数组中,将联系人以及它们的权重存储于权重排名数组中,是为了从数组中筛选一定数量的联系人以建立常用联系人列表。以下将“联系人权重排名数组”简称为“数组”。In step S120, it is determined whether the contact exists in a contact weight ranking array preset in the mobile terminal. The contact weight ranking array is used to store a certain number of contacts and their weights. After the weight of contacts increases or decreases, the results are stored in the weight ranking array, and the contacts and their weights are stored in the weight ranking array. In order to filter a certain number of contacts from the array to build a list of frequently used contacts. Hereinafter, the "contact weight ranking array" is referred to as "array" for short.
当该联系人不存在数组中时,进入步骤S140,将该联系人的权重设为一预定的初始值,并插入到数组中,进入步骤S170,例如,设置初始值为10,给联系人张三拨打电话后,检查到张三不存在于数组中,则将张三的权重设为初始值10。When the contact does not exist in the array, enter step S140, set the weight of the contact to a predetermined initial value, and insert it into the array, enter step S170, for example, set the initial value to 10, and give the contact After San makes a call, it is checked that Zhang San does not exist in the array, and the weight of Zhang San is set to an initial value of 10.
当该联系人存在于数组中时,进入步骤S130,根据步骤S110记录的通讯信息,将该联系人的权重增加相应的值;进一步地,根据拨打电话及通话时间、接听电话及通话时间、发送短信及短信字数、接收短信及短信字数的不同将该联系人的权重增加不同的值。表1是联系人电话通讯信息与权重增加值的对应关系表的示例,表2是联系人短信通讯信息与权重增加值的对应关系表的示例:When the contact person exists in the array, enter step S130, and increase the weight of the contact person by a corresponding value according to the communication information recorded in step S110; Different values are added to the weight of the contact according to the difference between the short message and the word count of the short message, and the difference between the received short message and the word count of the short message. Table 1 is an example of a correspondence table between contact phone communication information and weight increments, and Table 2 is an example of a correspondence table between contact message communication information and weight increments:
表1Table 1
表2Table 2
例如,当联系人张三已经存在于数组中,再使用张三接听电话,通话时间3分钟,根据表1,则张三的权重增加2;再使用张三发送短信,短信字数50,根据表2,则张三的权重增加3。For example, when the contact Zhang San already exists in the array, use Zhang San to answer the call, and the call time is 3 minutes. According to Table 1, the weight of Zhang San is increased by 2; 2, then Zhang San's weight increases by 3.
进一步地,将该联系人的权重增加相应的值之后,进入步骤S150,进一步判断该联系人的权重是否大于一预定的极值,若权重大于该极值,则进入步骤S160,将该联系人的权重降为该极值,再进入步骤S170,若权重不大于该极值,则直接进入步骤S170。这一步骤的目的是设置所有联系人权重的最大值,从而避免某些联系人因为经常被使用通讯而导致其权重会不断增加,以致他们的权重值成为过大且无意义的数值。另外,这个步骤还可以防止某个联系人第一次使用时,其权重仅为初始值而排列在数组的末尾,可能被移出数组,这样以致没有机会进入常用联系人列表。而设置权重的极值,即最大值后,同时数组可以容纳一定数量联系人,新使用的联系人权重设为初始值,该新使用的联系人将会存储在数组中,将有机会进入常用联系人列表。例如,将极值设为30,数组能够最多能容纳30个联系人,当某个联系人第一次使用后,其权重设为初始值10,存储于数组中,将有机会进入常用联系人列表。Further, after increasing the weight of the contact by a corresponding value, enter step S150, and further judge whether the weight of the contact is greater than a predetermined extreme value, if the weight is greater than the extreme value, then enter step S160, and the contact The weight of the weight decreases to the extreme value, and then enters step S170, and if the weight is not greater than the extreme value, directly enters step S170. The purpose of this step is to set the maximum value of the weights of all contacts, so as to avoid the weights of some contacts constantly increasing because they are often used for communication, so that their weight values become too large and meaningless values. In addition, this step can also prevent that when a certain contact is used for the first time, its weight is only arranged at the end of the array with the initial value, and may be removed from the array, so that there is no chance to enter the list of frequently used contacts. After setting the extreme value of the weight, that is, the maximum value, the array can accommodate a certain number of contacts at the same time, and the weight of the newly used contact is set to the initial value. The newly used contact will be stored in the array and will have the opportunity to enter the common contact list. For example, if the extreme value is set to 30, the array can accommodate up to 30 contacts. When a contact is used for the first time, its weight is set to the initial value of 10, stored in the array, and there will be a chance to enter frequently used contacts list.
步骤S170,从数组中筛选出权重最大的一定数量的联系人,将这些权重最大的联系人组成常用联系人列表。图2是步骤S170的具体流程图,步骤S170包括以下步骤:In step S170, a certain number of contacts with the highest weight are screened out from the array, and these contacts with the highest weight are formed into a list of frequently used contacts. Fig. 2 is the concrete flowchart of step S170, and step S170 comprises the following steps:
步骤S171,数组中的所有联系人按照权重从大到小排序,对于权重相等的联系人,将联系时间最近的联系人排在前面。In step S171, all the contacts in the array are sorted in descending order of weight, and for contacts with the same weight, the contact with the latest contact time is ranked first.
步骤S172,判断数组中是否有联系人的排序位置后退,若是,进入步骤S173,将排序位置后退的联系人的权重全部减小一定数值,将权重减为0或者0以下的联系人从数组中移除,再进入步骤S174;若否,则直接进入步骤S174。Step S172, judging whether there is a contact in the array whose sorting position is backward, if so, proceed to step S173, reduce the weights of all contacts whose sorting position is backward by a certain value, and reduce the weight of contacts whose weight is 0 or below from the array If it is removed, go to step S174; if not, go to step S174 directly.
步骤S174,从数组中筛选出排序靠前的一定数量的联系人生成常用联系人列表,即常用联系人列表只能容纳一定数量的联系人。因为有时并不需要数组中的全部联系人组成常用联系人列表,用户可以根据个人使用习惯在一定的范围内设置常用联系人列表的容量。当数组中联系人的数量不足时,则可以把数组中全部联系人按照排序显示在常用联系人列表中。In step S174, a certain number of top-ranked contacts are filtered out from the array to generate a frequent contact list, that is, the frequent contact list can only accommodate a certain number of contacts. Because sometimes it is not necessary for all the contacts in the array to form the frequently used contact list, the user can set the capacity of the frequently used contact list within a certain range according to personal usage habits. When the number of contacts in the array is insufficient, all the contacts in the array may be displayed in the frequently used contact list in order.
在本实施例中,将初始值设为10,将极值设为30,将常用联系人列表的容量设为5,对排序位置后退联系人的权重减1,权重的增加值依据表1、表2。In this embodiment, the initial value is set to 10, the extreme value is set to 30, the capacity of the frequently used contact list is set to 5, and the weight of the backward contact in the sorting position is reduced by 1, and the added value of the weight is based on Table 1, Table 2.
开始,数组为空,使用联系人张一发送短信后,因为张一不存在于数组中,将张一的权重设为初始值10,张一插入到数组中,并显示在常用联系人列表中。接着使用联系人张二接收短信,因为张二不存在于数组,将张二的权重设为初始值10,插入到数组中,此时张一、张二的权重均为10,张二的联系时间更近,故张二排在前,张一排在后,又因为张一的排序位置后退,故张一的权重减1,张二、张一依次显示在常用联系人列表中,权重分别为10、9。依次类推,依次使用联系人张三、张四、张五后,数组中自上而下依次为张五、张四、张三、张二、张一,它们的权重分别为10、9、8、7、6,如表3所示,并全部显示在常用联系人列表中。At first, the array is empty. After using the contact Zhang Yi to send a text message, because Zhang Yi does not exist in the array, set the weight of Zhang Yi to the initial value of 10, insert Zhang Yi into the array, and display it in the list of frequently used contacts . Then use the contact Zhang Er to receive text messages, because Zhang Er does not exist in the array, set the weight of Zhang Er to the initial value 10, and insert it into the array. At this time, the weights of Zhang Yi and Zhang Er are both 10, and Zhang Er's contact The time is closer, so Zhang 2 is in the front, Zhang 1 is in the back, and because Zhang 1's sorting position is backward, so the weight of Zhang 1 is reduced by 1, Zhang 2 and Zhang 1 are displayed in the list of frequently used contacts in sequence, and the weights are respectively For 10, 9. And so on, after using the contacts Zhang 3, Zhang 4, and Zhang 5 in turn, the array is followed by Zhang 5, Zhang 4, Zhang 3, Zhang 2, and Zhang 1 from top to bottom, and their weights are 10, 9, and 8 respectively. , 7, and 6, as shown in Table 3, and all of them are displayed in the frequently used contacts list.
接着,当张六被使用,如接听电话,则将张六的权重设为初始值10,并插入到数组中,然后数组中的全部联系人按照权重从大到小排序,张六与张五的权重相等,均为10,因张六联系时间更近,故张六排列在张五的前面,张五、张四、张三、张二、张一的排序位置均后退,它们的权重全部减1,数组中联系人的排序结果为张六、张五、张四、张三、张二、张一,它们的权重分别为10、9、8、7、6、5,如表4所示。因为常用联系人列表最多能容纳5个联系人,取前5个联系人即张六、张五、张四、张三、张二,依次显示在常用联系人列表中。Then, when Zhang Liu is used, such as answering the phone, set the weight of Zhang Liu to the initial value of 10 and insert it into the array, and then all the contacts in the array are sorted from large to small according to the weight, Zhang Liu and Zhang Wu The weights of each are equal, both are 10, because Zhang Liu is more recent in contact time, so Zhang Liu is arranged in front of Zhang Wu, and the ranking positions of Zhang Wu, Zhang Si, Zhang San, Zhang Er, and Zhang Yi are all backward, and their weights are all Subtract 1, the sorting results of contacts in the array are Zhang 6, Zhang 5, Zhang 4, Zhang 3, Zhang 2, Zhang 1, and their weights are 10, 9, 8, 7, 6, 5, as shown in Table 4 Show. Because the list of frequently used contacts can accommodate up to 5 contacts, the first 5 contacts, namely Zhang 6, Zhang 5, Zhang 4, Zhang 3, and Zhang 2, are taken and displayed in the list of frequently used contacts in sequence.
接着,当张五被使用拨打电话8分钟,因为张五已存在于数组中,故按照表1将张五的权重增加4,变为13,然后数组中的全部联系人按照权重从大到小排序,张五排列在第一位,张六排序位置后退,张六的权重减1,数组中联系人的排序结果为张五、张六、张四、张三、张二、张一,它们的权重依次为13、9、8、7、6、5,如表5所示。取前5个联系人即张五、张六、张四、张三、张二,依次显示常用联系人列表中。Next, when Zhang Wu is used to make a call for 8 minutes, because Zhang Wu already exists in the array, according to Table 1, increase the weight of Zhang Wu by 4 to 13, and then all the contacts in the array are from large to small according to the weight For sorting, Zhang Wu is ranked first, and Zhang Six's sorting position is backward, and the weight of Zhang Six is reduced by 1. The sorting results of the contacts in the array are Zhang Wu, Zhang Six, Zhang Four, Zhang Three, Zhang Two, and Zhang One. The weights of are 13, 9, 8, 7, 6, 5 in turn, as shown in Table 5. Take the first 5 contacts, that is, Zhang Wu, Zhang Liu, Zhang Si, Zhang San, and Zhang Er, and display them in the list of frequently used contacts in turn.
接着,联系人张三被使用发送短信,短信字数35字,因为张三已存在数组中,故按照表2将张三的权重增加2,张三的权重变为9,然后数组中的全部联系人按照权重从大到小排序,张三的权重与张六的权重相等,因张三的联系时间更近,故张三排在张六的前面,张六、张四的排序位置后退,张六、张四的权重均减1,数组中联系人的排序结果为张五、张三、张六、张四、张二、张一,它们的权重依次为13、9、8、7、6、5,如表6所示。取前5个联系人即张五、张三、张六、张四、张二,依次显示在常用联系人列表中。Then, the contact Zhang San is used to send a short message, the number of text messages is 35 characters, because Zhang San already exists in the array, so according to Table 2, the weight of Zhang San is increased by 2, and the weight of Zhang San is changed to 9, and then all contacts in the array People are sorted in descending order of weight, Zhang San's weight is equal to Zhang Liu's weight, because Zhang San's contact time is closer, so Zhang San is ranked in front of Zhang Liu, Zhang Liu and Zhang Si are ranked backward, Zhang 6. The weight of Zhang Si is reduced by 1, and the sorting results of the contacts in the array are Zhang Wu, Zhang San, Zhang Liu, Zhang Si, Zhang Er, Zhang Yi, and their weights are 13, 9, 8, 7, 6 , 5, as shown in Table 6. Take the first 5 contacts, that is, Zhang Wu, Zhang San, Zhang Liu, Zhang Si, and Zhang Er, and display them in the frequently used contact list in turn.
接着,如果有其它新的联系人被使用时,它的权重设为初始值10,原来权重小于或等于10的联系人的排序位置会后退,并且权重会减1,当不断有新的联系人加入数组时,就有联系人的权重减为0,权重减为0的联系人将会从数组中移除。Then, if other new contacts are used, its weight is set to the initial value of 10, and the sorting position of the contacts whose original weight is less than or equal to 10 will be reversed, and the weight will be reduced by 1. When there are new contacts When adding to the array, the weight of some contacts will be reduced to 0, and the contacts whose weight is reduced to 0 will be removed from the array.
当数组中的某些联系人被经常使用后,它们的权重会不断增加,但是设定权重的最大值为30,所有联系人的权重不得大于30,若某联系人权重增加相应的值后,其权重会大于30,则该联系人的权重降为30,确保其它联系人也都有机会进入常用联系人列表。When some contacts in the array are frequently used, their weight will continue to increase, but the maximum value of the set weight is 30, and the weight of all contacts should not be greater than 30. If the weight of a contact increases by the corresponding value, If its weight is greater than 30, then the weight of this contact is reduced to 30, ensuring that other contacts also have the opportunity to enter the list of frequently used contacts.
图3是本发明移动终端常用联系人列表生成系统较佳实施例的结构示意图。该系统应用于手机,包括:信息获取模块10、权重分配模块20和列表生成模块30。Fig. 3 is a schematic structural diagram of a preferred embodiment of a system for generating a list of frequently used contacts in a mobile terminal according to the present invention. The system is applied to mobile phones and includes: an information acquisition module 10 , a weight distribution module 20 and a list generation module 30 .
信息获取模块10,用于记录联系人的通讯信息,当移动终端与一联系人发生电话通讯后,记录移动终端与该联系人的通话时间,当移动终端与一联系人发生短信通讯后,则记录移动终端与该联系人之间收发短信的总字数。The information acquisition module 10 is used to record the communication information of the contact. When the mobile terminal has a telephone communication with a contact, record the call time between the mobile terminal and the contact. When the mobile terminal has a short message communication with a contact, then Record the total number of text messages sent and received between the mobile terminal and the contact.
权重分配模块20,用于根据联系人的通讯信息将联系人的权重增加相应的值。进一步地,根据拨打电话及通话时间、接听电话及通话时间、发送短信及短信字数、接收短信及短信字数的不同将该联系人的权重增加不同的值。例如,给联系人张三拨打电话后,检查到张三存在于数组中,则权重分配模块20根据通话时间将张三的权重增加相应的值。但是,联系人的权重存在极值,联系人的权重增加相应的值之后,权重不得大于极值。The weight assignment module 20 is configured to increase the weight of the contact by a corresponding value according to the communication information of the contact. Further, different values are added to the weight of the contact according to the difference between making calls and talking time, answering calls and talking time, sending short messages and short message words, receiving short messages and short message words. For example, after making a call to contact Zhang San, it is checked that Zhang San exists in the array, and the weight assignment module 20 increases the weight of Zhang San by a corresponding value according to the call time. However, there is an extreme value in the weight of the contact, and after the weight of the contact is increased by a corresponding value, the weight cannot be greater than the extreme value.
权重分配模块20还用于将不存在于数组中的联系人的权重设为一预定的初始值。例如,将初始值设为10,假设数组中已存在5个联系人,依次为张五、张四、张三、张二、张一,它们的权重依次为10、9、8、7、6,当联系人张六被使用,因为张六不存在于数组中,权重分配模块20将张三的权重设为初始值10,并插入到数组中。The weight assignment module 20 is further configured to set the weight of the contacts not in the array to a predetermined initial value. For example, set the initial value to 10, assuming that there are already 5 contacts in the array, they are Zhang Wu, Zhang Si, Zhang San, Zhang Er, Zhang Yi, and their weights are 10, 9, 8, 7, 6 , when the contact Zhang Liu is used, because Zhang Liu does not exist in the array, the weight assignment module 20 sets the weight of Zhang San to an initial value of 10, and inserts it into the array.
列表生成模块30,用于从数组中筛选出权重最大的一定数量的联系人,将这些具有最大权重的联系人组成常用联系人列表。列表生成模块30由多个单元构成,包括:The list generating module 30 is configured to filter out a certain number of contacts with the highest weight from the array, and form these contacts with the highest weight into a frequently used contact list. The list generating module 30 is made up of multiple units, including:
排序单元31,用于将数组中的所有联系人按照权重从大到小排序,对于权重相等的联系人中,将联系时间最近的联系人排在前面。如上例所述,排序单元31将数组中的联系人按照权重大小排序,其中张五、张六的权重相等,均为10,因为张六的联系时间更近,故张六排列在张五的前面,数组中联系人的排序结果为张六、张五、张四、张三、张二、张一,它们的权重依次为10、10、9、8、7、6。The sorting unit 31 is configured to sort all the contacts in the array in descending order of weight, and among contacts with equal weights, the contact with the latest contact time is ranked first. As described in the above example, the sorting unit 31 sorts the contacts in the array according to the weights, wherein the weights of Zhang Wu and Zhang Liu are equal, both being 10, because Zhang Liu's contact time is closer, so Zhang Liu is arranged in Zhang Wu's Previously, the sorting results of contacts in the array are Zhang 6, Zhang 5, Zhang 4, Zhang 3, Zhang 2, and Zhang 1, and their weights are 10, 10, 9, 8, 7, and 6 in sequence.
逻辑判断单元32,用于判断数组中是否有联系人的排序位置后退。如上例所述,张六插入到数组中并排在第一位,联系人张五、张四、张三、张二、张一的排序位置均后退,故判断有联系人的排序位置后退。A logical judging unit 32, configured to judge whether the sorting position of the contacts in the array is reversed. As mentioned in the above example, Zhang Liu is inserted into the array and ranked first, and the sorting positions of contacts Zhang 5, Zhang 4, Zhang 3, Zhang 2, and Zhang 1 are all backed up, so it is judged that the sorting positions of contacts are backed up.
权重管理单元33,用于管理联系人的权重,对联系人的权重进行保持不变或者减小管理。当联系人的排序位置后退时,将联系人的权重减1,当联系人的权重减为0时,将联系人从数组中移除。如上例所述,联系人张五、张四、张三、张二、张一的排序位置均后退,故权重管理单元33将它们的权重全部减1处理。The weight management unit 33 is configured to manage the weight of the contact, and maintain or reduce the weight of the contact. When the sorting position of the contact is reversed, the weight of the contact is reduced by 1, and when the weight of the contact is reduced to 0, the contact is removed from the array. As mentioned in the above example, the sorting positions of the contacts Zhang Wu, Zhang Si, Zhang San, Zhang Er, and Zhang Yi are all backward, so the weight management unit 33 reduces their weights by 1 for processing.
筛选单元34,用于从数组中筛选排序靠前的一定数量的联系人显示在常用联系人列表中。将常用联系人列表的容量设为5,筛选单元34取数组中排序靠前的5个联系人,即张六、张五、张四、张三、张二生成常用联系人列表,它们的权重依次为10、9、8、7、6。The filtering unit 34 is configured to filter a certain number of top-ranked contacts from the array and display them in the frequent contact list. The capacity of the list of frequently used contacts is set to 5, and the screening unit 34 gets the top 5 contacts in the array, i.e. Zhang Liu, Zhang Wu, Zhang Si, Zhang San, and Zhang Er generate the list of frequently used contacts, and their weights 10, 9, 8, 7, 6 in turn.
上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,这些均属于本发明的保护之内。Embodiments of the present invention have been described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementations, and the above-mentioned specific implementations are only illustrative, rather than restrictive, and those of ordinary skill in the art will Under the enlightenment of the present invention, many forms can also be made without departing from the gist of the present invention and the protection scope of the claims, and these all belong to the protection of the present invention.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201210562897.8ACN103024189B (en) | 2012-12-21 | 2012-12-21 | System and method for generating frequent contact list of mobile terminal |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201210562897.8ACN103024189B (en) | 2012-12-21 | 2012-12-21 | System and method for generating frequent contact list of mobile terminal |
| Publication Number | Publication Date |
|---|---|
| CN103024189A CN103024189A (en) | 2013-04-03 |
| CN103024189Btrue CN103024189B (en) | 2014-07-23 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201210562897.8AExpired - Fee RelatedCN103024189B (en) | 2012-12-21 | 2012-12-21 | System and method for generating frequent contact list of mobile terminal |
| Country | Link |
|---|---|
| CN (1) | CN103024189B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104184866A (en)* | 2013-05-21 | 2014-12-03 | 中兴通讯股份有限公司 | Method of ordering contacts in address book and system |
| CN104717345A (en)* | 2013-12-13 | 2015-06-17 | 中国电信股份有限公司 | Method and device for achieving one-key speed dial |
| CN104917870A (en)* | 2014-03-11 | 2015-09-16 | 杭州雾隐美地传媒有限公司 | Method and application product for quickly positioning contact |
| CN105224567B (en)* | 2014-06-26 | 2020-08-14 | 腾讯科技(深圳)有限公司 | Keyword searching method and device |
| CN106302099B (en) | 2015-06-11 | 2020-10-09 | 钉钉控股(开曼)有限公司 | Session processing method and device in instant messaging |
| CN106254613B (en)* | 2016-07-22 | 2021-02-19 | 珠海格力电器股份有限公司 | Method and system for collecting contact persons |
| CN106302998A (en)* | 2016-08-01 | 2017-01-04 | 乐视控股(北京)有限公司 | The method and apparatus that a kind of address list shows |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101494688A (en)* | 2008-01-22 | 2009-07-29 | 深圳富泰宏精密工业有限公司 | System and method for ordering address book linkman |
| CN102780803B (en)* | 2012-07-09 | 2016-03-16 | 深圳天珑无线科技有限公司 | The sort method of a kind of communication terminal and address list thereof |
| Publication number | Publication date |
|---|---|
| CN103024189A (en) | 2013-04-03 |
| Publication | Publication Date | Title |
|---|---|---|
| CN103024189B (en) | System and method for generating frequent contact list of mobile terminal | |
| CN100583913C (en) | Cell method and terminal | |
| CN101695189B (en) | Method for conducting data synchronization by earphone, and corresponding earphone and mobile terminal | |
| WO2013127359A1 (en) | Method and device for processing contact persons, and mobile terminal | |
| CN101494688A (en) | System and method for ordering address book linkman | |
| CN102316430A (en) | Telephone answering method and apparatus thereof | |
| CN101951425A (en) | Processing method and system of contact information and mobile terminal | |
| CN101198120A (en) | Mobile communication device and method for displaying call list thereof | |
| CN102857636B (en) | A kind of address list method of operation of mobile terminal and operating system | |
| KR20130051990A (en) | Method and apparatus for providing destination-address suggestions | |
| WO2013166922A1 (en) | Information processing method and terminal | |
| WO2013182133A1 (en) | Address book-based automatic classification method and device, and mobile terminal | |
| CN104503668A (en) | Method, system and terminal for generating menu shortcut | |
| CN103209249B (en) | The method and system of communications records are provided in mobile communication terminals | |
| CN106559552A (en) | A kind of application message processing method in communication process, device | |
| CN102724278A (en) | Cloud voice mail implementation method, terminal and cloud service platform | |
| US8233888B1 (en) | Leveraging mobile-device analytics for informing and call handling | |
| CN103024121B (en) | A kind of mobile terminal distinguishes the method and system of contact number | |
| CN102946465B (en) | Mobile phone terminal contact person sequencing method, address book and mobile phone terminal | |
| CN100484162C (en) | Method for selecting communication module and multi-standby mobile terminal | |
| CN101389099A (en) | Mobile communication terminal and message management method | |
| CN102957777A (en) | Method for sequencing linkmen in phonebook according to contact frequency | |
| CN101262665A (en) | Mobile phone SMS group sending system | |
| CN104243659B (en) | The update method and system of address book contact | |
| CN1750564A (en) | A method for implementing do-not-disturb service in mobile terminal |
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| CP01 | Change in the name or title of a patent holder | ||
| CP01 | Change in the name or title of a patent holder | Address after:Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after:GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before:Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before:GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. | |
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee | Granted publication date:20140723 |