Disclosure of Invention
The embodiment of the disclosure at least provides a data synchronization method and device.
In a first aspect, an embodiment of the present disclosure provides a data synchronization method, including:
acquiring first data generated by a first application program, wherein the first application program is a non-system built-in application program;
determining a second application program corresponding to the functional module according to the functional module which generates the first data in the first application program; the second application program is a system built-in application program;
writing the first data to the second application; the first data is used for indicating the second application program to push a notification message corresponding to the first data to a user when the trigger condition corresponding to the first data is met.
In a possible embodiment, after obtaining the first data generated by the first application program, the method further includes:
Formatting the first data according to a first data format, wherein the first data format is a data format of the data which the second application program allows to write;
the writing the first data to the second application program includes:
and writing the first data subjected to formatting into the second application program.
In a possible implementation manner, the determining, according to a function module that generates the first data in the first application program, a second application program corresponding to the function module includes:
determining at least one second application corresponding to the functional module that generated the first data;
selecting a target application program from the at least one second application program based on a selection instruction input by a user;
writing the first data to the second application program includes:
and writing the first data into the target application program.
In a possible embodiment, before writing the first data to the second application, the method further comprises:
detecting whether the first application program has a writing authority authorized by a user to write data into a system built-in application program;
And if so, writing the first data into the second application program.
In a possible embodiment, after writing the first data to the second application, the method further comprises:
acquiring identification information of application data; the application data is data generated in the second application program after the first data is written in the second application program;
and writing the identification information of the application data into the first application program.
In a possible implementation manner, after writing the identification information of the application data generated by the second application program according to the first data into the first application program, the method further includes:
acquiring second data generated by the second application program;
acquiring identification information of second data generated by the second application program;
and if the identification information written in the first application program is detected to comprise the identification information of the second data generated by the second application program, writing the second data generated by the second application program into the first application program.
In a possible implementation manner, if the detected writing of the identification information of the first application program includes the identification information of the second data generated by the second application program, writing the second data generated by the second application program into the first application program includes:
If the identification information written in the first application program is detected to comprise the identification information of the second data generated by the second application program, displaying synchronization request information, wherein the synchronization request information is used for indicating whether the second data of the second application program are synchronized to the first application program;
and after receiving a synchronization permission instruction input for the synchronization request information, writing the second data into the first application program.
In a possible embodiment, after determining the identification information of the second data generated by the second application program, the method further includes:
formatting the second data according to a second data format; the second data format is a data format of data which is allowed to be written by a non-system built-in application program.
In a possible implementation manner, the writing the second data generated by the second application program into the first application program includes:
and after detecting that the first application program is in a preset state, writing the second data into the first application program.
In a possible embodiment, the second application program includes an application program for providing a reminder service to the user based on time information and/or geographic location information.
In a second aspect, embodiments of the present disclosure provide another data synchronization method, including:
receiving first data generated by a first application program based on user operation, and determining at least one second application program corresponding to a functional module generating the first data; the first application program is a non-system built-in application program, and the second application program is a system built-in application program;
displaying first request information, wherein the first request information comprises identification information of at least one second application program used for synchronizing the first data;
determining a target second application program in at least one second application program based on the operation executed by the user according to the first request information; and writing the first data into the target second application program.
In a possible embodiment, the method further comprises:
receiving second data generated by a second target application program based on user operation;
displaying second request information, wherein the second request information is used for indicating whether the second data is synchronized to the first application program or not;
and after receiving a confirmation instruction input by a user based on the second request information, writing the second data into the first application program.
In a second aspect, an embodiment of the present disclosure further provides a data synchronization apparatus, including:
the system comprises an acquisition module, a storage module and a storage module, wherein the acquisition module is used for acquiring first data generated by a first application program, and the first application program is a non-system built-in application program;
the determining module is used for determining a second application program corresponding to the functional module according to the functional module which generates the first data in the first application program; the second application program is a system built-in application program;
a first writing module for writing the first data into the second application program; the first data is used for indicating the second application program to push a notification message corresponding to the first data to a user when the trigger condition corresponding to the first data is met.
In a possible implementation manner, the apparatus further comprises a formatting module, where the formatting module is configured to:
after first data generated by a first application program are acquired, formatting the first data according to a first data format, wherein the first data format is a data format of data which is allowed to be written by the second application program;
the first writing module, when writing the first data into the second application program, includes:
And writing the first data subjected to formatting into the second application program.
In a possible implementation manner, the determining module is configured to, when determining, according to a function module that generates the first data in the first application program, a second application program corresponding to the function module:
determining at least one second application corresponding to the functional module that generated the first data;
selecting a target application program from the at least one second application program based on a selection instruction input by a user;
the first writing module is used for writing the first data into the second application program:
and writing the first data into the target application program.
In a possible implementation manner, before writing the first data into the second application program, the first writing module is further configured to:
detecting whether the first application program has a writing authority authorized by a user to write data into a system built-in application program;
and if so, writing the first data into the second application program.
In a possible implementation manner, the first writing module is further configured to, after writing the first data to the second application program:
Acquiring identification information of application data; the application data is data generated in the second application program after the first data is written in the second application program;
and writing the identification information of the application data into the first application program.
In a possible implementation manner, after the second application program writes the identification information of the application data generated by the second application program according to the first data into the first application program, the first writing module is further configured to:
acquiring second data generated by the second application program;
acquiring identification information of second data generated by the second application program;
and if the identification information written in the first application program is detected to comprise the identification information of the second data generated by the second application program, writing the second data generated by the second application program into the first application program.
In a possible implementation manner, the first writing module is configured to, when detecting that the identification information written in the first application program includes the identification information of the second data generated by the second application program, write the second data generated by the second application program into the first application program:
If the identification information written in the first application program is detected to comprise the identification information of the second data generated by the second application program, displaying synchronization request information, wherein the synchronization request information is used for indicating whether the second data of the second application program are synchronized to the first application program;
and after receiving a synchronization permission instruction input for the synchronization request information, writing the second data into the first application program.
In a possible implementation manner, after determining the identification information of the second data generated by the second application program, the formatting module is further configured to:
formatting the second data according to a second data format; the second data format is a data format of data which is allowed to be written by a non-system built-in application program.
In a possible implementation manner, the first writing module is configured to, when writing the second data generated by the second application program into the first application program:
and after detecting that the first application program is in a preset state, writing the second data into the first application program.
In a possible embodiment, the second application program includes an application program for providing a reminder service to the user based on time information and/or geographic location information.
In a fourth aspect, an embodiment of the present disclosure provides another data synchronization apparatus, including:
a receiving module for receiving first data generated by a first application program based on user operation, and determining at least one second application program corresponding to a functional module generating the first data; the first application program is a non-system built-in application program, and the second application program is a system built-in application program;
the display module is used for displaying first request information, wherein the first request information comprises identification information of at least one second application program used for synchronizing the first data;
a second writing module, configured to determine a target second application program in at least one second application program based on an operation performed by the user according to the first request information; and writing the first data into the target second application program.
In a possible implementation manner, the receiving module is further configured to receive second data generated by a second target application program based on a user operation;
the display module is further configured to display second request information, where the second request information is used to indicate whether to synchronize the second data to the first application program;
The second writing module is further configured to write the second data into the first application program after receiving a confirmation instruction input by the user based on the second request information.
In a fourth aspect, embodiments of the present disclosure further provide a computer device, comprising: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory when the computer device is running, communicating over the bus, the machine-readable instructions when executed by the processor performing the steps of the first aspect, or any of the possible implementations of the first aspect, or the steps of the second aspect, or any of the possible implementations of the second aspect.
In a fifth aspect, the disclosed embodiments further provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the first aspect, or any of the possible implementations of the first aspect, or performs the steps of the second aspect, or any of the possible implementations of the second aspect.
According to the data synchronization method and device provided by the embodiment of the disclosure, first data generated by a non-system built-in application program can be written into the system built-in application program corresponding to the functional module for generating the first data, and when the triggering condition corresponding to the first data is met, a notification message corresponding to the first data is pushed to a user through the system built-in application program. By the method, the system built-in application program can be used for replacing the non-system built-in application program to push the notification message to the user, and because the priority of the system built-in application program for pushing the notification message to the user is higher, the notification message can still be pushed to the user under the condition that the triggering condition is met even if the system built-in application program is closed, the problem that the non-system built-in application program cannot push the notification message to the user after exiting is avoided, and therefore the notification message generated by the non-system built-in application program can be guaranteed to be pushed to the user in time.
The foregoing objects, features and advantages of the disclosure will be more readily apparent from the following detailed description of the preferred embodiments taken in conjunction with the accompanying drawings.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present disclosure more apparent, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure, and it is apparent that the described embodiments are only some embodiments of the present disclosure, but not all embodiments. The components of the embodiments of the present disclosure, which are generally described and illustrated in the figures herein, may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present disclosure provided in the accompanying drawings is not intended to limit the scope of the disclosure, as claimed, but is merely representative of selected embodiments of the disclosure. All other embodiments, which can be made by those skilled in the art based on the embodiments of this disclosure without making any inventive effort, are intended to be within the scope of this disclosure.
At present, for an application program which is not built in a system, if the application program which is not built in the system is closed, a notification cannot be pushed, so that the notification set by the application program which is not built in the system cannot reach a user in time.
In addition, when the non-system built-in application program sends the notification, the permission limit is generally set, for example, the application system does not allow the non-system built-in application program to push the notification too frequently, and when the system built-in application program and the non-system built-in application program send the notification at the same time, the priority of the notification sent by the system built-in application program is higher than that of the non-system built-in application program, which results in that part of the notification of the non-system built-in application system may not be pushed to the user in time.
Based on this, the present disclosure provides a data synchronization method, which can write first data generated by a non-system built-in application into a system built-in application corresponding to a functional module that generates the first data, and push a notification message corresponding to the first data to a user through the system built-in application when a trigger condition corresponding to the first data is satisfied. By the method, the system built-in application program can be used for replacing the non-system built-in application program to push the notification message to the user, and because the priority of the system built-in application program for pushing the notification message to the user is higher, the notification message can still be pushed to the user under the condition that the triggering condition is met even if the system built-in application program is closed, so that the problem that the non-system built-in application program cannot push the notification message to the user after exiting is avoided; in addition, the frequency of sending the notification by the application program built in the system is not limited by the system, so that the notification message generated by the application program built in the non-system can be pushed to the user in time.
The present invention is directed to a method for manufacturing a semiconductor device, and a semiconductor device manufactured by the method.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures.
For the sake of understanding the present embodiment, first, a detailed description will be given of a data synchronization method disclosed in the present embodiment, and an execution main body of the data synchronization method provided in the present embodiment is generally a computer device with a certain computing capability, where the computer device may be a User Equipment (UE), a mobile device, a User terminal, or the like. The systems described in embodiments of the present disclosure include, but are not limited to, android and IOS systems.
Referring to fig. 1, a flow chart of a data synchronization method provided by an embodiment of the disclosure includes the following steps:
step 101, obtaining first data generated by a first application program, wherein the first application program is a non-system built-in application program.
Step 102, determining a second application program corresponding to the functional module according to the functional module generating the first data in the first application program; the second application program is a system built-in application program.
Step 103, writing the first data into the second application program; the first data is used for indicating the second application program to push a notification message corresponding to the first data to a user when the trigger condition corresponding to the first data is met.
The following is a detailed description of steps 101 to 103.
The first application program is a non-system built-in application program, namely an application program which is subsequently installed in the system by a user. The first data generated by the first application program may be operation data generated by a user on some function modules of the first application program, for example, operation data generated by a user on operations such as creation, modification, deletion, and the like of log data in the first application program.
The second application system is a built-in application program of the system, and comprises an application program for providing reminding service for a user based on time information and/or geographic position information, and can be an alarm clock, a memo, a calendar, reminding items and the like.
The first data generated by the first application may be acquired by a data acquisition module deployed within the first application. The data acquisition module deployed in the first application program can monitor each functional module of the first application program, and when detecting that a user performs an operation on any functional module, the data acquisition module can acquire first data generated by the functional module.
In consideration of the difference of data formats between the first application program and the second application program, after the first data generated by the first application program is acquired, the first data may be formatted according to the first data format, where the first data format is a data format of the data allowed to be written by the second application program, and the operation module for performing the formatting processing on the first data may be an operation module deployed in the first application program.
In one possible implementation manner, when determining at least one second application data corresponding to a function module that generates first data according to a function module that generates first data in a first application program, a correspondence relationship between different function modules of the first application program and the second application program may be pre-established, and stored, then after detecting that any function module in the first application program generates first data, whether the function module that generates the first data has a corresponding second application program may be determined according to the stored correspondence relationship, and if the function module that generates the first data does not have a corresponding second application program, step 103 is not executed.
The second application program corresponding to the functional module of the first application program can be multiple. After determining at least one second application corresponding to the functional module that generates the first data, identification information of the at least one second application may be presented to the user, and the user may select whether to synchronize data in the first application to a system built-in application and to which system built-in application, i.e., to which second application, based on the presented identification information.
For example, if the second application corresponding to the functional module in the first application includes APP1 and APP2, the user interface may be as shown in fig. 2 when determining the second application corresponding to the functional module.
After receiving the selection instruction input by the user, the target application program may be selected from the at least one second application program according to the selection instruction input by the user, and then the first data may be written into the selected target application program.
In order to save data processing resources, in another example of the present disclosure, it may be further determined whether the functional module generating the first data has a corresponding second application, and when it is determined that the functional module generating the first data has a corresponding second application, the first data is formatted according to the first data format.
When the first data is written into the second application program, the first data after the formatting process may be written into the second application program.
In addition, in order to ensure the security of the system data, before the first data is written into the second application program, whether the first application program has the writing authority authorized by the user to write the data into the application program in the system can be detected, and if so, the first data is written into the second application program.
Specifically, when detecting whether the first application program has the writing authority of writing data into the system built-in application program authorized by the user, whether the first application program requests to acquire the writing authority or not can be detected first, if the first application program does not request to acquire the writing authority to the user, the first application program is indicated to not request to acquire the writing authority if the first application program does not acquire the writing authority, and a popup request for acquiring the writing authority can be initiated to the user at the moment so as to request to acquire the user authorization; if the judgment result is yes, the first application program is informed to acquire the writing permission from the user, at the moment, whether the user allows the writing permission or not can be judged, if the judgment result is yes, the first data is directly written into the second application program, and if the judgment result is no, the first data is not written into the second application program.
If it is detected that the first application program has the writing authority authorized by the user to write data into the system built-in program, the operation module for formatting the first data is deployed in the first application program, so that the consistency of the data format is ensured, and the data distribution module deployed in the system can also detect whether the data format of the first data written into the second application program meets the format requirement of the second application program.
After the first data is written into the second application, identification information of application data, which is data generated in the second application after the first data is written into the second application, may also be acquired, and then the acquired identification information of the application data is written into the first application.
For example, if the user sets an alarm clock of 9:00 am in the first application program through the function module a of the first application program, after detecting the first data generated by the function module a of the first application program, the first data may be formatted, then after determining that the first application program obtains the write permission of writing data to the application program built in the system, the formatted first data is written into the alarm clock program built in the system, and then an alarm clock of 9:00 am is set in the alarm clock program built in the system, so that the user is reminded through the alarm clock program built in the system at 9:00 am, and meanwhile, the data identification information (for example, may be the alarm clock a) of the alarm clock of 9:00 am in the alarm clock program is written into the first application program.
In one possible embodiment, after the first data of the first application program is written into the second application program, when the notification message corresponding to the first data is pushed to the user, the notification message may be pushed to the user only through the second application program, or the notification message may be pushed to the user through both the first application program and the second application program.
In another embodiment of the present application, after writing the data identification information into the first application program, the second data generated by the second application program may be further obtained, and the second data identification information of the second data generated by the second application program may be determined; and if the identification information written in the first application program is detected to comprise the identification information of the second data generated by the second application program, the second data is written in the first application program.
For example, continuing the above example, if after writing the first data of the first application program into the second application program, an alarm clock of 9:00 am is set in the alarm clock program built in the system, if the user adjusts the alarm clock of 9:00 am to 9:30 am in the alarm clock program built in the system, after detecting the second data generated by the user adjusting the alarm clock, detecting whether the first identification information written into the first program includes the identification information of the second data or not, and if so, writing the second data into the first application program.
In practical application, the first application program can write a plurality of pieces of first data into the second application program, and different pieces of first data are different in identification information of application data generated in the second application program after being written into the second application program, so that after second data identification information of the second data generated by the second application program is acquired, the identification information written into the first application program only needs to include the second data identification information.
If the second identification information of the second data generated by the second application program is inconsistent with the first data identification information written into the first application program, this indicates that the second data is not generated by the first application program for the first data written into the second application program, in which case the generated second data may not be written into the first application program.
For example, if the alarm clock 1 in the alarm clock program built in the system is generated after the first data of the first application program is written into the second application program, and the alarm clock 2 and the alarm clock 3 are set by the user directly in the alarm clock program built in the system, the second data generated by the user aiming at the alarm clock 1 can be written into the first application program, and the second data generated by the user aiming at the alarm clock 2 and the alarm clock 3 does not need to be written into the first application program.
In one possible implementation manner, after the second data generated by the second application program is acquired, the second data format may be further formatted according to a second data format, where the second data format is a data format of data that is allowed to be written by the non-system built-in application program.
In addition, when the second data is written into the first application program, the state of the first application program can be detected first, and when the first application program is detected to be in the preset state, the second data is written into the first application program.
The state of the first application program may include startup, and non-startup, and the second data is written into the first application program when the state of the first application program is detected to be startup (i.e., the preset state is startup).
The solution provided by the present disclosure may be performed by different modules, and the modules performing each step of the solution and the deployment positions of each module will be described below, and referring to fig. 3, a schematic diagram of a deployment position of a module provided by the present disclosure is provided, where the schematic diagram includes a data acquisition module, a data transmission module, and a data distribution module, where the data acquisition module, the data transmission module are deployed in a first application program, and the data distribution module is deployed in a system.
The data acquisition module is used for acquiring first data after detecting that the first application program generates the first data; determining identification information of a second application program corresponding to a functional module generating the first data in the first application program; transmitting the first data and the identification information to a data distribution module through a data transmission module;
the data distribution module is used for writing the received first data into a second application program corresponding to the identification information.
In the process of writing the first data generated by the first application program into the second application program, the formatting processing of the first data is executed by the data acquisition module, the authority verification of the first application program is executed by the data transmission module, and the process of writing the first data into the second application program is executed by the data distribution module.
In addition, after the first data is written into the second application program, the method provided by the disclosure can synchronize the data on the equipment which logs in the same system account with the equipment executing the method through the account information of the system, so that the cross-equipment data synchronization is realized.
For example, if the first application program and the second application program are both installed on the mobile phone, after the first data is written into the second application program, the application program corresponding to the second application program on the tablet computer that logs in the same account information with the mobile phone may also write the same first data.
In addition, the embodiment of the present disclosure further provides another data synchronization method, referring to fig. 4, which is a schematic flow chart of the another data synchronization method provided by the embodiment of the present disclosure, including the following steps:
step 401, receiving first data generated by a first application program based on user operation, and determining at least one second application program corresponding to a functional module generating the first data; the first application program is a non-system built-in application program, and the second application program is a system built-in application program.
The corresponding relation between the functional module of the first data and the second application program can be pre-established, and after the first data is received, at least one second application program corresponding to the functional module can be searched according to the functional module generating the first data and the pre-stored corresponding relation.
Step 402, displaying first request information, wherein the first request information comprises identification information of at least one second application program for synchronizing the first data.
The user interface for displaying the first request information may be as shown in fig. 2.
Step 403, determining a target second application program in at least one second application program based on the operation performed by the user according to the first request information; and writing the first data into the target second application program.
The user can select according to the first request information, and the target second application program can be determined from at least one second application program according to a selection instruction input by the user.
In addition, after the first data is written into the target second application program, the second data generated by the second target application program based on the user operation can be received, and then second request information is displayed, wherein the second request information is used for indicating whether the second data is synchronized to the first application program, and after a confirmation instruction based on the second request information data is received, the second data is written into the first application program.
In the method, the first data generated by the non-system built-in application program can be written into the system built-in application program corresponding to the functional module for generating the first data, and when the triggering condition corresponding to the first data is met, the notification message corresponding to the first data is pushed to the user through the system built-in application program.
For example, if a user sets a reminder in an application program built in a non-system, the reminder may not be sent after the application program built in the non-system is closed, and based on the method, application data corresponding to the reminder may be synchronized to an alarm clock built in the system, and even after each application program is closed, the alarm clock built in the system may send a reminder to the user within a set time, thereby ensuring timeliness of a notification message.
Because the priority of the application program in the system for pushing the notification message to the user is higher, the notification message can still be pushed to the user under the condition that the trigger condition is met even if the application program in the system is closed, and the problem that the non-system built-in application program cannot push the notification message to the user after exiting is avoided, so that the notification message generated by the non-system built-in application program can be pushed to the user in time.
It will be appreciated by those skilled in the art that in the above-described method of the specific embodiments, the written order of steps is not meant to imply a strict order of execution but rather should be construed according to the function and possibly inherent logic of the steps.
Based on the same inventive concept, the embodiments of the present disclosure further provide a data synchronization device corresponding to the data synchronization method, and since the principle of solving the problem by the device in the embodiments of the present disclosure is similar to that of the data synchronization method in the embodiments of the present disclosure, the implementation of the device may refer to the implementation of the method, and the repetition is omitted.
Referring to fig. 5, an architecture diagram of a data synchronization device according to an embodiment of the disclosure is shown, where the device includes: an acquisition module 501, a determination module 502, a first writing module 503, and a formatting module 504; in particular, the method comprises the steps of,
an obtaining module 501, configured to obtain first data generated by a first application, where the first application is a non-system built-in application;
a determining module 502, configured to determine, according to a function module that generates the first data in the first application program, a second application program corresponding to the function module; the second application program is a system built-in application program;
a first writing module 503, configured to write the first data to the second application program; the first data is used for indicating the second application program to push a notification message corresponding to the first data to a user when the trigger condition corresponding to the first data is met.
In a possible implementation manner, the apparatus further includes a formatting module 504, where the formatting module 504 is configured to:
after first data generated by a first application program are acquired, formatting the first data according to a first data format, wherein the first data format is a data format of data which is allowed to be written by the second application program;
the first writing module 503, when writing the first data into the second application program, includes:
and writing the first data subjected to formatting into the second application program.
In a possible implementation manner, the determining module 502 is configured to, when determining, according to a function module that generates the first data in the first application, a second application corresponding to the function module:
determining at least one second application corresponding to the functional module that generated the first data;
selecting a target application program from the at least one second application program based on a selection instruction input by a user;
the first writing module 503 is configured to, when writing the first data into the second application program:
and writing the first data into the target application program.
In a possible implementation manner, before writing the first data to the second application program, the first writing module 503 is further configured to:
detecting whether the first application program has a writing authority authorized by a user to write data into a system built-in application program;
and if so, writing the first data into the second application program.
In a possible implementation manner, the first writing module 503 is further configured to, after writing the first data into the second application program:
acquiring identification information of application data; the application data is data generated in the second application program after the first data is written in the second application program;
and writing the identification information of the application data into the first application program.
In a possible implementation manner, after writing the identification information of the application data generated by the second application program according to the first data into the first application program, the first writing module 503 is further configured to:
acquiring second data generated by the second application program;
acquiring identification information of second data generated by the second application program;
and if the identification information written in the first application program is detected to comprise the identification information of the second data generated by the second application program, writing the second data generated by the second application program into the first application program.
In a possible implementation manner, the first writing module 503 is configured to, when detecting that the identification information written in the first application program includes the identification information of the second data generated by the second application program, write the second data generated by the second application program into the first application program:
if the identification information written in the first application program is detected to comprise the identification information of the second data generated by the second application program, displaying synchronization request information, wherein the synchronization request information is used for indicating whether the second data of the second application program are synchronized to the first application program;
and after receiving a synchronization permission instruction input for the synchronization request information, writing the second data into the first application program.
In a possible implementation manner, after determining the identification information of the second data generated by the second application program, the formatting module 504 is further configured to:
formatting the second data according to a second data format; the second data format is a data format of data which is allowed to be written by a non-system built-in application program.
In a possible implementation manner, the first writing module 503 is configured to, when writing the second data generated by the second application program into the first application program:
And after detecting that the first application program is in a preset state, writing the second data into the first application program.
In a possible embodiment, the second application program includes an application program for providing a reminder service to the user based on time information and/or geographic location information.
Referring to fig. 6, an architecture diagram of a data synchronization device according to an embodiment of the disclosure is shown, where the device includes: the receiving module 601, the presenting module 602 and the second writing module 603, in particular,
a receiving module 601, configured to receive first data generated by a first application program based on a user operation, and determine at least one second application program corresponding to a functional module that generates the first data; the first application program is a non-system built-in application program, and the second application program is a system built-in application program;
a display module 602, configured to display first request information, where the first request information includes identification information of at least one second application program used for synchronizing the first data;
a second writing module 603, configured to determine a target second application program in at least one second application program based on an operation performed by the user according to the first request information; and writing the first data into the target second application program.
In a possible implementation manner, the receiving module 601 is further configured to receive second data generated by a second target application program based on a user operation;
the display module 602 is further configured to display second request information, where the second request information is used to indicate whether to synchronize the second data to the first application program;
the second writing module 603 is further configured to write the second data into the first application program after receiving a confirmation instruction input by the user based on the second request information.
The process flow of each module in the apparatus and the interaction flow between the modules may be described with reference to the related descriptions in the above method embodiments, which are not described in detail herein.
Based on the same technical concept, the embodiment of the application also provides electronic equipment. Referring to fig. 7, a schematic structural diagram of an electronic device 700 according to an embodiment of the present application includes a processor 701, a memory 702, and a bus 703. The memory 702 is configured to store execution instructions, including a memory 7021 and an external memory 7022; the memory 7021 is also referred to as an internal memory, and is used for temporarily storing operation data in the processor 701 and data exchanged with the external memory 7022 such as a hard disk, and the processor 701 exchanges data with the external memory 7022 through the memory 7021, and when the electronic device 700 is operated, the processor 701 and the memory 702 communicate through the bus 703, so that the processor 701 executes the following instructions:
Acquiring first data generated by a first application program, wherein the first application program is a non-system built-in application program;
determining a second application program corresponding to the functional module according to the functional module which generates the first data in the first application program; the second application program is a system built-in application program;
writing the first data to the second application; the first data is used for indicating the second application program to push a notification message corresponding to the first data to a user when the trigger condition corresponding to the first data is met.
In a possible implementation manner, in the instructions executed by the processor 701, after obtaining the first data generated by the first application program, the method further includes:
formatting the first data according to a first data format, wherein the first data format is a data format of the data which the second application program allows to write;
the writing the first data to the second application program includes:
and writing the first data subjected to formatting into the second application program.
In a possible implementation manner, in the instructions executed by the processor 701, the determining, according to a functional module that generates the first data in the first application program, a second application program corresponding to the functional module includes:
Determining at least one second application corresponding to the functional module that generated the first data;
selecting a target application program from the at least one second application program based on a selection instruction input by a user;
writing the first data to the second application program includes:
and writing the first data into the target application program.
In a possible implementation manner, in an instruction executed by the processor 701, before writing the first data into the second application program, the method further includes:
detecting whether the first application program has a writing authority authorized by a user to write data into a system built-in application program;
and if so, writing the first data into the second application program.
In a possible implementation manner, in an instruction executed by the processor 701, after writing the first data into the second application program, the method further includes:
acquiring identification information of application data; the application data is data generated in the second application program after the first data is written in the second application program;
and writing the identification information of the application data into the first application program.
In a possible implementation manner, after the identification information of the application data generated by the second application program according to the first data is written into the first application program in the instructions executed by the processor 701, the method further includes:
acquiring second data generated by the second application program;
acquiring identification information of second data generated by the second application program;
and if the identification information written in the first application program is detected to comprise the identification information of the second data generated by the second application program, writing the second data generated by the second application program into the first application program.
In a possible implementation manner, in the instructions executed by the processor 701, if it is detected that the identification information written in the first application program includes identification information of second data generated by the second application program, writing the second data generated by the second application program into the first application program includes:
if the identification information written in the first application program is detected to comprise the identification information of the second data generated by the second application program, displaying synchronization request information, wherein the synchronization request information is used for indicating whether the second data of the second application program are synchronized to the first application program;
And after receiving a synchronization permission instruction input for the synchronization request information, writing the second data into the first application program.
In a possible implementation manner, in the instructions executed by the processor 701, after determining the identification information of the second data generated by the second application program, the method further includes:
formatting the second data according to a second data format; the second data format is a data format of data which is allowed to be written by a non-system built-in application program.
In a possible implementation manner, in the instructions executed by the processor 701, the writing the second data generated by the second application program into the first application program includes:
and after detecting that the first application program is in a preset state, writing the second data into the first application program.
In a possible implementation manner, the second application program includes an application program for providing a reminder service for the user based on time information and/or geographic location information in the instructions executed by the processor 701.
Based on the same technical concept, the embodiment of the application also provides electronic equipment. Referring to fig. 8, a schematic structural diagram of an electronic device 800 according to an embodiment of the present application includes a processor 801, a memory 802, and a bus 803. The memory 802 is used for storing execution instructions, including a memory 8021 and an external memory 8022; the memory 8021 is also referred to as an internal memory, and is used for temporarily storing operation data in the processor 801 and data exchanged with an external memory 8022 such as a hard disk, and the processor 801 exchanges data with the external memory 8022 through the memory 8021, and when the electronic device 800 operates, the processor 801 and the memory 802 communicate with each other through the bus 803, so that the processor 801 executes the following instructions:
Receiving first data generated by a first application program based on user operation, and determining at least one second application program corresponding to a functional module generating the first data; the first application program is a non-system built-in application program, and the second application program is a system built-in application program;
displaying first request information, wherein the first request information comprises identification information of at least one second application program used for synchronizing the first data;
determining a target second application program in at least one second application program based on the operation executed by the user according to the first request information; and writing the first data into the target second application program.
In a possible implementation manner, the instructions executed by the processor 801 further include:
receiving second data generated by a second target application program based on user operation;
displaying second request information, wherein the second request information is used for indicating whether the second data is synchronized to the first application program or not;
and after receiving a confirmation instruction input by a user based on the second request information, writing the second data into the first application program.
The disclosed embodiments also provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the data synchronization method described in the method embodiments above. Wherein the storage medium may be a volatile or nonvolatile computer readable storage medium.
The computer program product of the data synchronization method provided in the embodiments of the present disclosure includes a computer readable storage medium storing program code, where the program code includes instructions for executing the steps of the data synchronization method described in the foregoing method embodiments, and specific reference may be made to the foregoing method embodiments, which are not repeated herein.
The disclosed embodiments also provide a computer program which, when executed by a processor, implements any of the methods of the previous embodiments. The computer program product may be realized in particular by means of hardware, software or a combination thereof. In an alternative embodiment, the computer program product is embodied as a computer storage medium, and in another alternative embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK), or the like.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described system and apparatus may refer to corresponding procedures in the foregoing method embodiments, which are not described herein again. In the several embodiments provided in the present disclosure, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. The above-described apparatus embodiments are merely illustrative, for example, the division of the units is merely a logical function division, and there may be other manners of division in actual implementation, and for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some communication interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown 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 units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present disclosure may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer readable storage medium executable by a processor. Based on such understanding, the technical solution of the present disclosure may be embodied in essence or a part contributing to the prior art or a part of the technical solution, or in the form of a software product stored in a storage medium, including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in the embodiments of the present disclosure. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Finally, it should be noted that: the foregoing examples are merely specific embodiments of the present disclosure, and are not intended to limit the scope of the disclosure, but the present disclosure is not limited thereto, and those skilled in the art will appreciate that while the foregoing examples are described in detail, it is not limited to the disclosure: any person skilled in the art, within the technical scope of the disclosure of the present disclosure, may modify or easily conceive changes to the technical solutions described in the foregoing embodiments, or make equivalent substitutions for some of the technical features thereof; such modifications, changes or substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the disclosure, and are intended to be included within the scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.