CN103781033A - Communication method and device for mobile terminal with instant messaging function - Google Patents

Communication method and device for mobile terminal with instant messaging function Download PDF

Info

Publication number
CN103781033A
CN103781033A CN201210417555.7A CN201210417555A CN103781033A CN 103781033 A CN103781033 A CN 103781033A CN 201210417555 A CN201210417555 A CN 201210417555A CN 103781033 A CN103781033 A CN 103781033A
Authority
CN
China
Prior art keywords
communicating number
effective connection
contact person
judged
connection people
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.)
Granted
Application number
CN201210417555.7A
Other languages
Chinese (zh)
Other versions
CN103781033B (en
Inventor
张迎春
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Shenzhou Taiyue Software Co Ltd
Original Assignee
Beijing Shenzhou Taiyue Software Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Shenzhou Taiyue Software Co Ltd filed Critical Beijing Shenzhou Taiyue Software Co Ltd
Priority to CN201210417555.7A priority Critical patent/CN103781033B/en
Publication of CN103781033A publication Critical patent/CN103781033A/en
Application granted granted Critical
Publication of CN103781033B publication Critical patent/CN103781033B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

This invention discloses a communication method and a device for a mobile terminal with an instant messaging function. The communication method comprises steps of obtaining contacts from an address list on the mobile terminal with the instant messaging function, screening out effective contacts according to the obtained contact information, setting contact list of the address list in the application corresponding to the instant messaging function according to the effective contacts, determining the effective contacts in the contact list of the address list are instant messaging friends, instant messaging strangers, or mobile terminal contacts, transmitting communication order according to the state of the effective contact in the contact list of the address list in term of the asking party and perform communication with the effective contact. By using the communication method disclosed by the invention, the mobile terminal can determine the state of the effective contact and perform communication in different ways for the convenience of the asking party.

Description

A kind of communication means of the mobile terminal with instant communication function and device
Technical field
The present invention relates to communication technical field, particularly a kind of communication means of the mobile terminal with instant communication function and device.
Background technology
Along with the development of the communication technology, people use instant messaging more and more and connect each other on communication mobile terminal.And while using most instant messaging (IM) software to communicate, the both sides of communication need to register instant messaging account, then could be by the instant communication software communication of chatting.And existing communication mobile terminal, the address list arranging in its system itself is exactly a contacts list, requesting party can be very continually with cell phone address book in contact person link up.Existing communication mobile terminal, the good friend in the contact person in the address list of mobile terminal and instant messaging buddy list is independently, only can communicate in the mode allowing respectively, communication mode is more single, flexibility is poor.
Summary of the invention
The invention provides a kind of communication means and device of the mobile terminal with instant communication function, to reach the effect that facilitates requesting party to select different communication modes to communicate with each other.For achieving the above object, the present invention adopts following technical scheme:
The communication means that the invention discloses a kind of mobile terminal with instant communication function, comprising:
From there is the address list of mobile terminal of instant communication function, obtain associated person information;
According to the associated person information getting, filter out effective connection people;
In the corresponding application of instant communication function, address book contact list is set according to described effective connection people;
Judge whether the effective connection people in described address book contact list is instant messaging good friend, if, the state of this contact person in address book contact list is set to instant messaging good friend, if not, judge whether this contact person uses instant messaging, in the time that this contact person uses instant messaging, the state of this contact person in address book contact list is set to instant messaging stranger, in the time that this contact person does not use instant messaging, the state of this contact person in address book contact list is set to mobile terminal contact person;
According to requesting party's communication that the state in address book contact list sends according to effective connection people indication, communicate with this effective connection people.
Wherein, the method also comprises: by the application programming interfaces API of mobile terminal system, whether the address list of monitoring mobile terminal changes; Describedly from there is the address list of mobile terminal of instant communication function, obtain associated person information and comprise: in the time that the address list of mobile terminal changes, from there is the address list of mobile terminal of instant communication function, obtain associated person information.
Wherein, described associated person information comprises contact person's communicating number, and the associated person information that described basis gets filters out effective connection people and comprises:
A, started by the highest order of contact person's communicating number, judged whether prefix, if be judged as YES, from communicating number, remove prefix, and judge in the communicating number of having removed prefix whether have forbidden character, if be judged as YES, from communicating number, delete forbidden character;
Whether the length of communicating number that prefix and forbidden character have been removed in B, judgement equals the general length N of communicating number, if be judged as YES, perform step C, if be judged as NO, judge that the contact person that this communicating number is corresponding is not effective connection people, and process ends;
Whether first of communicating number that prefix and forbidden character have been removed in C, judgement equals default value, if be judged as YES, judge that the contact person that this communicating number is corresponding is effective connection people, and process ends, if be judged as NO, judge that the contact person that this communicating number is corresponding is not effective connection people, and process ends.
Or described associated person information comprises contact person's communicating number, the associated person information that described basis gets, filters out effective connection people and comprises:
A, judge in contact person's communicating number whether have forbidden character, if be judged as YES, from communicating number, delete forbidden character;
Whether the length of communicating number that forbidden character has been removed in B, judgement is less than the general length N of communicating number, if be judged as YES, judges that the contact person that this communicating number is corresponding is not effective connection people, and process ends, if be judged as NO, and execution step C;
C, the most end N position of getting communicating number, judge whether first of most end N position equals default value, if be judged as NO, judges that the contact person that this communicating number is corresponding is not effective connection people, and process ends, if be judged as YES, further performs step D;
D, judge whether the number before communicating number most end N item code is prefix, if be judged as YES, judge that the contact person that this communicating number is corresponding is effective connection people, if be judged as NO, judge that the contact person that this communicating number is corresponding is not effective connection people, and process ends.
Wherein, describedly judge whether this contact person uses instant messaging to comprise: the inquiry request that comprises associated person information is sent to instant communication server end; Receive the Query Result of instant communication server end, know according to this Query Result whether this contact person uses instant messaging.
Wherein, describedly judge whether the effective connection people in described address book contact list is that instant messaging good friend comprises: by effective connection people's communicating number and instant messaging good friend's communicating number, started by turn relatively N time by last position, if the numeral of each all equates, the communicating number that judges this effective connection people is identical with instant messaging good friend's communicating number, the artificial instant messaging good friend of this effective connection, wherein, the numerical value of the general length that N is communicating number.
Wherein, describedly indicate according to requesting party's communication that the state in address book contact list sends according to effective connection people, communicate and comprise with this effective connection people: when the state of this contact person in address book contact list is that communicating by letter of instant messaging good friend and requesting party is designated as and sends when instant communication message, the communication that is maybe instant messaging stranger and requesting party when the state of this contact person in address book contact list is designated as while sending instant messaging stranger message, sends message by the corresponding application of instant communication function; In the time that requesting party's communication is designated as transmitting system note, the system note operational applications of calling communication mobile terminal is carried out transmitting system note.
The invention also discloses a kind of communicator of the mobile terminal with instant communication function, this device is preserved instant messaging good friend's communicating number, and comprises reading unit, screening unit, setting unit, state judging unit and communication unit:
Reading unit obtains associated person information from have the address list of mobile terminal of instant communication function, and associated person information is sent to screening unit;
Screening unit, according to the associated person information getting, filters out effective connection people, and effective connection people's information is sent to setting unit;
Setting unit, for arranging address book contact list according to described effective connection people's information in the corresponding application of instant communication function;
State judging unit, for judging whether the effective connection people of described address book contact list is instant messaging good friend, if, the state of this contact person in address book contact list is set to instant messaging good friend, if not, judge whether this contact person uses instant messaging, in the time that this contact person uses instant messaging, the state of this contact person in address book contact list is set to instant messaging stranger, in the time that this contact person does not use instant messaging, the state of this contact person in address book contact list is set to mobile terminal contact person;
Communication unit, for the communication indication sending at the state of address book contact list according to effective connection people according to requesting party, communicates with this effective connection people.
Wherein, this device also comprises monitoring unit, and for passing through the application programming interfaces API of mobile terminal system, whether the address list of monitoring mobile terminal changes; Described reading unit in the time that the address list of mobile terminal changes, obtains associated person information from have the address list of mobile terminal of instant communication function.
Wherein, described screening unit, comprises prefix module, forbidden character module, length judge module, comparison module, and forwarding module, and associated person information comprises contact person's communicating number, wherein:
Prefix module, starts for the highest order of the communicating number by contact person, has judged whether prefix, if be judged as YES, from communicating number, removes prefix, after being finished, communicating number is sent to forbidden character module;
Forbidden character module, whether the communicating number of having removed prefix for judging has forbidden character, if be judged as YES, from communicating number, deletes forbidden character, after being finished, communicating number is sent to length judge module;
Length judge module, for judging whether the length of the communicating number of having removed prefix and forbidden character is the general length N of communicating number, if be judged as YES, judged result is sent to comparison module, if be judged as NO, judge that the contact person that this communicating number is corresponding is not effective connection people;
Comparison module, for in the time that length judge module judges that the length of communicating number equals N, whether first of communicating number that prefix and forbidden character have been removed in judgement equals default value, if be judged as YES, judge that the contact person that this communicating number is corresponding is effective connection people, if be judged as NO, judge that the contact person that this communicating number is corresponding is not effective connection people;
Forwarding module, for receiving associated person information, and sends to setting unit by effective connection people's information;
Or:
Whether forbidden character module, have forbidden character for the communicating number that judges contact person, if be judged as YES, from communicating number, deletes forbidden character, after being finished, communicating number sent to length judge module;
Length judge module, for judging that whether the length of the communicating number of having removed forbidden character is less than the general length N of communicating number, if be judged as NO, sends to comparison module by judged result, if be judged as YES, judge that the contact person that this communicating number is corresponding is not effective connection people;
Comparison module, while being not less than N for removed the length of the communicating number of forbidden character in the judgement of length judge module, remove the most end N position except the communicating number of forbidden character, whether first that judges most end N position equal default value, if be judged as YES, judged result is sent to prefix module, if be judged as NO, judge that the contact person that this communicating number is corresponding is not effective connection people;
Prefix module, for in the time that comparison module judges that first of most end N position of the communicating number of having removed forbidden character equals default value, judge whether the number before communicating number most end N item code is prefix, if be judged as YES, judge that the contact person that this communicating number is corresponding is effective connection people, if be judged as NO, judge that the contact person that this communicating number is corresponding is not effective connection people;
Forwarding module, for receiving associated person information, and sends to setting unit by effective connection people's information.
Wherein, state judging unit, comprises local comparing module and enquiry module.Local comparing module, for judging whether the effective connection people of described address book contact list is instant messaging good friend, comprise: by effective connection people's communicating number and instant messaging good friend's communicating number, started by turn relatively N time by last position, if the numeral of each all equates, judges that this effective connection people's communicating number is identical with instant messaging good friend's communicating number, the artificial instant messaging good friend of this effective connection, the numerical value of the general length that wherein, N is communicating number.Enquiry module, for judging whether the effective connection people who is not instant messaging good friend uses instant messaging, comprise: the inquiry request that comprises associated person information is sent to instant communication server end, receive the Query Result of instant communication server end, know according to this Query Result whether this contact person uses instant messaging.
The beneficial effect of the embodiment of the present invention is: by the contact person in the address list of communication mobile terminal, read among JICQ, combine with good friend and the user of JICQ, whether whether the address book contact that can judge cell phone system use instant messaging and be instant messaging good friend, and then requesting party can select to send instant communication message or system note (for example SMS to address book contact, short message service), facilitate requesting party to select different communication modes mutually to communicate, communication mode is more flexible.
Accompanying drawing explanation
Fig. 1 is the flow chart that the present invention has the embodiment of the communication means of the mobile terminal of instant communication function;
Fig. 2 is the detailed flow chart of the present invention embodiment with the communication means of the mobile terminal of instant communication function;
Fig. 3 is the detailed flow chart of a kind of execution mode of step S200 among Fig. 2;
Fig. 4 is the detailed flow chart of the another kind of execution mode of step S200 among Fig. 2;
Fig. 5 is the block diagram that the present invention has the communicator of the mobile terminal of instant communication function;
Fig. 6 is the detailed block diagram of the present invention's communicator with the mobile terminal of instant communication function.
Embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, embodiment of the present invention is described in further detail.
Fig. 1 is the flow chart that the present invention has the embodiment of the communication means of the mobile terminal of instant communication function.The method comprises the following steps:
S100, from there is the address list of mobile terminal of instant communication function, obtain associated person information.
The associated person information that S200, basis get, filters out effective connection people.
S300, in the corresponding application of instant communication function, address book contact list is set according to described effective connection people.
S400, according to associated person information, judge effective connection people's state, by state recording in address book contact list.
S500, according to requesting party's communication that the state in address book contact list sends according to effective connection people indication, communicate with this effective connection people.
Fig. 2 is the detailed flow chart of the present invention embodiment with the communication means of the mobile terminal of instant communication function.Compared to Figure 1 Fig. 2, explains step S400, and wherein, step S400 specifically comprises:
S410, judge whether the effective connection people in address book contact list is instant messaging good friend, if be judged as YES, performs step S430, if be judged as NO, performs step S420.
S420, judge whether contact person uses instant messaging, if be judged as YES, perform step S440, if be judged as NO, perform step S450.
S430, the state of contact person in address book contact list are set to instant messaging good friend.
S440, the state of contact person in address book contact list are set to instant messaging stranger.
S450, the state of contact person in address book contact list are set to mobile terminal contact person.
In the present invention, also can be by the application programming interfaces of mobile terminal system (API, ApplicationProgramming Interface), whether the address list of monitoring mobile terminal changes; The operation that step S100 obtains associated person information from have the address list of mobile terminal of instant communication function is to carry out in the time that the address list that listens to mobile terminal changes.Can reduce like this system resources consumption, and can avoid omitting effective connection people in address book contact list.
The operation that step S100 obtains associated person information from have the address list of mobile terminal of instant communication function, can be that the modes such as the application programming interfaces by mobile terminal system are obtained address book contact information, for example, when communication mobile terminal is for using Android(Android) when the smart mobile phone of operating system, under Android platform, can use ContentResolver (Context resolution) order to obtain cell phone system contact person, certainly concrete implementation, is not limited with disclosing of the present embodiment.
The associated person information obtaining among step S100, comprises and contact person's communicating number can also comprise contact person's identity information etc.In step S200, filter out effective connection people's mode, it is the communicating number that first filters out the communicating number reference format that meets communication mobile terminal, for example, when the communication mobile terminal using is during for mobile phone, be to filter out the communicating number that meets Mobile Directory Number reference format, by screening communicating number, can filter out effective connection people.
Among step S300, in the corresponding application of instant communication function, address book contact list is set according to described effective connection people, that each communicating number to filtering out arranges a record, in the present embodiment, each record comprises communicating number, effective connection people's identity information and reserved state information, among step S400, state information can be set, for example, be set to instant messaging good friend, instant messaging stranger or mobile terminal contact person.
In the present embodiment, by step S410 to S450, by the contact person in the address list of communication mobile terminal, combine with good friend and the user of JICQ, judge the contact person in address list, instant messaging good friend, or instant messaging stranger, be only still mobile terminal contact person.Can on the display interface of communication mobile terminal, show contact person's state, when requesting party selects a contact person, for instant messaging stranger or instant messaging good friend, the mode that can select the information that sends is to send instant messaging information or instant messaging stranger message, or transmitting system note (for example, while using mobile phone terminal, can send SMS messaging).Different functions is integrated on same action pane, facilitates requesting party to select different communication modes to communicate with each other.
In step S500, according to effective connection people, the condition selecting communication mode in address book contact list sends communication indication to requesting party, if need to send instant communication message or instant messaging stranger message, send message by the corresponding application of instant communication function; If need transmitting system note, the system note operational applications of calling communication mobile terminal is carried out transmitting system note.If the state of contact person in address book contact list is instant messaging good friend, can send instant communication message or system note according to requesting party's indication; If the state of contact person in address book contact list is instant messaging stranger, can send instant messaging stranger's message or system note according to requesting party's indication; If the state of contact person in address book contact list is mobile terminal contact person, can be according to requesting party's indication transmitting system note.Concrete call operation, repeats no more.
More specifically, among step S410, judge whether the effective connection people in address book contact list is instant messaging good friend's method, be by effective connection people's communicating number and instant messaging good friend's communicating number, start by turn relatively N time by last position, if the numeral of each all equates, the communicating number that judges this effective connection people is identical with instant messaging good friend's communicating number, the artificial instant messaging good friend of this effective connection, wherein, the numerical value of the general length that N is communicating number.The present invention uses by last position of communicating number and starts, the comparison method of comparing by turn, comparison efficiency and accuracy rate are improved, certainly, also can be for instant messaging good friend's communicating number, filter out the communicating number that meets communicating number reference format, compare afterwards again, concrete flow process repeats no more.
Among step S420, judge whether contact person uses the method for instant messaging, be that the inquiry request that comprises associated person information is sent to instant communication server end, and receive the Query Result of instant communication server end, know according to this Query Result whether this contact person uses instant messaging.Instant communication server end, can be according to the associated person information of receiving, for example contact person's name or communicating number, whether carry out inquiring contactor is the user of JICQ, compared with existing instant communication software, can reduce requesting party's operation burden, and operate the accuracy rate that can improve inquiry by screening.
Fig. 3 is the detailed flow chart of a kind of execution mode of step S200 among Fig. 2.Wherein, for each communicating number obtaining among step S100, step S200 specifically comprises successively:
S210, remove prefix, comprise by the highest order of contact person's communicating number and starting, judged whether prefix, if be judged as YES, from communicating number, remove prefix.With regard to the operation among Fig. 2, step S210 differentiates the method for prefix, it is the combination that is judged whether successively to meet default prefix or prefix by highest order, certainly, if the existence of the interlude of communicating number field meets the arrangement of default prefix, more high-order field does not belong to default prefix, in step S210, interlude can not deleted so, avoid misoperation.
S220, removal forbidden character, comprise and judge in communicating number whether have forbidden character, if be judged as YES, from communicating number, deletes forbidden character.With regard to the operation among Fig. 2, step S220 differentiates the method for forbidden character, is to judge by highest order or lowest order successively whether each character meets default forbidden character, if met, deletes corresponding character.
S230, judge whether the length of communicating number equals the general length N of communicating number, if be judged as YES, performs step S240, if be judged as NO, judge that the contact person that this communicating number is corresponding is not effective connection people, and process ends.The general length N of the default communicating number of the present embodiment, it is the communicating number that can use communication mobile terminal communication in order to filter out, after having removed prefix and forbidden character, if judge, communicating number length is not equal to N, thinks that communicating number cannot make for completing conventional communication for communication mobile terminal.
S240, judge that whether first of communicating number equals default value, if be judged as YES, judges that the contact person that this communicating number is corresponding is effective connection people, and process ends, if be judged as NO, judge that the contact person that this communicating number is corresponding is not effective connection people, and process ends.For communication mobile terminal, the first place of its available number is all confirmable, and for example, for Chinese Mobile Directory Number, first place is 1.By the first place of communicating number and default value are compared, can select the efficient communication number suiting the requirements, and then obtain effective contact person.
Fig. 4 is the detailed flow chart of the another kind of execution mode of step S200 among Fig. 2.Wherein, for each communicating number obtaining among step S100, step S200 specifically comprises successively:
S210 ', removal forbidden character, comprise and judge in communicating number whether have forbidden character, if be judged as YES, from communicating number, deletes forbidden character.Particularly, be to judge by highest order or lowest order successively whether each character meets default forbidden character, if met, delete corresponding character.
S220 ', judge whether the length of communicating number is less than the general length N of communicating number, if be judged as YES, judge that the contact person that this communicating number is corresponding is not effective connection people, and process ends, if be judged as NO, execution step S230 '.After having removed forbidden character, if judge, communicating number length is less than N, thinks that communicating number cannot make for completing conventional communication for communication mobile terminal.
When S230 ', the length that judges communicating number among step S220 ' are not less than N, the most end N position that can get communicating number.And further perform step S240 '.
S240 ', most end N position is judged judge whether first of most end N position equals default value, if be judged as NO, judge that the contact person that this communicating number is corresponding is not effective connection people, and process ends, if be judged as YES, further perform step S250 '.For communication mobile terminal, the first place of its available number is all confirmable, and the default value of the present embodiment is the first place of the number that can use of communication mobile terminal.
S250 ', judge whether the number before communicating number most end N item code is prefix, if be judged as YES, judge that the contact person that this communicating number is corresponding is effective connection people, if be judged as NO, judge that the contact person that this communicating number is corresponding is not effective connection people, and process ends.
Fig. 5 is the block diagram that the present invention has the communicator of the mobile terminal of instant communication function.This device is preserved instant messaging good friend's communicating number, and comprises: reading unit 100, screening unit 200, setting unit 300, state judging unit 400 and communication unit 500.
Reading unit 100 obtains associated person information from have the address list of mobile terminal of instant communication function, and associated person information is sent to screening unit 200; The associated person information here, comprise contact person's communicating number, contact person's identity information etc., reading unit 100 obtains the operation of associated person information, it can be the contacts list that the modes such as the application programming interfaces API by mobile terminal system get mobile terminal, concrete implementation, is not limited with disclosing of the present embodiment.Screening unit 200, according to the associated person information getting, filters out effective connection people, and effective connection people's information is sent to setting unit 300; The method of screening among the present embodiment, first to filter out the communicating number that meets communicating number reference format, for example, when the communication mobile terminal using is during for mobile phone, to filter out the communicating number that meets Mobile Directory Number reference format, by screening number, can filter out effective connection people.Setting unit 300, for arranging address book contact list according to described effective connection people in the corresponding application of instant communication function; Among the present embodiment,, for each communicating number filtering out, a record is set, each record comprises communicating number, effective connection people's identity information and reserved state information, and on the display interface of mobile terminal, show address book contact list, select the contact person that will contact with it for requesting party.State judging unit 400, for judging whether the effective connection people of described address book contact list is instant messaging good friend, if, the state of this contact person in address book contact list is set to instant messaging good friend, if not, judge whether this contact person uses instant messaging, in the time that this contact person uses instant messaging, the state of this contact person in address book contact list is set to instant messaging stranger, in the time that this contact person does not use instant messaging, the state of this contact person in address book contact list is set to mobile terminal contact person, the mode of linkman state information is set, can be to read address book contact list from setting unit 300, revise state information, or the result of judgement is sent to setting unit 300, revise state information by state set unit 300.Communication unit 500, for the communication indication sending at the state of address book contact list according to effective connection people according to requesting party, communicate with this effective connection people, when requesting party selects a contact person, for instant messaging stranger or instant messaging good friend, can select the mode of the information that sends, to send instant messaging information, or transmitting system note (for example,, while using mobile phone terminal, can send SMS messaging).Different functions is integrated on same action pane, facilitates requesting party to select different communication modes to communicate with each other.If need transmitting system note, the system note operational applications of calling communication mobile terminal is carried out transmitting system note, if need to send instant messaging information, sends instant messaging information by instant messaging mobile terminal.
Fig. 6 is the detailed block diagram of the present invention's communicator with the mobile terminal of instant communication function.Compare with the device shown in Fig. 5, also comprise monitoring unit 600, for passing through the application programming interfaces API of mobile terminal system, whether the address list of monitoring mobile terminal changes; In the time that the address list of mobile terminal changes, reading unit 100 obtains associated person information from address list.
Described screening unit 200, specifically comprises prefix module 210, forbidden character module 220, length judge module 230, comparison module 240, and forwarding module 250.Prefix module 210, starts for the highest order of the communicating number by contact person, has judged whether prefix, if be judged as YES, from communicating number, removes prefix, after being finished, communicating number is sent to forbidden character module 220; Forbidden character module 220, whether the communicating number of having removed prefix for judging has forbidden character, if be judged as YES, from communicating number, deletes forbidden character, after being finished, communicating number is sent to length judge module 230; Length judge module 230, for judging whether the length of the communicating number of having removed prefix and forbidden character is the general length N of communicating number, if be judged as YES, judged result is sent to comparison module 240, if be judged as NO, judge that the contact person that this communicating number is corresponding is not effective connection people; Comparison module 240, for in the time that length judge module judges that the length of communicating number equals N, whether first of communicating number that prefix and forbidden character have been removed in judgement equals default value, if be judged as YES, judge that the contact person that this communicating number is corresponding is effective connection people, if be judged as NO, judge that the contact person that this communicating number is corresponding is not effective connection people; Forwarding module 250, for receiving associated person information, and sends to setting unit 300 by effective connection people's information.Or whether forbidden character module 220, have forbidden character for the communicating number that judges contact person, if be judged as YES, from communicating number, delete forbidden character, after being finished, communicating number is sent to length judge module 230; Length judge module 230, for judging whether the length of the communicating number of having removed forbidden character is less than the general length N of communicating number, if be judged as NO, judged result is sent to comparison module 240, if be judged as YES, judge that the contact person that this communicating number is corresponding is not effective connection people; Comparison module 240, while being not less than N for removed the length of the communicating number of forbidden character in 230 judgements of length judge module, remove the most end N position except the communicating number of forbidden character, whether first that judges most end N position equal default value, if be judged as YES, judged result is sent to prefix module 210, if be judged as NO, judge that the contact person that this communicating number is corresponding is not effective connection people; Prefix module 210, when judging that when comparison module 240 first of most end N position of the communicating number of having removed forbidden character equals default value, judge whether the number before communicating number most end N item code is prefix, if be judged as YES, judge that the contact person that this communicating number is corresponding is effective connection people, if be judged as NO, judge that the contact person that this communicating number is corresponding is not effective connection people; Forwarding module 250, for receiving associated person information, and sends to setting unit 300 by effective connection people's information.Certainly, the flow process of actual judgement, is not limited with above-mentioned two kinds, obtains effective connection people as long as can screen as required.
State judging unit 400, comprises local comparing module 410 and enquiry module 420.Wherein, local comparing module 410, for judging whether the effective connection people of described address book contact list is instant messaging good friend, concrete judgement flow process comprises: by effective connection people's communicating number and instant messaging good friend's communicating number, started by turn relatively N time by last position, if the numeral of each all equates, the communicating number that judges this effective connection people is identical with instant messaging good friend's communicating number, the artificial instant messaging good friend of this effective connection, the numerical value of the general length that wherein, N is communicating number.Enquiry module 420, for judging whether the effective connection people who is not instant messaging good friend uses instant messaging, concrete judgement flow process comprises: the inquiry request that comprises associated person information is sent to instant communication server end, receive the Query Result of instant communication server end, know according to this Query Result whether this contact person uses instant messaging.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, is anyly familiar with those skilled in the art in technical scope disclosed by the invention; the variation that can expect easily or replacement, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.

Claims (10)

1. a communication means with the mobile terminal of instant communication function, is characterized in that, described method comprises:
From there is the address list of mobile terminal of instant communication function, obtain associated person information;
According to the associated person information getting, filter out effective connection people;
In the corresponding application of instant communication function, address book contact list is set according to described effective connection people;
Judge whether the effective connection people in described address book contact list is instant messaging good friend, if, the state of this contact person in address book contact list is set to instant messaging good friend, if not, judge whether this contact person uses instant messaging, in the time that this contact person uses instant messaging, the state of this contact person in address book contact list is set to instant messaging stranger, in the time that this contact person does not use instant messaging, the state of this contact person in address book contact list is set to mobile terminal contact person;
According to requesting party's communication that the state in address book contact list sends according to effective connection people indication, communicate with this effective connection people.
2. method according to claim 1, is characterized in that, the method also comprises: by the application programming interfaces API of mobile terminal system, whether the address list of monitoring mobile terminal changes;
Describedly from there is the address list of mobile terminal of instant communication function, obtain associated person information and comprise:
In the time that the address list of mobile terminal changes, from there is the address list of mobile terminal of instant communication function, obtain associated person information.
3. method according to claim 1, is characterized in that, described associated person information comprises contact person's communicating number, and the associated person information that described basis gets filters out effective connection people and comprises:
A, remove prefix, comprise by the highest order of contact person's communicating number and starting, judged whether prefix, if be judged as YES, from communicating number, remove prefix; And removal forbidden character, comprise that judgement has removed in the communicating number of prefix whether have forbidden character, if be judged as YES, deletes forbidden character from communicating number;
Whether the length of communicating number that prefix and forbidden character have been removed in B, judgement equals the general length N of communicating number, if be judged as YES, perform step C, if be judged as NO, judge that the contact person that this communicating number is corresponding is not effective connection people, and process ends;
Whether first of communicating number that prefix and forbidden character have been removed in C, judgement equals default value, if be judged as YES, judge that the contact person that this communicating number is corresponding is effective connection people, and process ends, if be judged as NO, judge that the contact person that this communicating number is corresponding is not effective connection people, and process ends.
4. method according to claim 1, is characterized in that, described associated person information comprises contact person's communicating number, and the associated person information that described basis gets filters out effective connection people and comprises:
A, removal forbidden character, comprise in the communicating number that judges contact person whether having forbidden character, if be judged as YES, from communicating number, deletes forbidden character;
Whether the length of communicating number that forbidden character has been removed in B, judgement is less than the general length N of communicating number, if be judged as YES, judges that the contact person that this communicating number is corresponding is not effective connection people, and process ends, if be judged as NO, and execution step C;
C, the most end N position of getting described communicating number, judge whether first of most end N position equals default value, if be judged as NO, judges that the contact person that this communicating number is corresponding is not effective connection people, and process ends, if be judged as YES, further performs step D;
D, judge whether the number before described communicating number most end N item code is prefix, if be judged as YES, judge that the contact person that this communicating number is corresponding is effective connection people, if be judged as NO, judge that the contact person that this communicating number is corresponding is not effective connection people, and process ends.
5. according to the method described in the arbitrary claim of claim 1 to 4, it is characterized in that,
Describedly judge whether this contact person uses instant messaging to comprise:
The inquiry request that comprises associated person information is sent to instant communication server end;
Receive the Query Result of instant communication server end, know according to this Query Result whether this contact person uses instant messaging.
6. according to the method described in the arbitrary claim of claim 1 to 4, it is characterized in that,
Describedly judge whether the effective connection people in described address book contact list is that instant messaging good friend comprises:
By effective connection people's communicating number and instant messaging good friend's communicating number, started by turn relatively N time by last position, if the numeral of each all equates, the communicating number that judges this effective connection people is identical with instant messaging good friend's communicating number, the artificial instant messaging good friend of this effective connection, the numerical value of the general length that wherein, N is communicating number.
7. according to the method described in the arbitrary claim of claim 1 to 4, it is characterized in that,
Described according to requesting party's communication that the state in address book contact list sends according to effective connection people indication, communicate and comprise with this effective connection people:
When the communication that is instant messaging good friend and requesting party of the state of this contact person in address book contact list is designated as while sending instant communication message, the communication that is maybe instant messaging stranger and requesting party when the state of this contact person in address book contact list is designated as while sending instant messaging stranger message, sends message by the corresponding application of instant communication function;
In the time that requesting party's communication is designated as transmitting system note, the system note operational applications of calling communication mobile terminal is carried out transmitting system note.
8. a communicator with the mobile terminal of instant communication function, is characterized in that, this device is preserved instant messaging good friend's communicating number, and comprises reading unit, screening unit, setting unit, state judging unit and communication unit:
Reading unit obtains associated person information from have the address list of mobile terminal of instant communication function, and associated person information is sent to screening unit;
Screening unit, according to the associated person information getting, filters out effective connection people, and effective connection people's information is sent to setting unit;
Setting unit, for arranging address book contact list according to described effective connection people's information in the corresponding application of instant communication function;
State judging unit, for judging whether the effective connection people of described address book contact list is instant messaging good friend, if, the state of this contact person in address book contact list is set to instant messaging good friend, if not, judge whether this contact person uses instant messaging, in the time that this contact person uses instant messaging, the state of this contact person in address book contact list is set to instant messaging stranger, in the time that this contact person does not use instant messaging, the state of this contact person in address book contact list is set to mobile terminal contact person;
Communication unit, for the communication indication sending at the state of address book contact list according to effective connection people according to requesting party, communicates with this effective connection people.
9. device according to claim 8, is characterized in that,
This device also comprises monitoring unit, and for passing through the application programming interfaces API of mobile terminal system, whether the address list of monitoring mobile terminal changes;
Described reading unit in the time that the address list of mobile terminal changes, obtains associated person information from have the address list of mobile terminal of instant communication function.
10. device according to claim 8, is characterized in that,
Described screening unit, comprises prefix module, forbidden character module, length judge module, comparison module, and forwarding module, and associated person information comprises contact person's communicating number, wherein:
Prefix module, starts for the highest order of the communicating number by contact person, has judged whether prefix, if be judged as YES, from communicating number, removes prefix, after being finished, communicating number is sent to forbidden character module;
Forbidden character module, whether the communicating number of having removed prefix for judging has forbidden character, if be judged as YES, from communicating number, deletes forbidden character, after being finished, communicating number is sent to length judge module;
Length judge module, for judging whether the length of the communicating number of having removed prefix and forbidden character is the general length N of communicating number, if be judged as YES, judged result is sent to comparison module, if be judged as NO, judge that the contact person that this communicating number is corresponding is not effective connection people;
Comparison module, for in the time that length judge module judges that the length of communicating number equals N, whether first of communicating number that prefix and forbidden character have been removed in judgement equals default value, if be judged as YES, judge that the contact person that this communicating number is corresponding is effective connection people, if be judged as NO, judge that the contact person that this communicating number is corresponding is not effective connection people;
Forwarding module, for receiving associated person information, and sends to setting unit by effective connection people's information;
Or:
Whether forbidden character module, have forbidden character for the communicating number that judges contact person, if be judged as YES, from communicating number, deletes forbidden character, after being finished, communicating number sent to length judge module;
Length judge module, for judging that whether the length of the communicating number of having removed forbidden character is less than the general length N of communicating number, if be judged as NO, sends to comparison module by judged result, if be judged as YES, judge that the contact person that this communicating number is corresponding is not effective connection people;
Comparison module, while being not less than N for removed the length of the communicating number of forbidden character in the judgement of length judge module, remove the most end N position except the communicating number of forbidden character, whether first that judges most end N position equal default value, if be judged as YES, judged result is sent to prefix module, if be judged as NO, judge that the contact person that this communicating number is corresponding is not effective connection people;
Prefix module, for in the time that comparison module judges that first of most end N position of the communicating number of having removed forbidden character equals default value, judge whether the number before communicating number most end N item code is prefix, if be judged as YES, judge that the contact person that this communicating number is corresponding is effective connection people, if be judged as NO, judge that the contact person that this communicating number is corresponding is not effective connection people;
Forwarding module, for receiving associated person information, and sends to setting unit by effective connection people's information.
CN201210417555.7A 2012-10-26 2012-10-26 Communication method and device for mobile terminal with instant messaging function Active CN103781033B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210417555.7A CN103781033B (en) 2012-10-26 2012-10-26 Communication method and device for mobile terminal with instant messaging function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210417555.7A CN103781033B (en) 2012-10-26 2012-10-26 Communication method and device for mobile terminal with instant messaging function

Publications (2)

Publication Number Publication Date
CN103781033A true CN103781033A (en) 2014-05-07
CN103781033B CN103781033B (en) 2017-05-17

Family

ID=50572767

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210417555.7A Active CN103781033B (en) 2012-10-26 2012-10-26 Communication method and device for mobile terminal with instant messaging function

Country Status (1)

Country Link
CN (1) CN103781033B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104283770A (en) * 2014-08-27 2015-01-14 广州三星通信技术研究有限公司 Message sending method and device
CN104796321A (en) * 2015-03-24 2015-07-22 马永信 Application device and method for adding new wechat friends through operator signaling monitoring platform
CN105611051A (en) * 2015-12-21 2016-05-25 联想(北京)有限公司 Communication method and electronic device
CN105744512A (en) * 2016-01-21 2016-07-06 努比亚技术有限公司 Contact information loading device and contact information loading method
CN105744525A (en) * 2014-12-08 2016-07-06 北京奇虎科技有限公司 Method, device and system for mobile communication terminal to identify harassing communication
CN105871934A (en) * 2016-06-23 2016-08-17 太原脉倜什移动互联科技有限公司 Stranger communication system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070155326A1 (en) * 2005-12-30 2007-07-05 Acer Incorporated Instant message audio connection management system and method
CN101155324A (en) * 2006-09-28 2008-04-02 赵建文 Instant communication method and system based on or containing mobile phone book
CN102026110A (en) * 2009-09-18 2011-04-20 中兴通讯股份有限公司 Method for processing instant messaging contact information and mobile terminal
CN102355509A (en) * 2011-07-29 2012-02-15 深圳市易联盛世科技有限公司 Method and device for transmitting and receiving message according to mobile number in contact list

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070155326A1 (en) * 2005-12-30 2007-07-05 Acer Incorporated Instant message audio connection management system and method
CN101155324A (en) * 2006-09-28 2008-04-02 赵建文 Instant communication method and system based on or containing mobile phone book
CN102026110A (en) * 2009-09-18 2011-04-20 中兴通讯股份有限公司 Method for processing instant messaging contact information and mobile terminal
CN102355509A (en) * 2011-07-29 2012-02-15 深圳市易联盛世科技有限公司 Method and device for transmitting and receiving message according to mobile number in contact list

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104283770A (en) * 2014-08-27 2015-01-14 广州三星通信技术研究有限公司 Message sending method and device
CN105744525A (en) * 2014-12-08 2016-07-06 北京奇虎科技有限公司 Method, device and system for mobile communication terminal to identify harassing communication
CN104796321A (en) * 2015-03-24 2015-07-22 马永信 Application device and method for adding new wechat friends through operator signaling monitoring platform
CN104796321B (en) * 2015-03-24 2018-05-29 马永信 The application apparatus and method of wechat good friend is added by operator's monitoring signaling platform
CN105611051A (en) * 2015-12-21 2016-05-25 联想(北京)有限公司 Communication method and electronic device
CN105744512A (en) * 2016-01-21 2016-07-06 努比亚技术有限公司 Contact information loading device and contact information loading method
CN105871934A (en) * 2016-06-23 2016-08-17 太原脉倜什移动互联科技有限公司 Stranger communication system
CN105871934B (en) * 2016-06-23 2019-09-17 太原脉倜什移动互联科技有限公司 Stranger's communication system

Also Published As

Publication number Publication date
CN103781033B (en) 2017-05-17

Similar Documents

Publication Publication Date Title
CN101155324B (en) Instant communication method and system based on or containing mobile phone book
CN103781033A (en) Communication method and device for mobile terminal with instant messaging function
CN104967557A (en) Communication message sending method and apparatus
KR20010033764A (en) On-line notification in a mobile communications system
CN103259820B (en) Select the method and its communication terminal of communication mode
CN102833699B (en) Method, system and the mobile communication terminal of simulation bilateral function
CN102904797B (en) Method and system for implementing mutual information recording in instant messaging
CN104123350B (en) A kind of method, equipment and the system of social networks management
CN104836725A (en) Method and device used for adding friend users
CN102984391B (en) Mobile terminal and reply processing method for message content in mobile terminal
EP2661059A1 (en) Method and mobile terminal for storing memorandum during calling
CN102026110A (en) Method for processing instant messaging contact information and mobile terminal
US6865385B1 (en) Status notification method and status notification system
CN104883290A (en) Contact person online status notification method and apparatus
CN102843308A (en) Instant messaging method and system based on mobile terminal local address book
CN105376279B (en) Method and device for recommending contact persons
KR101641166B1 (en) Apparatus and system for providing lettering service
CN105228024A (en) Set-top box users exchange method
KR101006673B1 (en) The understanding method of user's terminal usage pattern information and thereof system
CN111405126A (en) Method, system, device, equipment and storage medium for dialing in dispatching link
CN106713576B (en) Method and device for distinguishing multiple numbers in contact information
CN105120087A (en) Control method of session interface and terminal
CN102790830B (en) Method and device for expanding functions of mobile communication terminal
CN1859613A (en) Short message filtering system and method
CN106899733B (en) Intelligent terminal and system address book telephone number processing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP02 Change in the address of a patent holder

Address after: Room 818, 8 / F, 34 Haidian Street, Haidian District, Beijing 100080

Patentee after: BEIJING ULTRAPOWER SOFTWARE Co.,Ltd.

Address before: 100089 Beijing city Haidian District wanquanzhuang Road No. 28 Wanliu new building 6 storey block A Room 601

Patentee before: BEIJING ULTRAPOWER SOFTWARE Co.,Ltd.

CP02 Change in the address of a patent holder