Nothing Special   »   [go: up one dir, main page]

CN111953722A - Terminal address book synchronization method and device - Google Patents

Terminal address book synchronization method and device Download PDF

Info

Publication number
CN111953722A
CN111953722A CN201910411085.5A CN201910411085A CN111953722A CN 111953722 A CN111953722 A CN 111953722A CN 201910411085 A CN201910411085 A CN 201910411085A CN 111953722 A CN111953722 A CN 111953722A
Authority
CN
China
Prior art keywords
address book
cloud
difference
contact
terminal
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
CN201910411085.5A
Other languages
Chinese (zh)
Other versions
CN111953722B (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.)
Wuhan Hikvision Storage Technology Co ltd
Original Assignee
Wuhan Hikvision Storage Technology 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 Wuhan Hikvision Storage Technology Co ltd filed Critical Wuhan Hikvision Storage Technology Co ltd
Priority to CN201910411085.5A priority Critical patent/CN111953722B/en
Publication of CN111953722A publication Critical patent/CN111953722A/en
Application granted granted Critical
Publication of CN111953722B publication Critical patent/CN111953722B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/26Devices for calling a subscriber
    • H04M1/27Devices whereby a plurality of signals may be stored simultaneously
    • H04M1/274Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc
    • H04M1/2745Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc using static electronic memories, e.g. chips
    • H04M1/27453Directories allowing storage of additional subscriber data, e.g. metadata
    • H04M1/27457Management thereof, e.g. manual editing of data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/26Devices for calling a subscriber
    • H04M1/27Devices whereby a plurality of signals may be stored simultaneously
    • H04M1/274Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc
    • H04M1/2745Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc using static electronic memories, e.g. chips
    • H04M1/2753Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc using static electronic memories, e.g. chips providing data content
    • H04M1/2757Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc using static electronic memories, e.g. chips providing data content by data transmission, e.g. downloading

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Library & Information Science (AREA)
  • Information Transfer Between Computers (AREA)
  • Telephone Function (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The application provides a synchronization method and device of a terminal address book, wherein if at least one difference item exists in a first difference item of a preset address book and the terminal address book and a second difference item of the preset address book and the cloud address book, all the difference items are obtained; updating the preset address list according to all the acquired difference items to obtain a latest address list; and synchronizing the terminal address book and the cloud address book to be the same as the latest address book respectively, so that the communication management and synchronization of the address books can be carried out on each terminal of the user by the method.

Description

Terminal address book synchronization method and device
Technical Field
The application relates to the technical field of mobile phone application, in particular to a method and a device for synchronizing a terminal address book.
Background
The mobile phone address book is used as a basic function of the mobile phone and plays a crucial role in the use of the mobile phone, and the existing backup method of the address book of a single mobile phone usually comprises the step of backing up the mobile phone address book by a mobile phone system or the step that a user thinks that the mobile phone address book is uploaded to a network cloud disk for storage.
However, today when the mobile device is updated rapidly, a user may frequently change a mobile phone or one user may use multiple mobile phones at the same time, especially when the mobile phone systems used by the user are different, the synchronization of the address lists among multiple mobile phones of the user becomes very difficult, and the existing method for backing up the address list of a single mobile phone cannot meet the synchronization requirement of the multiple mobile phone address lists of the user.
Disclosure of Invention
In view of this, the present application provides a method and an apparatus for synchronizing a terminal address book, which can solve the problem that multiple terminal address books cannot be synchronized in the prior art.
Specifically, the method is realized through the following technical scheme:
according to a first aspect of an embodiment of the present application, a method for synchronizing a terminal address book is provided, where the method includes:
if at least one difference item exists in a first difference item between a preset address book and a terminal address book and a second difference item between the preset address book and the cloud address book, acquiring all the difference items;
updating the preset address list according to all the acquired difference items to obtain a latest address list;
and synchronizing the terminal address list and the cloud address list to be the same as the latest address list respectively.
According to a second aspect of the embodiments of the present application, there is provided a device for synchronizing a terminal address book, the device including:
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring all difference items if at least one difference item exists in a first difference item between a preset address book and a terminal address book and a second difference item between the preset address book and the cloud address book;
the updating unit is used for updating the preset address list according to all the acquired difference items to obtain a latest address list;
and the synchronization unit is used for synchronizing the terminal address book and the cloud address book to be the same as the latest address book respectively.
According to a third aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the method for synchronizing any of the terminal address books.
According to a fourth aspect of embodiments herein, there is provided a computer device comprising a memory, a processor, a communication interface, and a communication bus; the memory, the processor and the communication interface are communicated with each other through the communication bus;
the memory is used for storing a computer program;
the processor is used for executing the computer program stored in the memory, and the processor realizes the steps of the synchronization method of any terminal address book when executing the computer program.
It can be seen from the above embodiments that, the address book can be preset through the cache and compared with the terminal address book and the cloud address book respectively to obtain the difference item, then the difference item is used for updating the preset address book to obtain the latest address book, and the terminal address book and the cloud address book are synchronized to be the same as the latest address book, so that when a user uses a plurality of terminals, the user can bind each terminal with the cloud equipment and synchronize the address book, one or more address books can be managed among a plurality of terminals of different platforms, the effect of data intercommunication is realized, and the management efficiency of the user on the address books of the terminals can be improved.
Drawings
Fig. 1 is a flowchart illustrating an embodiment of a method for synchronizing a terminal address book according to the present application;
FIG. 2-1 is a schematic diagram of an exemplary synchronization process for handset A of the present application;
fig. 2-2 is a schematic diagram of an exemplary synchronization of a mobile phone B of the present application;
FIG. 3 is a schematic diagram illustrating exemplary synchronous interaction of a terminal address book according to the present application;
FIG. 4-1 is a schematic diagram of an exemplary first synchronization of a handset A of the present application;
4-2 an exemplary handset B of the present application is shown for a first synchronization;
4-3 schematic diagrams of a second synchronization of an exemplary handset B of the present application;
4-4 schematic diagrams of a second synchronization of an exemplary handset A of the present application;
fig. 5 is a block diagram illustrating an embodiment of a synchronization apparatus for a terminal address book according to the present application;
FIG. 6 is a block diagram of one embodiment of a computer device of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
In order to solve the problems of the prior art, the application provides a synchronization method and device for a terminal address book, a preset address book can be cached and compared with the terminal address book and a cloud address book respectively to obtain a difference item, the preset address book is updated through the difference item to obtain a latest address book, and the terminal address book and the cloud address book are synchronized to be the same as the latest address book respectively, so that when a user uses a plurality of terminals, the user can bind each terminal with cloud equipment and synchronize the address books, one or more address books can be managed among the plurality of terminals of different platforms, the effect of data intercommunication is achieved, and the management efficiency of the user on the address books of the plurality of terminals can be improved.
The following embodiments are shown to explain the synchronization method of the terminal address book provided by the present application.
Referring to fig. 1, a flowchart of an exemplary method for synchronizing a terminal address book according to the present application is shown, where the method may be applied to application software (hereinafter referred to as a terminal App) on a terminal, and the method includes the following steps:
step 101, if at least one difference item exists in a first difference item between a preset address book and a terminal address book and a second difference item between the preset address book and the cloud address book, acquiring all the difference items;
in this embodiment, the terminal App can be installed on the operating system of the terminal, the user can trigger the address book synchronization with the cloud device according to the requirement, and the cloud device can be a personal private network disk or an enterprise network disk storage device. When the address book synchronization instruction is received, a request can be sent to cloud end equipment corresponding to a terminal to request a cloud end address book corresponding to the terminal in the cloud end equipment.
As an embodiment, the cloud device may establish a corresponding relationship with a plurality of terminals of a plurality of users, and thus, the cloud address book corresponding to the plurality of terminals may be stored. The terminal App can send a request to the cloud equipment corresponding to the terminal according to the pre-stored corresponding relation between the terminal and the cloud equipment and the address book identification of the cloud address book corresponding to the terminal in the cloud equipment, so that the cloud equipment searches the cloud address book corresponding to the terminal according to the address book identification carried in the request and feeds back the cloud address book, and the terminal App can obtain the cloud address book.
The terminal App can compare the acquired cloud address book and the acquired terminal address book with the preset address book in the terminal App respectively, and if at least one difference item exists in a first difference item between the preset address book and the terminal address book and a second difference item between the preset address book and the cloud address book, all the difference items are acquired. It should be noted that the preset address book may be a result of the last address book synchronization stored; the terminal address list and the cloud address list can be blank address lists, and when the terminal address list and the cloud address list are compared with the preset address list, if the two address lists are the same as the preset address list, the comparison result is that no difference item exists; if one of the address lists is different from the preset address list, a difference item exists; if both the two address lists are different from the preset address list, two difference items exist, and in this embodiment, as long as at least one difference item exists, the difference item may be obtained.
In addition to the usual names and telephone numbers, the preset contact information of the address book is added with the information of modification time, the contact identification of the same equipment, the contact identification of different equipment and the like. The same-equipment contact person identification is an identification for distinguishing different contact persons in the same terminal, and the same-equipment contact person identification can be repeatedly used in different terminals; the inter-device contact identification is an identification for distinguishing different contacts among different devices, and the identification is not repeated on a plurality of terminals. The terminal App can compare the contact person information in the terminal address book with the contact person information in the preset address book by taking the same equipment contact person identification in the contact person information of the terminal address book as an index, and takes the contact person information with difference as a first difference item; the contact person information in the cloud address book and the contact person information in the preset address book can be compared by taking the identification of the different equipment contact person in the contact person information in the cloud address book as an index, and the contact person information with the difference is taken as a second difference item. In an alternative embodiment, the different-device contact identification can be formed by splicing a time stamp of the current time and a 32-bit random code, and once the different-device contact identification is generated, the different-device contact identification cannot be changed, so that the uniqueness of the different-device contact identification can be ensured. By indexing with the contact identification, the speed of contact comparison can be improved, and the result of comparison is more accurate than directly comparing the name and the telephone number because the contact identification has relative uniqueness.
Step 102, updating the preset address book according to all the acquired difference items to obtain a latest address book;
as an embodiment, when the address book is synchronized for the first time, in the case that it is determined that the first difference item and the second difference item exist and the name and the phone number of the first contact information in the first difference item and the name and the phone number of the second contact information in the second difference item are different, it is described that the first contact information and the second contact information are both newly added different contact information, so that both the first contact information and the second contact information can be added to the latest address book; or, in the case that the names or the telephone numbers in the first contact information and the second contact information are different, or the names and the numbers are the same, it indicates that the same contact information is modified on different devices, so that the contact information with the latest modification time in the first contact information and the second contact information can be updated into the latest address book; when the address book is not synchronized for the first time, in the case that the first difference item and the second difference item are determined to exist, both the first difference item and the second difference item may be updated into the latest address book, and if only one difference item exists, all contact information in the difference item may be updated into the latest address book. According to the method for updating the difference item to the latest address list by comparing the contact information, the synchronization rate can be further improved on the premise of ensuring the uniqueness of the contact.
Further, the terminal App can add different modification tags to the contact information according to the difference type of the contact information with the difference, and update the preset address book according to the modification tags of the contact information in the difference item, wherein the modification tags include one or more of a new tag, a deleted tag or an updated tag. For example, when determining that the contact information is new information, adding a new tag to the contact information, and when updating a preset address book, adding the contact information with the new tag to the latest address book; when the contact information is determined to be the modification information, a modification label can be added to the contact information, and when the preset address book is updated, the contact information with the modification label can be modified on the basis of the original contact information to obtain the latest contact information; when the contact information is determined to be the deleted information, a deleted tag can be added to the contact information, and when the preset address book is updated, the contact information with the deleted tag can be deleted in the latest address book. The above is merely an exemplary illustration, and the specific label classification method is not limited.
And 103, synchronizing the terminal address book and the cloud address book to be the same as the latest address book respectively.
In this embodiment, the terminal App can synchronize the terminal address book and the cloud address book to be the same as the latest address book respectively according to the latest address book, so that the aim of synchronizing the address books can be fulfilled.
For example, when the user mobile phone a needs to synchronize the address book with the user mobile phone B and the cloud device, the user mobile phone a and the cloud device may be synchronized first, and the specific process refers to fig. 2-1. Supposing that contact information in a terminal address book of a user mobile phone A comprises a contact B, a contact C and a contact D, contact information in an App preset address book of the mobile phone A comprises the contact B and the contact C, contact information in a cloud address book comprises the contact A, the contact B and the contact C, comparing the three address books, obtaining a first difference item between the terminal address book of the mobile phone A and the preset address book as a newly added contact D of the mobile phone, and obtaining a second difference item between the cloud address book and the preset address book as the newly added contact A, wherein the contact A and the contact D belong to different contacts, so that the newly added contact is added into the preset address book, and the obtained latest address book comprises the contact A, the contact B, the contact C and the contact D; and finally, synchronizing the address book of the mobile phone A and the cloud address book according to the latest address book, so that the information of the mobile phone A, the cloud address book and the cloud address book is consistent.
If the terminal address book of the mobile phone B needs to be synchronized after the terminal address book of the mobile phone a is synchronized, please refer to fig. 2-2 for a specific process. Assuming that the contact information in the terminal address book of the user mobile phone B comprises a contact F, the App preset address book of the mobile phone B does not comprise a contact, the contact information in the cloud address book comprises a contact A, a contact B, a contact C and a contact D according to the synchronization result with the mobile phone A, comparing the three address lists, wherein the first difference item between the terminal address list of the obtained mobile phone B and the preset address list is a newly added contact person F of the mobile phone, the second difference item between the cloud address list and the preset address list is a newly added contact person A, a contact person B, a contact person C and a contact person D of the cloud, since contact a, contact B, contact C and contact D belong to different contacts than contact F, therefore, the new contact list is added into the preset address list as a new added item, and the obtained latest address list comprises a contact A, a contact B, a contact C, a contact D and a contact F; and finally, synchronizing the terminal address book and the cloud address book of the mobile phone B according to the latest address book, so that the information of the terminal address book of the mobile phone A and the information of the cloud address book of the user at the cloud device are consistent, and the terminal address book of the mobile phone B can be synchronized with the terminal address book of the user at the cloud device.
For further explanation of the processing method of the present application, please refer to the following detailed description of the present application with reference to the following examples.
Referring to fig. 3, a flowchart of an embodiment of a method for synchronizing a terminal address book according to an embodiment of the present application is shown, where the method is applied to a terminal, and the method includes the following steps.
Step 301, entering a mobile phone App page;
step 302, inquiring whether a preset address book is cached locally;
step 303, assuming that the terminal address book of the mobile phone a is not synchronized before, displaying that the cache preset address book is empty, and simultaneously displaying a first synchronization button prompt in a page;
step 304, changing the terminal address book of the mobile phone A;
305, if the user triggers the first-time synchronization button, a preset address list needs to be established in a cache;
step 306, acquiring cloud address book information corresponding to the user from a cloud, wherein the cloud address book information comprises cloud address book identification, address book names and contact number;
step 307, displaying options of the preset address book, for example, a new option and a synchronization option, where the new option is to newly build a blank address book as the preset address book; the synchronous option is that a cloud address book acquired from a cloud is used as a preset address book;
step 308, if a new address book is selected, a blank preset address book is newly built;
step 309, the mobile phone App requests an identification and a name of a newly-built preset address book from the cloud; and starting a first synchronization process;
step 310, acquiring a terminal address book of the mobile phone A;
step 311, acquiring a cloud address book corresponding to the user stored in the cloud;
step 312, performing a synchronization operation according to the user selection, wherein the options include: combining the terminal address list and the cloud address list to remove duplication, or covering the cloud by the terminal, or covering the terminal by the cloud; the user can select the address list according to actual requirements, so that the App realizes the address list synchronization of the terminal and the cloud according to the result selected by the user;
and step 313, completing the first synchronization.
For example, as shown in fig. 4-1, the first synchronization process may be performed, assuming that the App of the mobile phone a determines that there is no synchronization record in the current App, at this time, the App first adds a contact identifier, such as a Person identifier, of a different device to the contact A, B, C, D locally from the mobile phone a, reads the contact identifier into the App cache, and then reads the contact in the cloud into the App cache, because there is usually no contact in the cloud at the first synchronization, at this time, there are contacts in the App cache that are Person a and Person B, C, D, assuming that the user selects an operation of combining and deduplication between the terminal and the cloud, the App may combine and deduplicate the contacts in the mobile phone and the cloud according to the synchronization rule, and the obtained result is that the latest address includes Person a and Person B, C, D, then store the cached contact into the App sandbox as a synchronization record, and synchronize to the mobile phone a and the cloud respectively to complete the first synchronization operation, after synchronization, the terminal address book of the mobile phone, the preset address book of the App, and the cloud address book of the cloud device are all contacts A, B, C, D.
Step 314, changing the terminal address book of the mobile phone A;
step 315, the cloud address book corresponding to the user in the cloud changes;
step 316, the user enters the mobile phone App page again, the last synchronization time, the number of the contacts in the mobile phone A terminal address list, the latest number of the contacts in the cloud address list and a synchronization button are displayed in the page, and when the user determines that synchronization needs to be performed again according to the display information, the synchronization button can be triggered to start a non-primary synchronization process;
step 317, acquiring the latest terminal address book of the mobile phone A;
step 318, requesting and acquiring an identification, a name, an index path, modification time and the number of contacts of a cloud address book corresponding to the user in the cloud;
step 319, obtaining a latest cloud address book corresponding to the user in the cloud;
step 320, comparing the preset address list with the terminal address list and the cloud address list of the mobile phone A respectively to obtain difference items;
step 321, updating a preset address book according to the difference item to obtain a latest address book;
step 322, synchronizing the terminal address book of the mobile phone A according to the latest address book;
step 323, synchronizing the cloud address book according to the latest address book.
Assuming that when the user uses the mobile phone a and the mobile phone B, as shown in the foregoing embodiment, when the mobile phone a has synchronized the contact A, B, C, D to the cloud, and the other mobile phone B has not synchronized, the first synchronization process of the mobile phone B is shown in fig. 4-2, where:
before synchronization, only a contact Person F is in a terminal address book of a mobile phone B, a cloud address book has contact persons A, B, C, D, the first synchronization of the mobile phone B is to combine the contact persons in the terminal address book of the mobile phone B with the contact persons in the cloud address book, an App of the mobile phone B firstly adds a Person identifier to the local contact Person of the mobile phone B and reads the Person identifier into a preset address book of the App, then adds a Person identifier to the contact Person A, B, C, D of the cloud address book and reads the Person identifier into the preset address book of the App, at the moment, five contact persons including Person identifiers of Person A and B, C, D, F exist in the terminal address book of the mobile phone B, then the terminal address book of the mobile phone B is compared with the preset address book of the mobile phone App, and the comparison result shows that the Person identifiers of Person A and Person identifiers B, C, D in the preset address book of the App are not in the terminal address book of the mobile phone B, and the four contact persons are considered to be local contact persons relative, then, the four contact persons are newly added in the terminal address book of the mobile phone B, similarly, the cloud address book is compared with the preset address book of the App of the mobile phone B, and as a result, the Person identification of the Person F is not found in the cloud address book, the contact Person F is considered to be the newly added contact Person relative to the cloud address book, then the contact Person is newly added in the cloud address book, and finally, the terminal address book of the mobile phone B, the preset address book of the App of the mobile phone B and the cloud address book all have the contact Person A, B, C, D, F, so that the first synchronization of the terminal address book of the mobile phone B is completed.
Then, assuming that the mobile phone B changes the terminal address book, modifies the contact C to be the contact C3, and deletes the contact D, the second synchronization process of the mobile phone B is as shown in fig. 4-3, where:
firstly, comparing a mobile phone B terminal address book with an App preset address book of a mobile phone B, and if the Person identifier of Person C in a mobile phone cache is the same as the Person identifier of contact C3 in the mobile phone B terminal address book but the latest modification time is different, determining that the contact C of the mobile phone B is modified, and converting the contact C3 into Person C3 to be stored in the App preset address book; then finding that the Person identification of Person D in the App preset address book of the mobile phone B cannot be found in the terminal address book of the mobile phone B, if the contact Person D is considered to be deleted locally by the mobile phone B, converting the contact Person D into Person D and storing the Person D in the App preset address book; then comparing the cloud address book with a preset address book of the mobile phone App, and if no change is found, determining that the cloud contact person is not changed; and finally, synchronizing the locally modified contact of the mobile phone B at the cloud according to the App preset address book, namely modifying the contact C at the cloud into a contact C3, and then deleting the contact D at the cloud.
Then, under the condition that the mobile phone B completes the second synchronization of the terminal address book, assuming that the mobile phone a changes the terminal address book, deletes the contact B, modifies the contact C into the contact C2, and adds the contact E, the second synchronization process of the mobile phone a is as shown in fig. 4-4, where:
comparing the address book of the terminal of the mobile phone A with the preset address book of the App of the mobile phone A, and if the Person identifier of Person C in the preset address book of the mobile phone App is the same as the Person identifier of contact C2 in the terminal address book of the mobile phone A but the latest modification time is different, determining that the local contact C of the mobile phone is modified, firstly converting the contact C2 into the Person identifier C2 and storing the Person identifier in the preset address book of the App of the mobile phone A; then finding that the Person identification of Person B in the App preset address book of the mobile phone A cannot be found in the terminal address book of the mobile phone A, considering that the contact Person B is deleted locally by the mobile phone A, converting the contact Person B into Person B and storing the Person B in the App preset address book; then finding that the Person identification of the contact Person E in the terminal address book of the mobile phone A cannot be found in the App preset address book of the mobile phone A, if the contact Person E is considered to be newly added to the mobile phone A, converting the contact Person E into the Person identification E and storing the Person identification in the App preset address book;
then comparing the cloud address book with an App preset address book of the mobile phone A, and if the fact that the Person identifier of Person C in the App preset address book of the mobile phone A is the same as the Person identifier of contact C3 in the cloud address book but the latest modification time is different is found, determining that the contact C in the cloud address book is modified, and converting the contact C3 into the Person identifier C3 to be stored in the App preset address book; then finding that the Person identification of the Person D in the App preset address book cannot be found in the cloud address book, considering that the contact Person D is deleted from the cloud address book, converting the contact Person D into the Person D and storing the Person D in the App preset address book; then finding that the Person identifier of the contact Person F in the cloud address book cannot be found in the App preset address book, if the contact Person F is considered to be newly added to the cloud address book, converting the contact Person F into the Person identifier F and storing the Person identifier F in the App preset address book;
therefore, a Person E and a Person F can be newly added in an App preset address book of the mobile phone A, a contact Person E is newly added in a cloud address book, and a contact Person F is newly added in a terminal address book of the mobile phone; deleting Person B and Person D in App cache of the mobile phone A, deleting the contact Person B in the cloud, and deleting the contact Person D in an address list of the mobile phone terminal; and then comparing the modification time of the Person C2 with that of the Person C3, and if the modification time of the Person C2 is newer, modifying the Person C in the App preset address book into the Person C2, and modifying the contact C3 in the cloud address book into the contact C2, so that the synchronization is completed.
In the above scenario in which multiple mobile phones operate one address book, since each mobile phone is bound with the unique identifier of the address book when the user creates the address book, the cloud automatically finds the address book to be synchronized according to the unique identifier of the address book stored in the mobile phone to perform synchronization operation when the address book is subsequently synchronized again, so that synchronization of multiple mobile phones is realized, synchronization efficiency is improved, and user operation is simplified. In addition, different mobile phones can be bound with different address lists for synchronization, so that the address lists of the multiple mobile phones are not influenced by each other.
Corresponding to the embodiment of the method for synchronizing the terminal address book, the application also provides an embodiment of a synchronization device for the terminal address book.
Referring to fig. 5, which is a block diagram of an embodiment of a synchronization apparatus for a terminal address book of the present application, the apparatus 50 may include:
the acquiring unit 51 is configured to acquire all difference items if at least one difference item exists in a first difference item between a preset address book and a terminal address book and a second difference item between the preset address book and the cloud address book;
an updating unit 52, configured to update the preset address book according to all the obtained difference items to obtain a latest address book;
and the synchronizing unit 53 is configured to synchronize the terminal address book and the cloud address book to be the same as the latest address book.
As an embodiment, the apparatus further comprises:
the request unit 54 is configured to send a request to the cloud device corresponding to the terminal according to a pre-stored correspondence between the terminal and the cloud device and an address book identifier of a cloud address book corresponding to the terminal in the cloud device, so that the cloud device searches for and feeds back the cloud address book corresponding to the terminal according to the address book identifier carried in the request.
As an embodiment, the obtaining unit 51 is specifically configured to compare the contact information in the terminal address book with the contact information in the preset address book by using the identifier of the contact with the device in the contact information in the terminal address book as an index, and use the contact information with a difference as a first difference item; and comparing the contact person information in the cloud address book with the contact person information in the preset address book by taking the different equipment contact person identification in the contact person information in the cloud address book as an index, and taking the contact person information with difference as a second difference item.
As an embodiment, the updating unit 52 is configured to add different modification tags to the contact information according to the difference type of the contact information with differences, and update the preset address book according to the modification tags of the contact information in the difference item, where the modification tags include one or more of an additional tag, a deletion tag, or an update tag.
As an embodiment, the updating unit 52 is further configured to, when the address book is synchronized for the first time, add the first contact information and the second contact information to the latest address book if the first difference item and the second difference item exist and the name and the phone number in the first contact information in the first difference item and the second contact information in the second difference item are different; or under the condition that the names or the telephone numbers in the first contact information and the second contact information are different or the names and the numbers are the same, updating the contact information with the latest modification time in the first contact information and the second contact information into the latest address book; when the address book is not synchronized for the first time, under the condition that the first difference item and the second difference item exist, the first difference item and the second difference item are updated into the latest address book.
It can be seen from the above embodiments that, the address book can be preset through the cache and compared with the terminal address book and the cloud address book respectively to obtain the difference item, then the difference item is used for updating the preset address book to obtain the latest address book, and the terminal address book and the cloud address book are synchronized to be the same as the latest address book, so that when a user uses a plurality of terminals, the user can bind each terminal with the cloud equipment and synchronize the address book, one or more address books can be managed among a plurality of terminals of different platforms, the effect of data intercommunication is realized, and the management efficiency of the user on the address books of the terminals can be improved.
The implementation process of the functions and actions of each unit in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
Corresponding to the foregoing embodiments of the method for synchronizing a terminal address book, the present application further provides embodiments of a computer device for executing the method for synchronizing a terminal address book.
Referring to fig. 6, a computer device includes a processor 61, a communication interface 62, a memory 63, and a communication bus 64, as one embodiment;
the processor 61, the communication interface 62 and the memory 63 are in communication with each other through the communication bus 64;
the memory 63 is used for storing computer programs;
the processor 61 is configured to execute the computer program stored in the memory 63, and when the processor 61 executes the computer program, the step of implementing a synchronization method for any terminal address book is implemented.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the embodiment of the computer device, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to part of the description of the method embodiment.
Corresponding to the foregoing embodiments of the method for synchronizing a terminal address book, the present application further provides embodiments of a computer-readable storage medium for executing the method for synchronizing a terminal address book.
As an embodiment, the present application further includes a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the synchronization method for any of the terminal address books.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, the system embodiments and the computer-readable storage medium embodiments are substantially similar to the method embodiments, so that the description is simple, and reference may be made to some descriptions of the method embodiments for relevant points.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (10)

1. A method for synchronizing a terminal address book is characterized by comprising the following steps:
if at least one difference item exists in a first difference item between a preset address book and a terminal address book and a second difference item between the preset address book and the cloud address book, acquiring all the difference items;
updating the preset address list according to all the acquired difference items to obtain a latest address list;
and synchronizing the terminal address list and the cloud address list to be the same as the latest address list respectively.
2. The method of claim 1, further comprising:
according to the pre-stored corresponding relation between the terminal and the cloud equipment and the address book identification of the cloud address book corresponding to the terminal in the cloud equipment, sending a request to the cloud equipment corresponding to the terminal, so that the cloud equipment searches the cloud address book corresponding to the terminal according to the address book identification carried in the request and feeds back the cloud address book.
3. The method of claim 1,
acquiring a first difference item between the preset address book and the terminal address book, wherein the first difference item comprises the following steps:
comparing the contact person information in the terminal address book with the contact person information in the preset address book by taking the same equipment contact person identification in the contact person information of the terminal address book as an index, and taking the contact person information with difference as a first difference item;
acquiring a second difference item between the preset address book and the cloud address book, including:
and comparing the contact person information in the cloud address book with the contact person information in the preset address book by taking the different equipment contact person identification in the contact person information in the cloud address book as an index, and taking the contact person information with difference as a second difference item.
4. The method of claim 3, wherein updating the preset address book according to all the obtained difference items to obtain a latest address book comprises:
adding different modification labels to the contact information according to the difference type of the contact information with difference, and updating the preset address list according to the modification labels of the contact information in the difference item, wherein the modification labels comprise one or more of a newly added label, a deleted label or an updated label.
5. The method of claim 3, wherein updating the preset address book according to all the obtained difference items to obtain a latest address book comprises:
when the address book is synchronized for the first time, under the condition that the first difference item and the second difference item exist and the name and the phone number of the first contact information in the first difference item are different from those of the second contact information in the second difference item, adding the first contact information and the second contact information into the latest address book; or under the condition that the names or the telephone numbers in the first contact information and the second contact information are different or the names and the numbers are the same, updating the contact information with the latest modification time in the first contact information and the second contact information into the latest address book;
when the address book is not synchronized for the first time, under the condition that the first difference item and the second difference item exist, the first difference item and the second difference item are updated into the latest address book.
6. A synchronization device for a terminal address book is characterized in that the device comprises:
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring all difference items if at least one difference item exists in a first difference item between a preset address book and a terminal address book and a second difference item between the preset address book and the cloud address book;
the updating unit is used for updating the preset address list according to all the acquired difference items to obtain a latest address list;
and the synchronization unit is used for synchronizing the terminal address book and the cloud address book to be the same as the latest address book respectively.
7. The apparatus of claim 6, further comprising:
the request unit is used for sending a request to the cloud equipment corresponding to the terminal according to the corresponding relation between the terminal and the cloud equipment which is stored in advance and the address book identification of the cloud address book corresponding to the terminal in the cloud equipment, so that the cloud equipment searches the cloud address book corresponding to the terminal according to the address book identification carried in the request and feeds back the cloud address book.
8. The apparatus of claim 6,
the acquiring unit is specifically configured to compare the contact information in the terminal address book with the contact information in the preset address book by using the identifier of the contact of the same device in the contact information in the terminal address book as an index, and use the contact information with a difference as a first difference item; and comparing the contact person information in the cloud address book with the contact person information in the preset address book by taking the different equipment contact person identification in the contact person information in the cloud address book as an index, and taking the contact person information with difference as a second difference item.
9. The apparatus of claim 8,
the updating unit is used for adding different modification labels to the contact information according to the difference type of the contact information with difference, and updating the preset address book according to the modification labels of the contact information in the difference item, wherein the modification labels comprise one or more of a newly added label, a deleted label or an updated label.
10. The apparatus of claim 8,
the updating unit is further configured to, when the address book is synchronized for the first time, add the first contact information and the second contact information to the latest address book when the first difference item and the second difference item exist and names and phone numbers in the first contact information in the first difference item and the second contact information in the second difference item are different; or under the condition that the names or the telephone numbers in the first contact information and the second contact information are different or the names and the numbers are the same, updating the contact information with the latest modification time in the first contact information and the second contact information into the latest address book; when the address book is not synchronized for the first time, under the condition that the first difference item and the second difference item exist, the first difference item and the second difference item are updated into the latest address book.
CN201910411085.5A 2019-05-16 2019-05-16 Synchronization method and device for terminal address book Active CN111953722B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910411085.5A CN111953722B (en) 2019-05-16 2019-05-16 Synchronization method and device for terminal address book

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910411085.5A CN111953722B (en) 2019-05-16 2019-05-16 Synchronization method and device for terminal address book

Publications (2)

Publication Number Publication Date
CN111953722A true CN111953722A (en) 2020-11-17
CN111953722B CN111953722B (en) 2023-06-30

Family

ID=73336057

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910411085.5A Active CN111953722B (en) 2019-05-16 2019-05-16 Synchronization method and device for terminal address book

Country Status (1)

Country Link
CN (1) CN111953722B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114039987A (en) * 2021-11-05 2022-02-11 光大科技有限公司 Address book synchronization method, device, computer storage medium and electronic device

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104038537A (en) * 2014-05-27 2014-09-10 小米科技有限责任公司 Contact list information management method and device and mobile terminal
CN105530353A (en) * 2016-02-05 2016-04-27 冯泽 Mobile phone contact intelligent management method and system independent of mobile phone
CN105847336A (en) * 2016-03-18 2016-08-10 周奇 Address book synchronization method and device
CN105872168A (en) * 2015-11-09 2016-08-17 乐视致新电子科技(天津)有限公司 Address list update method and device
WO2016202074A1 (en) * 2015-06-15 2016-12-22 北京奇虎科技有限公司 Method and apparatus for setting state of contact in address book
WO2017080218A1 (en) * 2015-11-13 2017-05-18 乐视控股(北京)有限公司 Method and apparatus for synchronously updating contact information
WO2017202020A1 (en) * 2016-05-26 2017-11-30 乐视控股(北京)有限公司 Method and device for managing contact in contact list, and mobile terminal
CN107613024A (en) * 2017-10-31 2018-01-19 维沃移动通信有限公司 A kind of method of data synchronization and mobile terminal
CN107948220A (en) * 2016-10-12 2018-04-20 百度在线网络技术(北京)有限公司 The synchronous method and device of address list cloud service
CN108551515A (en) * 2018-03-29 2018-09-18 中国联合网络通信集团有限公司 Address book updating method and address list more new system
CN109379431A (en) * 2018-10-29 2019-02-22 上海爱优威软件开发有限公司 A kind of contact person information updating method, cloud server and terminal

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104038537A (en) * 2014-05-27 2014-09-10 小米科技有限责任公司 Contact list information management method and device and mobile terminal
WO2016202074A1 (en) * 2015-06-15 2016-12-22 北京奇虎科技有限公司 Method and apparatus for setting state of contact in address book
CN105872168A (en) * 2015-11-09 2016-08-17 乐视致新电子科技(天津)有限公司 Address list update method and device
WO2017080218A1 (en) * 2015-11-13 2017-05-18 乐视控股(北京)有限公司 Method and apparatus for synchronously updating contact information
CN105530353A (en) * 2016-02-05 2016-04-27 冯泽 Mobile phone contact intelligent management method and system independent of mobile phone
CN105847336A (en) * 2016-03-18 2016-08-10 周奇 Address book synchronization method and device
WO2017202020A1 (en) * 2016-05-26 2017-11-30 乐视控股(北京)有限公司 Method and device for managing contact in contact list, and mobile terminal
CN107948220A (en) * 2016-10-12 2018-04-20 百度在线网络技术(北京)有限公司 The synchronous method and device of address list cloud service
CN107613024A (en) * 2017-10-31 2018-01-19 维沃移动通信有限公司 A kind of method of data synchronization and mobile terminal
CN108551515A (en) * 2018-03-29 2018-09-18 中国联合网络通信集团有限公司 Address book updating method and address list more new system
CN109379431A (en) * 2018-10-29 2019-02-22 上海爱优威软件开发有限公司 A kind of contact person information updating method, cloud server and terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114039987A (en) * 2021-11-05 2022-02-11 光大科技有限公司 Address book synchronization method, device, computer storage medium and electronic device

Also Published As

Publication number Publication date
CN111953722B (en) 2023-06-30

Similar Documents

Publication Publication Date Title
CN109062489B (en) Message processing method, message processing device, storage medium and electronic device
CN108038114B (en) Path query method, terminal and computer readable storage medium
CN103119551B (en) The recovery optimized
CN103701913B (en) Data synchronization method and device
CN107733662B (en) Group recovery method and device
CN109361525B (en) Method, device, control terminal and medium for restarting distributed deployment of multiple services
CN103312489A (en) Method and device for synchronizing terminal and server
CN113301203B (en) Method and device for updating historical information data based on address book
CN106657433B (en) Naming method and device for physical network card in multi-network snap ring environment
CN109710609B (en) Method and device for generating data table identification
US11704629B2 (en) Methods and devices for processing information card
CN103701653A (en) Processing method for interface hot plugging and unplugging configuration data and network configuration server
CN109542841B (en) Method for creating data snapshot in cluster and terminal equipment
CN109246280B (en) Address book cloud processing method and device, computer equipment and readable storage medium
CN111953722B (en) Synchronization method and device for terminal address book
CN109391658B (en) Account data synchronization method and equipment, storage medium and terminal thereof
CN110798358B (en) Distributed service identification method and device, computer readable medium and electronic equipment
CN109325057B (en) Middleware management method, device, computer equipment and storage medium
CN102932513B (en) A kind of business card maintaining method, device and equipment
CN107770265B (en) A kind of method of data synchronization, data synchronization unit and mobile terminal
CN103870603A (en) Directory management method and electronic device
CN109274808B (en) Address book information management method and system, electronic equipment and storage medium
CN113905022A (en) Group chat construction method, equipment and storage medium
CN108763498B (en) User identity identification method and device, electronic equipment and readable storage medium
CN107332679B (en) Centerless information synchronization method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant