Embodiments relate to communications technologies, and in particular, to an application information sharing method and apparatus.
As network communications technologies and multimedia technologies develop, people use intelligent terminal devices such as a smart television, a smartphone, and a tablet computer more widely, and expect to share application information among different intelligent terminal devices, so as to implement multi-screen interaction among the different intelligent terminal devices.
In the prior art, when a user of a first terminal needs to share, with a second terminal, status information of an application in the terminal device, the user usually needs to determine, by searching, whether the application is installed in the second terminal. If the application is not installed, the user needs to manually add the application to the second terminal and then needs to further explore whether the application has a function of sharing the status information of the application. In a case in which the application can implement sharing of the status information of the application, the user manually starts, in the application, the function of sharing the status information of the application, so as to implement sharing, by the second terminal, the status information of the application in the first terminal.
However, an entire process of implementing sharing of status information of an application includes more steps that involve manual operations, which is cumbersome and time-consuming. In addition, after the application is added, the user further needs to explore whether the application has the function of sharing the status information of the application. If the application cannot implement the function of sharing the status information of the application, the second terminal cannot share the status information of the application in the first terminal. For example, if applications installed in the first terminal include Tencent Video Player and iQIYI Video Player, and applications installed in the second terminal also include Tencent Video Player and iQIYI Video Player, and if an application started in the first terminal is Tencent Video Player, the second terminal needs to remember that Tencent Video Player supports sharing, and starts Tencent Video Player, so as to share a shared file provided by the first terminal. In addition, versions of Tencent Video Player in the first terminal and the second terminal may be different, and therefore Tencent Video Player in the second terminal may have no capability of sharing a video; therefore, the method has a limitation.
Embodiments provide an application information sharing method and apparatus, so as to resolve a problem in the prior art that an entire process of implementing application information sharing includes more steps that involve manual operations, is cumbersome and time-consuming, and is limited to information sharing of a specific application.
According to a first aspect, an embodiment provides an application information sharing method, including receiving, by a second terminal by using Near Field Communication, application information sent by a first terminal, where the application information includes identification information of an application and status information of the application. The method also includes parsing, by the second terminal, the application information to obtain the identification information of the application and the status information of the application and performing, by the second terminal, a query on the second terminal according to the identification information of the application. Additionally, the method includes in a case in which it is found that the application is installed in the second terminal, synchronizing, by the second terminal according to the status information of the application, status information of the application in the second terminal with the status information of the application in the first terminal.
In a first possible implementation manner of the first aspect, the method further includes: in a case in which it is found that the application is not installed in the second terminal, installing, by the second terminal according to the identification information of the application, the application in the second terminal, and starting the application; and synchronizing, by the second terminal according to the status information of the application, status information of the application in the second terminal with the status information of the application in the first terminal.
According to the first aspect or the first possible implementation manner of the first aspect, in a second possible implementation manner, the synchronizing, by the second terminal according to the status information of the application, status information of the application in the second terminal with the status information of the application in the first terminal includes: synchronizing, by the second terminal according to the status information of the application, the status information of the application in the second terminal with the status information of the application in the first terminal in a manner of searching for a configuration file of the application and writing the status information of the application into the configuration file that is of the application and is found by the second terminal; or synchronizing, by the second terminal according to the status information of the application, the status information of the application in the second terminal with the status information of the application in the first terminal in a manner of writing the status information of the application into a database file of the second terminal.
According to the first aspect and either of the first and the second possible implementation manners of the first aspect, in a third possible implementation manner, the status information of the application is current running status information of the application.
According to the first aspect and any one of the first to the third possible implementation manners of the first aspect, in a fourth possible implementation manner, the identification information of the application is a name of the application, a serial number of the application, or a message digest algorithm md5 value of the application.
According to a second aspect, an embodiment provides an application information sharing method, including determining, by a first terminal on the first terminal, an application selected by a user from an application list of the first terminal and extracting, by the first terminal, identification information of the application and status information of the application according to the determined application. The method also includes sending, by the first terminal, application information to a second terminal by using Near Field Communication, where the application information includes the identification information of the application and the status information of the application, so that the second terminal determines, according to the identification information of the application, whether the application is installed in the second terminal, and in a case in which it is determined that the application is installed in the second terminal, the second terminal synchronizes, according to the status information of the application, status information of the application in the second terminal with the status information of the application in the first terminal.
In a first possible implementation manner of the second aspect, the extracting, by the first terminal, identification information of the application and status information of the application according to the determined application includes: extracting, by the first terminal, the identification information of the application and the status information of the application from a configuration file of the determined application or a database file.
According to the second aspect or the first possible implementation manner of the second aspect, in a second possible implementation manner, the status information of the application is current running status information of the application.
According to the second aspect, and either of the first and the second possible implementation manners of the second aspect, in a third possible implementation manner, the identification information of the application is a name of the application, a serial number of the application, or a message digest algorithm md5 value of the application.
According to a third aspect, an embodiment provides an application information sharing apparatus, including: a receiving module, configured to receive, by using Near Field Communication, application information sent by a first terminal, where the application information includes identification information of an application and status information of the application; a parsing module, configured to parse the application information to obtain the identification information of the application and the status information of the application; a querying module, configured to perform a query on the second terminal according to the identification information of the application; and a synchronizing module, configured to: in a case in which it is found that the application is installed in the second terminal, synchronize, according to the status information of the application, status information of the application in the second terminal with the status information of the application in the first terminal.
In a first possible implementation manner of the third aspect, the synchronizing module is further configured to: in a case in which it is found that the application is not installed in the second terminal, install the application in the second terminal according to the identification information of the application, and start the application; and synchronize, according to the status information of the application, the status information of the application in the second terminal with the status information of the application in the first terminal.
According to the third aspect or the first possible implementation manner of the third aspect, in a second possible implementation manner, the synchronizing module is specifically configured to synchronize, according to the status information of the application, the status information of the application in the second terminal with the status information of the application in the first terminal in a manner of searching for a configuration file of the application and writing the status information of the application into the configuration file that is of the application and is found by the second terminal; or specifically configured to synchronize, according to the status information of the application, the status information of the application in the second terminal with the status information of the application in the first terminal in a manner of writing the status information of the application into a database file of the second terminal.
According to a fourth aspect, an embodiment provides an application information sharing apparatus, including: a determining module, configured to determine, on a first terminal, an application selected by a user from an application list of the first terminal; an extracting module, configured to extract identification information of the application and status information of the application according to the determined application; and a sending module, configured to send application information to a second terminal by using Near Field Communication, where the application information includes the identification information of the application and the status information of the application, so that the second terminal determines, according to the identification information of the application, whether the application is installed in the second terminal, and in a case in which it is determined that the application is installed in the second terminal, the second terminal synchronizes, according to the status information of the application, status information of the application in the second terminal with the status information of the application in the first terminal.
In a first possible implementation manner of the fourth aspect, the extracting module is specifically configured to extract the identification information of the application and the status information of the application from a configuration file of the determined application or a database file.
According to a fifth aspect, an embodiment provides an application information sharing apparatus, including: a receiver, configured to receive, by using Near Field Communication, application information sent by a first terminal, where the application information includes identification information of an application and status information of the application; and a processor, configured to: parse the application information to obtain the identification information of the application and the status information of the application; perform a query on a second terminal according to the identification information of the application; and in a case in which it is found that the application is installed in the second terminal, synchronize, according to the status information of the application, status information of the application in the second terminal with the status information of the application in the first terminal.
In a first possible implementation manner of the fifth aspect, the processor is further configured to: in a case in which it is found that the application is not installed in the second terminal, install the application in the second terminal according to the identification information of the application, and start the application; and synchronize, according to the status information of the application, the status information of the application in the second terminal with the status information of the application in the first terminal.
According to the fifth aspect or the first possible implementation manner of the fifth aspect, in a second possible implementation manner, the processor is specifically configured to synchronize, according to the status information of the application, the status information of the application in the second terminal with the status information of the application in the first terminal in a manner of searching for a configuration file of the application and writing the status information of the application into the configuration file that is of the application and is found by the second terminal; or is specifically configured to synchronize, according to the status information of the application, the status information of the application in the second terminal with the status information of the application in the first terminal in a manner of writing the status information of the application into a database file of the second terminal.
According to a sixth aspect, an embodiment provides an application information sharing apparatus, including: a processor, configured to: determine, on a first terminal, an application selected by a user from an application list of the first terminal; and extract identification information of the application and status information of the application according to the determined application; and a transmitter, configured to send application information to a second terminal by using Near Field Communication, where the application information comprises the identification information of the application and the status information of the application, so that the second terminal determines, according to the identification information of the application, whether the application is installed in the second terminal, and in a case in which it is determined that the application is installed in the second terminal, the second terminal synchronizes, according to the status information of the application, status information of the application in the second terminal with the status information of the application in the first terminal.
In a first possible implementation manner of the sixth aspect, the processor is specifically configured to extract the identification information of the application and the status information of the application from a configuration file of the determined application or a database file.
According to the application information sharing method and apparatus provided in the embodiments, a second terminal receives, by using Near Field Communication, application information sent by a first terminal, parses the application information to obtain identification information of an application and status information of the application, performs a query on the second terminal according to the identification information of the application, and in a case in which it is found that the application is installed, synchronizes, according to the status information of the application, status information of the application in the second terminal with the status information of the application in the first terminal. Therefore, this resolves a problem in the prior art that an entire process of implementing application information sharing includes more steps that involve manual operations, is cumbersome and time-consuming, and has a limitation, thereby improving application information sharing efficiency.
To describe the technical solutions in the embodiments more clearly, the following briefly introduces the accompanying drawings required for describing the embodiments or the prior art. Apparently, the accompanying drawings in the following description show merely some embodiments, and persons of ordinary skill in the art may still derive other drawings from these accompanying drawings without creative efforts.
To make the objectives, technical solutions, and advantages of the embodiments clearer, the following clearly and completely describes the technical solutions in the embodiments with reference to the accompanying drawings in the embodiments. Apparently, the described embodiments are some but not all of the embodiments. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments without creative efforts shall fall within the protection scope.
110. The second terminal receives, by using Near Field Communication, application information sent by a first terminal, where the application information includes identification information of an application and status information of the application.
The identification information can uniquely identify an application, so that the second terminal finds the application according to the identification information.
120. The second terminal parses the application information to obtain the identification information of the application and the status information of the application.
130. The second terminal performs a query on the second terminal according to the identification information of the application.
In the prior art, manual search is conducted to determine whether the application is installed in the second terminal, and a manual operation wastes time and labor. In step 130 in this embodiment, the second terminal performs a query on the second terminal according to the identification information of the application, to determine whether the application is installed in the second terminal; therefore, a cumbersome process with a manual operation is reduced, which may reduce time required for sharing application information, and improve application information sharing efficiency.
Step 140. In a case in which it is found that the application is installed in the second terminal, the second terminal synchronizes, according to the status information of the application, status information of the application in the second terminal with the status information of the application in the first terminal.
In the prior art, after the application is manually found, whether the application has a function of sharing the application information needs to be further determined. The application information can be shared between terminals only in a case in which the application can implement application information sharing, and therefore the method has a limitation. In 140 in this embodiment, after it is determined that the application is installed in the second terminal, currently displayed information of the application in the second terminal may be adjusted according to the status information that is of the application and is obtained by parsing. Whether the application has a function of sharing the status information of the application does not need to be determined, and a case in which the second terminal cannot share the status information of the application because of different versions of the application installed in the first terminal and the second terminal does not exist. Therefore, unified management on application information sharing may be implemented. As long as some applications exist in the second terminal, sharing of application information of these applications may be implemented. For example, if two applications Address Book and Video Player exist in a sharing function list of the second terminal, and if the first terminal needs to share information about a contact A in Address Book, as long as Address Book is installed in the second terminal, the information about the contact A can be shared on the second terminal. The information about the contact A is shared without determining whether Address Book in the second terminal supports a sharing function. As long as the second terminal acquires the information about the contact A, the second terminal can synchronize, according to the acquired information about the contact A, status information of Address Book in the second terminal with status information of Address Book in the first terminal. For example, before synchronization, the second terminal cannot share the information about the contact A, and after adjustment, the status information of Address Book in the second terminal is the information about the contact A. Alternatively, if the first terminal needs to share a movie played in Video Player, as long as Video Player is installed in the second terminal, the movie can be shared in the second terminal. The movie is shared without determining whether Video Player in the second terminal supports a sharing function.
Specifically, the second terminal receives, by using Near Field Communication, the application information sent by the first terminal; parses the application information to obtain the identification information of the application and the status information of the application; performs a query on the second terminal according to the identification information of the application; and in a case in which it is found that the application is installed, synchronizes, according to the status information of the application, the status information of the application in the second terminal with the status information of the application in the first terminal.
According to the application information sharing method provided in this embodiment, a second terminal receives, by using Near Field Communication, application information sent by a first terminal; parses the application information to obtain identification information of an application and status information of the application; performs a query on the second terminal according to the identification information of the application; and in a case in which it is found that the application is installed, synchronizes, according to the status information of the application, status information of the application in the second terminal with the status information of the application in the first terminal. This resolves a problem in the prior art that an entire process of implementing application information sharing includes more steps that involve manual operations, is cumbersome and time-consuming, and has a limitation, thereby improving application information sharing efficiency.
210. A second terminal receives, by using Near Field Communication, application information sent by a first terminal, where the application information includes identification information of an application and status information of the application.
The status information of the application is current running status information of the application. For example, if the application is Notepad, the current running status information of the application is currently recorded text information of Notepad; if the application is Address Book, the current running status information of the application is current information about a contact; if the application is a browser, the current running status information of the application is current web page link information of the browser; if the application is a player, the current running status information of the application is a currently played file and play progress information of the file. The identification information of the application may be a name of the application, a serial number of the application, or a message digest algorithm 5 (md5) value of the application.
220. The second terminal parses the application information to obtain the identification information of the application and the status information of the application.
230. The second terminal performs a query on the second terminal according to the identification information of the application.
It should be noted that the second terminal performs a query in the second terminal according to the identification information of the application, so as to determine whether the application is installed in the second terminal, and in a case in which it is found that the application is installed in the second terminal, the second terminal synchronizes, according to the status information of the application, status information of the application in the second terminal with the status information of the application in the first terminal. In a case in which it is found that the application is not installed in the second terminal, 240 is performed.
240. The second terminal installs the application in the second terminal according to the identification information of the application and starts the application.
250. The second terminal synchronizes, according to the status information of the application, status information of the application in the second terminal with the status information of the application in the first terminal.
For example, that the second terminal synchronizes, according to the status information of the application, the status information of the application in the second terminal with the status information of the application in the first terminal may be implemented in the following manner:
The second terminal synchronizes, according to the status information of the application, the status information of the application in the second terminal with the status information of the application in the first terminal in a manner of searching for a configuration file of the application and writing the status information of the application into the configuration file that is of the application and is found by the second terminal; or the second terminal synchronizes, according to the status information of the application, the status information of the application in the second terminal with the status information of the application in the first terminal in a manner of writing the status information of the application into a database file of the second terminal.
According to the application information sharing method provided in this embodiment, a second terminal receives, by using Near Field Communication, application information sent by a first terminal; parses the application information to obtain identification information of an application and status information of the application; performs a query on the second terminal according to the identification information of the application; and in a case in which it is found that the application is not installed in the second terminal, installs the application in the second terminal according to the identification information of the application and starts the application. The second terminal synchronizes, according to the status information of the application, status information of the application in the second terminal with the status information of the application in the first terminal. Therefore, this resolves a problem in the prior art that an entire process of implementing application information sharing includes more steps that involve manual operations, is cumbersome and time-consuming, and has a limitation, thereby improving application information sharing efficiency.
310. A first terminal determines, on the first terminal, an application selected by a user from an application list of the first terminal.
320. The first terminal extracts identification information of the application and status information of the application according to the determined application.
330. The first terminal sends application information to a second terminal by using Near Field Communication, where the application information includes the identification information of the application and the status information of the application, so that the second terminal determines, according to the identification information of the application, whether the application is installed in the second terminal, and in a case in which it is determined that the application is installed in the second terminal, the second terminal synchronizes, according to the status information of the application, status information of the application in the second terminal with the status information of the application in the first terminal.
According to the application information sharing method provided in this embodiment, a first terminal determines, on the first terminal, an application selected by a user from an application list of the first terminal; extracts identification information of the application and status information of the application according to the determined application; sends application information to a second terminal by using Near Field Communication, so that the second terminal determines, according to the identification information of the application, whether the application is installed in the second terminal, and in a case in which it is determined that the application is installed in the second terminal, the second terminal synchronizes, according to the status information of the application, status information of the application in the second terminal with the status information of the application in the first terminal. Therefore, this resolves a problem in the prior aft that an entire process of implementing application information sharing includes more steps that involve manual operations, is cumbersome and time-consuming, and has a limitation, thereby improving application information sharing efficiency.
Further, on the basis of the foregoing Embodiment 3, that the first terminal extracts the identification information of the application and the status information of the application according to the determined application may be implemented in the following manner.
The first terminal extracts the identification information of the application and the status information of the application from a configuration file of the determined application or a database file.
Further, on the basis of the foregoing Embodiment 3, the status information of the application may be current running status information of the application.
Further, on the basis of the foregoing Embodiment 3, the identification information of the application may be a name of the application, a serial number of the application, or an md5 value of the application.
To introduce an application information sharing method provided in the foregoing embodiments in detail, the following respectively introduces a specific process of sharing application information with reference to
410. The first terminal extracts identification information of UC Browser and the URL information of the currently-browsed web page in UC Browser.
The URL information of the currently-browsed web page in UC Browser is status information that is of the application and is to be shared with the second terminal, and when necessary, position information of the currently-browsed web page may further be extracted. For example, when 30% of the web page is browsed, extracted position information of the currently-browsed web page is also used as the status information of the application for sharing with the second terminal.
420. The first terminal sends UC Browser information to the second terminal by using Near Field Communication, where the UC Browser information includes the identification information of UC Browser and the URL information of the currently-browsed web page in UC Browser.
430. The second terminal receives, by using Near Field Communication, the UC Browser information sent by the first terminal.
440. The second terminal parses the UC Browser information to obtain the identification information of UC Browser and the URL information of the currently-browsed web page in UC Browser.
450. The second terminal performs a query on the second terminal according to the identification information of UC Browser, so as to determine whether UC Browser is installed in the second terminal.
If it is determined that UC Browser is installed in the second terminal, 460 is performed; if it is determined that UC Browser is not installed in the second terminal, 470 is performed.
460. The second terminal synchronizes, according to the URL information that is of the current web page and is obtained by parsing, status information of UC Browser in the second terminal with the URL information of the current web page in UC Browser in the first terminal.
A process of 460 is shown in
470. The second terminal installs UC Browser in the second terminal according to the identification information and starts UC Browser.
480. The second terminal synchronizes, according to the URL information that is of the current web page and is obtained by parsing, status information of UC Browser in the second terminal with status information of UC Browser in the first terminal.
It should be noted that the status information of UC Browser in the second terminal is synchronized to the status information of UC Browser in the first terminal, that is, the status information of UC Browser in the second terminal is synchronized to the URL information that is of the currently-browsed web page in UC Browser and is sent by the first terminal.
A process of 480 is shown in
According to the application information sharing method provided in this embodiment, a second terminal receives, by using Near Field Communication, UC Browser information sent by a first terminal, where the UC Browser information includes identification information of UC Browser and URL information of a currently-browsed web page in UC Browser; parses the UC Browser information to obtain the identification information of UC Browser and the URL information of the currently-browsed web page in UC Browser; performs a query on the second terminal according to the identification information of UC Browser, so as to determine whether UC Browser is installed in the second terminal; and in a case in which it is found that UC Browser is installed in the second terminal, synchronizes, according to the identification information that is of UC Browser and is obtained by parsing, status information of UC Browser in the second terminal with the URL information of the current web page in UC Browser in the first terminal, or in a case in which it is found that UC Browser is not installed in the second terminal, installs UC Browser in the second terminal according to the identification information of UC Browser and starts UC Browser, and synchronizes, according to the identification information that is of UC Browser and is obtained by parsing, status information of UC Browser in the second terminal with the URL information of the current web page in UC Browser in the first terminal. Therefore, this resolves a problem in the prior art that an entire process of implementing application information sharing includes more steps that involve manual operations, is cumbersome and time-consuming, and has a limitation, thereby improving application information sharing efficiency.
510. The first terminal extracts identification information of Video Player and the New Year movie 1 played in Video Player.
The New Year movie 1 played in Video Player is the status information that is of the application and is to be shared with the second terminal, and if necessary, position information of the played New Year movie 1 may be further extracted. For example, the New Year movie 1 is played to the 22nd seconds of the 10th minute, which is represented as 10′22″, and the extracted position information of the New Year movie 1 is also used as the status information of the application for sharing with the second terminal.
520. The first terminal sends Video Player information to the second terminal by using Near Field Communication, where the Video Player information includes the identification information of Video Player and the New Year movie 1 played in Video Player.
530. The second terminal receives, by using Near Field Communication, the Video Player information sent by the first terminal.
540. The second terminal parses the Video Player information to obtain the identification information of Video Player and the New Year movie 1.
550. The second terminal performs a query on the second terminal according to the identification information of Video Player, so as to determine whether Video Player is installed in the second terminal.
If it is determined that Video Player is installed in the second terminal, 560 is performed; if it is determined that Video Player is not installed in the second terminal, 570 is performed.
560. The second terminal synchronizes, according to the New Year movie 1 that is currently played in Video Player and is obtained by parsing, status information of Video Player in the second terminal with the New Year movie 1 currently played in Video Player in the first terminal.
A process of 560 is shown in
570. The second terminal installs Video Player in the second terminal according to the identification information and starts Video Player.
580. The second terminal synchronizes, according to the New Year movie 1 that is currently played in Video Player and is obtained by parsing, status information of Video Player in the second terminal with the New Year movie 1 currently played in Video Player in the first terminal.
A process of 580 is shown in
According to the application information sharing method provided in this embodiment, a second terminal receives, by using Near Field Communication, information sent by a first terminal, where the information includes identification information of Video Player and information about a New Year movie 1 played in Video Player; parses the Video Player information, so as to obtain the identification information of Video Player and the information about the New Year movie 1; performs a query on the second terminal according to the identification information of Video Player; and in a case in which it is found that Video Player is installed in the second terminal, synchronizes, according to the identification information that is of Video Player and is obtained by parsing, status information of Video Player in the second terminal with the information about the New Year movie 1 played in Video Player in the first terminal, or in a case in which it is found that Video Player is not installed in the second terminal, installs Video Player according to the identification information of Video Player and starts Video Player, and synchronizes, according to the identification information that is of UC Browser and is obtained by parsing, according to the identification information that is of Video Player and is obtained by parsing, status information of Video Player in the second terminal with the information about the New Year movie 1 played in Video Player in the first terminal. Therefore, this resolves a problem in the prior art that an entire process of implementing application information sharing includes more steps that involve manual operations, is cumbersome and time-consuming, and has a limitation, thereby improving application information sharing efficiency.
610. The first terminal extracts identification information of Address Book and information about the contact C in Address Book.
The information about the contact C in Address Book is status information that is of the application and is to be shared with the second terminal, and contact information may be text, or may be exported information in a common contact versitcard format such as vcf and csv.
620. The first terminal sends the Address Book information to the second terminal by using Near Field Communication, where the Address Book information includes the identification information of Address Book and the information about the contact C in Address Book.
630. The second terminal receives, by using Near Field Communication, the Address Book information sent by the first terminal.
640. The second terminal parses the Address Book information to obtain the identification information of Address Book and the information about the contact C in Address Book.
650. The second terminal performs a query on the second terminal according to the identification information of Address Book, so as to determine whether Address Book is installed in the second terminal.
If it is determined that Address Book is installed in the second terminal, 660 is performed; otherwise, 670 is performed.
660. The second terminal synchronizes, according to the information that is about the contact C in Address Book and is obtained by parsing, status information of Address Book in the second terminal with the information about the contact C in Address Book in the first terminal.
A process of 660 is shown in
670. The second terminal installs Address Book in the second terminal according to the identification information and starts Address Book.
680. The second terminal synchronizes, according to the information that is about the contact C in Address Book and is obtained by parsing, status information of Address Book in the second terminal with the information about the contact C in Address Book in the first terminal.
According to the application information sharing method according to this embodiment, a second terminal receives, by using Near Field Communication, information sent by a first terminal, where the information includes identification information of Address Book and information about a current contact; parses the Address Book information to obtain the identification information of Address Book and the information about the contact C in Address Book; performs a query on the second terminal according to the identification information of Address Book, so as to determine whether Address Book is installed in the second terminal; and in a case in which it is found that Address Book is installed in the second terminal, synchronizes, according to the identification information that is of Address Book and is obtained by parsing, status information of Address Book in the second terminal with the information about the contact C in Address Book in the first terminal, or in a case in which it is found that Address Book is not installed in the second terminal, installs Address Book in the second terminal according to the identification information of Address Book and starts Address Book, and synchronizes, according to the identification information that is of Address Book and is obtained by parsing, status information of Address Book in the second terminal with the information about the contact C in Address Book in the first terminal. Therefore, this resolves a problem in the prior art that an entire process of implementing application information sharing includes more steps that involve manual operations, is cumbersome and time-consuming, and has a limitation, thereby improving application information sharing efficiency.
710. The first terminal extracts identification information of Notepad and the information about the current reminder 1 in Notepad.
The information about the current reminder 1 in Notepad is status information that is of the application and is to be shared with the second terminal.
720. The first terminal sends Notepad information to the second terminal by using Near Field Communication, where the Notepad information includes the identification information of Notepad and the information about the current reminder 1.
730. The second terminal receives, by using Near Field Communication, the Notepad information sent by the first terminal.
740. The second terminal parses the Notepad information to obtain the identification information of Notepad and the information about the current reminder 1.
750. The second terminal performs a query on the second terminal according to the identification information of Notepad, so as to determine whether Notepad is installed in the second terminal.
If it is determined that Notepad is installed in the second terminal, 760 is performed; otherwise, 770 is performed.
760. The second terminal synchronizes, according to the information that is about the current reminder 1 and is obtained by parsing, status information of Notepad in the second terminal with the information about the current reminder 1 in Notepad in the first terminal.
After Notepad information in the second terminal is synchronized, the status information of Notepad in the second terminal is the information about the current reminder 1.
A process of 760 is shown in
770. The second terminal installs Notepad in the second terminal according to the identification information and starts Notepad.
780. The second terminal synchronizes, according to the information that is about the current reminder 1 and is obtained by parsing, status information of Notepad in the second terminal with the information about the current reminder 1 in Notepad in the first terminal.
According to the application information sharing method provided in this embodiment, a second terminal receives, by using Near Field Communication, information sent by a first terminal, where the information includes identification information of Notepad and information about a current reminder 1; parses the Notepad information to obtain the identification information of Notepad and the information about the current reminder 1; performs a query on the second terminal according to the identification information of Notepad, so as to determine whether Notepad is installed in the second terminal; and in a case in which it is found that Notepad is installed in the second terminal, synchronizes, according to the identification information that is of Notepad and is obtained by parsing, status information of Notepad in the second terminal with the information about the current reminder 1 in Notepad in the first terminal, or in a case in which it is found that Notepad is not installed in the second terminal, installs Notepad in the second terminal according to the identification information of Notepad and starts Notepad, and synchronizes, according to the identification information that is of Notepad and is obtained by parsing, status information of Notepad in the second terminal with the information about the current reminder 1 in Notepad in the first terminal. Therefore, this resolves a problem in the prior art that an entire process of implementing application information sharing includes more steps that involve manual operations, is cumbersome and time-consuming, and has a limitation, thereby improving application information sharing efficiency. In addition, the method may support compatibility with applications provided by different vendors, thereby implementing application information sharing among the applications provided by different vendors.
The receiving module 810 is configured to receive, by using Near Field Communication, application information sent by a first terminal, where the application information includes identification information of an application and status information of the application; the parsing module 820 is configured to parse the application information to obtain the identification information of the application and the status information of the application; the querying module 830 is configured to perform a query on the second terminal according to the identification information of the application; and the synchronizing module 840 is configured to: in a case in which it is found that the application is installed in the second terminal, synchronize, according to the status information of the application, status information of the application in the second terminal with the status information of the application in the first terminal.
Further, the synchronizing module 840 is further configured to: in a case in which it is found that the application is not installed in the second terminal, install, according to the identification information of the application, the application in the second terminal, and start the application; and synchronize, according to the status information of the application, the status information of the application in the second terminal with the status information of the application in the first terminal.
Further, the synchronizing module 840 is specifically configured to synchronize, according to the status information of the application, the status information of the application in the second terminal with the status information of the application in the first terminal in a manner of searching for a configuration file of the application and writing the status information of the application into the configuration file that is of the application and is found by the second terminal; or specifically configured to synchronize, according to the status information of the application, the status information of the application in the second terminal with the status information of the application in the first terminal in a manner of writing the status information of the application into a database file of the second terminal.
According to the application information sharing apparatus provided in this embodiment, a second terminal receives, by using Near Field Communication, application information sent by a first terminal, parses the application information to obtain identification information of an application and status information of the application, performs a query on the second terminal according to the identification information of the application, and in a case in which it is found that the application is installed, synchronizes, according to the status information of the application, status information of the application in the second terminal with the status information of the application in the first terminal. Therefore, this resolves a problem in the prior art that an entire process of implementing application information sharing includes more steps that involve manual operations, is cumbersome and time-consuming, and has a limitation, thereby improving application information sharing efficiency.
The determining module 910 is configured to determine, on a first terminal, an application selected by a user from an application list of the first terminal; the extracting module 920 is configured to extract identification information of the application and status information of the application according to the determined application; and the sending module 930 is configured to send application information to a second terminal by using Near Field Communication, where the application information includes the identification information of the application and the status information of the application, so that the second terminal determines, according to the identification information of the application, whether the application is installed in the second terminal, and in a case in which it is determined that the application is installed in the second terminal, the second terminal synchronizes, according to the status information of the application, status information of the application in the second terminal with the status information of the application in the first terminal.
Further, the extracting module 920 is specifically configured to extract the identification information of the application and the status information of the application from a configuration file of the determined application or a database file.
According to the application information sharing apparatus provided in this embodiment, a first terminal determines, on the first terminal, an application selected by a user from an application list of the first terminal, extracts identification information of the application and status information of the application according to the determined application, sends application information to a second terminal by using Near Field Communication, so that the second terminal determines, according to the identification information of the application, whether the application is installed in the second terminal, and in a case in which it is determined that the application is installed in the second terminal, the second terminal synchronizes, according to the status information of the application, status information of the application in the second terminal with the status information of the application in the first terminal. Therefore, this resolves a problem in the prior aft that an entire process of implementing application information sharing includes more steps that involve manual operations, is cumbersome and time-consuming, and has a limitation, thereby improving application information sharing efficiency.
The receiver 1010 is configured to receive, by using Near Field Communication, application information sent by a first terminal, where the application information includes identification information of an application and status information of the application. The processor 1020 is configured to: parse the application information to obtain the identification information of the application and the status information of the application; perform a query on a second terminal according to the identification information of the application; and in a case in which it is found that the application is installed in the second terminal, synchronize, according to the status information of the application, status information of the application in the second terminal with the status information of the application in the first terminal.
Further, the processor 1020 is further configured to: in a case in which it is found that the application is not installed in the second terminal, install the application in the second terminal according to the identification information of the application, and start the application; and synchronize, according to the status information of the application, the status information of the application in the second terminal with the status information of the application in the first terminal.
Further, the processor 1020 is specifically configured to synchronize, according to the status information of the application, the status information of the application in the second terminal with the status information of the application in the first terminal in a manner of searching for a configuration file of the application and writing the status information of the application into the configuration file that is of the application and is found by the second terminal; or is specifically configured to synchronize, according to the status information of the application, the status information of the application in the second terminal with the status information of the application in the first terminal in a manner of writing the status information of the application into a database file of the second terminal.
According to the application information sharing apparatus provided in this embodiment, a second terminal receives, by using Near Field Communication, application information sent by a first terminal, parses the application information to obtain identification information of an application and status information of the application, performs a query on the second terminal according to the identification information of the application, and in a case in which it is found that the application is installed, synchronizes, according to the status information of the application, status information of the application in the second terminal with the status information of the application in the first terminal. Therefore, this solves a problem in the prior art that an entire process of implementing application information sharing includes more steps that involve manual operations, is cumbersome and time-consuming, and has a limitation, thereby improving application information sharing efficiency.
The processor 1110 is configured to: determine, on a first terminal, an application selected by a user from an application list of the first terminal; and extract identification information of the application and status information of the application according to the determined application. The transmitter 1120 is configured to send application information to a second terminal by using Near Field Communication, where the application information includes the identification information of the application and the status information of the application, so that the second terminal determines, according to the identification information of the application, whether the application is installed in the second terminal, and in a case in which it is determined that the application is installed in the second terminal, the second terminal synchronizes, according to the status information of the application, status information of the application in the second terminal with the status information of the application in the first terminal.
Further, the processor 1110 is specifically configured to extract the identification information of the application and the status information of the application from a configuration file of the determined application or a database file.
According to the application information sharing apparatus provided in this embodiment, a first terminal determines, on the first terminal, an application selected by a user from an application list of the first terminal, extracts identification information of the application and status information of the application according to the determined application, sends application information to a second terminal by using Near Field Communication, so that the second terminal determines, according to the identification information of the application, whether the application is installed in the second terminal, and in a case in which it is determined that the application is installed in the second terminal, the second terminal synchronizes, according to the status information of the application, status information of the application in the second terminal with the status information of the application in the first terminal. Therefore, this resolves a problem in the prior aft that an entire process of implementing application information sharing includes more steps that involve manual operations, is cumbersome and time-consuming, and has a limitation, thereby improving application information sharing efficiency.
Persons of ordinary skill in the art may understand that all or some of the steps of the method embodiments may be implemented by a program instructing relevant hardware. The program may be stored in a computer-readable storage medium. When the program runs, the steps of the method embodiments are performed. The foregoing storage medium includes: any medium that can store program code, such as a read only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disc.
Finally, it should be noted that the foregoing embodiments are merely intended for describing the technical solutions of embodiments, but not for limiting the embodiments. Although the embodiments are described in detail with reference to the foregoing embodiments, persons of ordinary skill in the art should understand that they may still make modifications to the technical solutions described in the foregoing embodiments or make equivalent replacements to some or all technical features thereof, without departing from the scope of the technical solutions of the embodiments.
This application is a continuation application of International Patent Application No. PCT/CN2014/075386, filed on Apr. 15, 2014, the disclosure of which is hereby incorporated by reference in its entirety.
Number | Name | Date | Kind |
---|---|---|---|
9244993 | Adoc, Jr. | Jan 2016 | B1 |
20030084439 | Perkins | May 2003 | A1 |
20030115302 | Teraoaka | Jun 2003 | A1 |
20060168574 | Giannini | Jul 2006 | A1 |
20080134211 | Cui | Jun 2008 | A1 |
20080320150 | Boehringer et al. | Dec 2008 | A1 |
20090007260 | Winje | Jan 2009 | A1 |
20100235518 | Holden | Sep 2010 | A1 |
20110119233 | Reddy | May 2011 | A1 |
20130014006 | Abellera | Jan 2013 | A1 |
20130066832 | Sheehan | Mar 2013 | A1 |
20130198304 | Jung | Aug 2013 | A1 |
20130318158 | Teng | Nov 2013 | A1 |
20140080469 | Ko et al. | Mar 2014 | A1 |
20140095625 | Quan | Apr 2014 | A1 |
20140289333 | Chan | Sep 2014 | A1 |
20150154224 | Cui | Jun 2015 | A1 |
20160007141 | Anantharangachar | Jan 2016 | A1 |
20160212188 | Yao | Jul 2016 | A1 |
Number | Date | Country |
---|---|---|
1638338 | Jul 2005 | CN |
101196912 | Jun 2008 | CN |
102546779 | Jul 2012 | CN |
102932439 | Feb 2013 | CN |
103118171 | May 2013 | CN |
103677257 | Mar 2014 | CN |
103716390 | Apr 2014 | CN |
2648427 | Oct 2013 | EP |
2648427 | Oct 2013 | EP |
2706767 | Mar 2014 | EP |
Number | Date | Country | |
---|---|---|---|
20170034264 A1 | Feb 2017 | US |
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2014/075386 | Apr 2014 | US |
Child | 15293456 | US |