CN104794008B - Application program synchronization method, device and system - Google Patents

Application program synchronization method, device and system Download PDF

Info

Publication number
CN104794008B
CN104794008B CN201510209635.7A CN201510209635A CN104794008B CN 104794008 B CN104794008 B CN 104794008B CN 201510209635 A CN201510209635 A CN 201510209635A CN 104794008 B CN104794008 B CN 104794008B
Authority
CN
China
Prior art keywords
application program
application
synchronized
terminal device
synchronization
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510209635.7A
Other languages
Chinese (zh)
Other versions
CN104794008A (en
Inventor
刘洋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Digital Tianyu Science & Technology Co ltd
Original Assignee
Beijing Digital Tianyu Science & Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Digital Tianyu Science & Technology Co ltd filed Critical Beijing Digital Tianyu Science & Technology Co ltd
Priority to CN201510209635.7A priority Critical patent/CN104794008B/en
Publication of CN104794008A publication Critical patent/CN104794008A/en
Application granted granted Critical
Publication of CN104794008B publication Critical patent/CN104794008B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Telephone Function (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The application discloses a method for synchronizing applications, comprising: acquiring at least one application program displayed on a screen; reading state parameters and content information of an application interface displayed on a screen by the application program; generating synchronization data for the application; sending the synchronous data to at least one terminal device to be synchronized; wherein, the synchronous data comprises the state parameter and the content information of the application program; the state parameters comprise related parameters for positioning the application program in the application interface; the content information comprises the related content of the application program in the application interface; the application program may generate the application interface by loading the state parameters and the content information. The method can synchronize the application interface of the application program displayed on the screen of the source terminal device to the screen of one or more terminal devices to be synchronized, has simple realization mode and provides convenience for users.

Description

Application program synchronization method, device and system
Technical Field
The application relates to the field of application programs, in particular to a method for synchronizing application programs, which specifically comprises a method for synchronizing application programs, a method for realizing application program synchronization on terminal equipment to be synchronized, and a method for synchronizing application programs. The application also relates to a device for synchronizing the application programs, a device for realizing the application program synchronization on the terminal equipment to be synchronized, a device for synchronizing the application programs and a system for synchronizing the application programs.
Background
With the rapid development of the electronic field and the information technology, the popularity of the terminal device in the daily life of the user is higher and higher, and the types of the terminal device are richer and richer, such as a personal computer, a smart phone, a tablet computer, a wearable device, a smart television and the like. The terminal equipment can meet the requirements of users in various aspects according to different positioning, and convenience is provided for the users. However, with the variety of terminal devices held by users being rich, in the use of daily life of users, the problem that the application program cannot be synchronized among the terminal devices is often encountered, for example, the user needs to browse photos or videos displayed on a mobile phone on a smart television, or the user needs to synchronize the document being edited on a PC into a tablet computer for editing.
In the currently disclosed method for synchronizing application programs, an application provider provides corresponding clients of application programs to users for different application platforms, and after the users install the corresponding clients of the application programs on different application platforms, based on an interface provided by the application programs, connections are established between the application programs installed on different application platforms, so as to implement synchronization between the application programs installed on different application platforms, for example: the user installs a certain type of corresponding client of the photographing software on the mobile phone and the tablet computer respectively, the Bluetooth of the mobile phone and the Bluetooth of the tablet computer are started through the interface provided by the photographing software respectively, the Bluetooth connection between the mobile phone and the tablet computer is established, after the connection between the mobile phone and the tablet computer is realized, the interfaces of the photographing software displayed on the screen of the mobile phone and the screen of the tablet computer are synchronized, and the user executes related operations at any one end of the mobile phone and the tablet computer, and then executes corresponding operations synchronously at the other end.
The above-mentioned methods for application synchronization provided by the prior art have significant drawbacks.
The above prior art provides a method for synchronizing application programs, which has the following disadvantages: in the method for synchronizing the application programs provided by the prior art, the application program provider provides the corresponding clients of the application programs for the users aiming at different application platforms, so that the number of the application programs is small at present, the synchronization requirement of the users on the existing massive application programs is required to be met, the application program provider develops the corresponding clients of the existing massive application programs aiming at the different application platforms, a large amount of manpower and material resources are required to be consumed, and the feasibility is poor; secondly, massive application programs need to be modified, so that connection can be established between different application platforms, and the implementation is difficult; therefore, the method for synchronizing the application programs provided by the prior art cannot meet the synchronization requirement of the user on the existing massive application programs.
Disclosure of Invention
The application provides a method for synchronizing application programs and a method for realizing application program synchronization on terminal equipment to be synchronized, and the method and the terminal equipment are matched with each other to solve the problems of poor feasibility and difficulty in realization in the prior art.
The application also relates to a method for synchronizing the application programs, a device for realizing the application program synchronization on the terminal equipment to be synchronized, a device for synchronizing the application programs and a system for synchronizing the application programs.
The present application provides a method for synchronizing applications, comprising:
acquiring at least one application program displayed on a screen;
reading state parameters and content information of an application interface displayed on a screen by the application program;
generating synchronization data for the application;
sending the synchronous data to at least one terminal device to be synchronized;
wherein, the synchronous data comprises the state parameter and the content information of the application program;
the state parameters comprise related parameters for positioning the application program in the application interface;
the content information comprises the related content of the application program in the application interface;
the application program may generate the application interface by loading the state parameters and the content information.
Optionally, the status parameter includes at least one of the following:
the method comprises the following steps of name information of an application program, application type, download address, installation package, version information, relevant parameters of an application interface displayed on a screen, relevant parameters for positioning the content position of the application program, screen resolution parameters and synchronization frequency.
Optionally, the content information includes at least one of:
the data records related to the application interface displayed on the screen by the application program, the loaded terminal equipment related data, the user data and the data records acquired from the server.
Optionally, before the step of acquiring at least one application program displayed on a screen, the following steps are performed:
detecting whether at least one terminal device to be synchronized exists in a set area range;
if yes, executing the following steps:
establishing a data link with the terminal equipment to be synchronized;
or
Sending an application synchronization request to the terminal equipment to be synchronized;
receiving a synchronization confirmation message fed back by the terminal equipment to be synchronized;
and establishing a data link with the terminal equipment to be synchronized.
Optionally, the detecting whether there is at least one terminal device to be synchronized within the set area range is implemented in the following manner:
whether at least one terminal device to be synchronized exists in a coverage range based on a Bluetooth signal sent by a built-in Bluetooth module is detected.
Optionally, the detecting whether there is at least one terminal device to be synchronized within the set area range is implemented in the following manner:
scanning Wi-Fi hotspots based on a built-in Wi-Fi module;
connecting to the scanned Wi-Fi hotspot;
and detecting whether at least one terminal device to be synchronized connected with the Wi-Fi hotspot exists.
Optionally, the detecting whether there is at least one terminal device to be synchronized within the set area range is implemented in the following manner:
establishing a Wi-Fi hotspot based on a built-in Wi-Fi module;
and detecting whether at least one terminal device to be synchronized connected with the Wi-Fi hotspot exists.
Optionally, the detecting whether there is at least one terminal device to be synchronized within the set area range is implemented in the following manner:
acquiring geographic position information based on LBS;
and detecting whether at least one terminal device to be synchronized exists in the set area range based on LBS (location based service) by combining the geographic position information.
Optionally, the establishing a data link with the terminal device to be synchronized includes:
sending a connection request for establishing TCP connection to the terminal equipment to be synchronized;
receiving a feedback request fed back by the terminal equipment to be synchronized;
and sending a connection confirmation message to the terminal equipment to be synchronized.
Optionally, after the substep of sending a connection confirmation message to the terminal device to be synchronized,
correspondingly, the step of sending the synchronization data to at least one terminal device to be synchronized includes:
and sending the synchronous data to the terminal equipment to be synchronized through the established TCP connection.
Optionally, the method includes:
according to a preset synchronization frequency, executing the step of acquiring at least one application program displayed on a screen, the step of reading the state parameters and the content information of an application interface displayed on the screen by the application program, the step of generating the synchronization data of the application program, and the step of sending the synchronization data to at least one terminal device to be synchronized until an application program synchronization termination instruction input by a user is received.
Optionally, the synchronization frequency is greater than 24 hz.
Optionally, the step of reading the state parameters and the content information of the application interface displayed on the screen by the application program includes:
acquiring an application program process corresponding to the application program based on a local operating system;
searching a memory address segment corresponding to the application program process in a memory space;
and reading the state parameters and the content information of the application program recorded in the memory address field.
Optionally, the step of generating the synchronization data of the application program includes:
and encapsulating the state parameters and the content information of the application program in a data packet mode to generate the synchronous data.
Optionally, before the step of acquiring at least one application program displayed on a screen, the following steps are performed:
and receiving an application program synchronization instruction input by a user.
Optionally, the method includes:
and sending a synchronization message to the terminal equipment to be synchronized.
Optionally, the method includes:
and receiving the synchronous feedback message sent by the terminal equipment to be synchronized.
The present application provides a further apparatus for synchronizing applications, comprising:
an application acquisition unit for acquiring at least one application displayed on a screen;
the application program data reading unit is used for reading the state parameters and the content information of an application interface displayed on a screen by the application program;
a synchronous data generation unit for generating synchronous data of the application program;
a synchronous data sending unit, configured to send the synchronous data to at least one terminal device to be synchronized;
wherein, the synchronous data comprises the state parameter and the content information of the application program;
the state parameters comprise related parameters for positioning the application program in the application interface;
the content information comprises the related content of the application program in the application interface;
the application program may generate the application interface by loading the state parameters and the content information.
The application also discloses a method for realizing application program synchronization in the terminal equipment to be synchronized, which comprises the following steps:
receiving synchronous data of an application program sent by source terminal equipment;
reading the state parameters and the content information of the application program contained in the synchronous data;
running the application program based on a local operating system;
loading the state parameters and the content information by the application program to generate an application interface;
displaying an application interface of the application program on a screen;
wherein, the synchronous data comprises the state parameter and the content information of the application program;
the state parameters comprise related parameters for positioning the application program in the application interface;
the content information comprises the related content of the application program in the application interface;
the application program may generate the application interface by loading the state parameters and the content information.
Optionally, the step of running the application program based on the local operating system includes:
searching the application program in a local operating system, and judging whether the application program exists in the local operating system;
if yes, running the application program based on a local operating system;
if not, reading the download address of the application program contained in the state parameter;
downloading the application program in a local operating system;
and installing and running the application program.
Optionally, the step of running the application program based on the local operating system includes:
searching the application program in a local operating system, and judging whether the application program exists in the local operating system;
if yes, running the application program based on a local operating system;
if not, reading the installation package of the application program contained in the state parameter;
and installing and running the application program in a local operating system.
Optionally, the application programs include application programs of the same application type;
correspondingly, the step of running the application program based on the local operating system comprises the following steps:
searching the application program in a local operating system, and judging whether the application program exists in the local operating system;
if yes, running the application program based on a local operating system;
if not, reading the application type of the application program contained in the state parameter;
and running the application program with the same application type as the application program in the local operating system.
Optionally, before the step of receiving the synchronization data of the application program sent by the source terminal device, the following steps are performed:
and establishing a data link with the source terminal equipment.
Optionally, a data link is established with the source terminal device based on a built-in Wi-Fi module;
the establishment of the data link with the source terminal equipment is realized by adopting the following mode:
receiving a connection request for establishing TCP connection sent by the source terminal equipment;
sending a feedback request to the source terminal equipment;
and receiving a connection confirmation message sent by the source terminal equipment.
Optionally, the method includes:
reading a screen resolution parameter of the source terminal device contained in the state parameter;
acquiring a local screen resolution parameter based on a local operating system;
judging whether the screen resolution parameter of the source terminal equipment is consistent with the local screen resolution parameter or not;
if yes, entering the next step;
if not, the state parameters and the content information are converted into the content information adaptive to the local screen resolution parameters according to a preset rule.
Optionally, after the step of displaying the application interface of the application program on the screen, the following steps are performed:
a screen update operation is performed.
Optionally, the method includes:
reading the synchronization frequency contained in the state parameter;
executing the step of receiving the synchronous data of the application program sent by the source terminal equipment according to the synchronous frequency, reading the state parameter and the content information of the application program contained in the synchronous data, running the application program based on a local operating system, loading the state parameter and the content information by the application program, generating an application interface, and displaying the application interface of the application program on a screen.
Optionally, the step of loading the state parameters and the content information by the application program and generating an application interface includes:
acquiring an application program process corresponding to the application program based on a local operating system;
searching a memory address segment corresponding to the application program process in a memory space;
updating the data record recorded by the memory address field according to the state parameter and the content information;
and loading the updated data record recorded in the memory address field by the application program to generate the application interface.
Optionally, the method includes:
and receiving the synchronous message sent by the source terminal equipment.
Optionally, the method includes:
and sending a synchronous feedback message to the source terminal equipment.
The present application further provides a device for implementing application synchronization in a terminal device to be synchronized, including:
a synchronous data receiving unit, configured to receive synchronous data of an application program sent by a source terminal device;
a data reading unit, configured to read the state parameters and content information of the application program included in the synchronization data;
the application program running unit is used for running the application program based on a local operating system;
the application interface generating unit is used for loading the state parameters and the content information by the application program to generate an application interface;
the application interface display unit is used for displaying an application interface of the application program on a screen;
wherein, the synchronous data comprises the state parameter and the content information of the application program;
the state parameters comprise related parameters for positioning the application program in the application interface;
the content information comprises the related content of the application program in the application interface;
the application program may generate the application interface by loading the state parameters and the content information.
The application also provides an application program synchronization method, which comprises the following steps:
the source terminal equipment synchronizes the application programs by the method for synchronizing the application programs;
the terminal equipment to be synchronized realizes the synchronization of the application program by the method for realizing the synchronization of the application program in the terminal equipment to be synchronized.
The present application further provides an apparatus for application synchronization, including:
the above-described means for synchronizing applications;
and at least one device for realizing application program synchronization in the terminal equipment to be synchronized.
The present application further provides a system for application synchronization, comprising:
a source terminal device;
and at least one terminal device to be synchronized;
the source terminal device is used for executing the method for synchronizing the application programs;
the terminal equipment to be synchronized is used for the method for realizing application program synchronization in the terminal equipment to be synchronized.
Compared with the prior art, the method has the following advantages:
the application provides a method for synchronizing application programs, which comprises the following steps: acquiring at least one application program displayed on a screen; reading state parameters and content information of an application interface displayed on a screen by the application program; generating synchronization data for the application; sending the synchronous data to at least one terminal device to be synchronized; wherein, the synchronous data comprises the state parameter and the content information of the application program; the state parameters comprise related parameters for positioning the application program in the application interface; the content information comprises the related content of the application program in the application interface; the application program may generate the application interface by loading the state parameters and the content information.
The application provides a method for realizing application program synchronization in a terminal device to be synchronized, which comprises the following steps: receiving synchronous data of an application program sent by source terminal equipment; reading the state parameters and the content information of the application program contained in the synchronous data; running the application program based on a local operating system; loading the state parameters and the content information by the application program to generate an application interface; displaying an application interface of the application program on a screen; wherein, the synchronous data comprises the state parameter and the content information of the application program; the state parameters comprise related parameters for positioning the application program in the application interface; the content information comprises the related content of the application program in the application interface; the application program may generate the application interface by loading the state parameters and the content information.
The method for synchronizing the application programs and the method for realizing application program synchronization on the terminal equipment to be synchronized provided by the application program synchronization method are matched with each other, the application interface of the application program displayed on the screen of the source terminal is synchronized to one or more terminal equipment to be synchronized, the corresponding application interface is generated on the terminal equipment to be synchronized and is displayed on the screen of the terminal equipment to be synchronized, and the implementation mode is simple;
in addition, the method for synchronizing the application programs and the method for realizing application program synchronization on the terminal equipment to be synchronized can be realized based on common terminal equipment, for example, a mobile phone with built-in Bluetooth, Wi-Fi or mobile network functions can be realized, and the operation is simple and quick; moreover, the terminal device for implementing the method can still perform other operations on the terminal device besides the synchronous operation of the application program without losing the meaning of the terminal device as an independent terminal device; the method for synchronizing the application programs and the method for realizing application program synchronization on the terminal equipment to be synchronized can synchronize terminal equipment with different screen parameters such as screen resolution, screen size, screen width-to-height ratio and the like, can convert the acquired synchronous data of the source terminal equipment into synchronous data adaptive to different terminal equipment to be synchronized, and can display the synchronous data on screens of different terminal equipment to be synchronized, thereby providing convenience for users.
Drawings
FIG. 1 is a flow diagram of one embodiment of a method for synchronizing applications provided herein;
FIG. 2 is a schematic diagram of an embodiment of an apparatus for synchronizing applications provided herein;
fig. 3 is a flowchart of an embodiment of a method for implementing application synchronization in a terminal device to be synchronized according to the present application;
FIG. 4 is a flowchart of an embodiment of an apparatus for implementing application synchronization in a terminal device to be synchronized according to the present application;
FIG. 5 is a schematic diagram illustrating an embodiment of a method for application synchronization provided herein;
FIG. 6 is a schematic diagram of an embodiment of an apparatus for application synchronization provided herein;
FIG. 7 is a schematic diagram of an embodiment of a system for application synchronization provided herein;
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. This application is capable of implementation in many different ways than those herein set forth and of similar import by those skilled in the art without departing from the spirit of this application and is therefore not limited to the specific implementations disclosed below.
The application provides a method for synchronizing application programs and a method for realizing application program synchronization on terminal equipment to be synchronized, which are matched with each other.
The application also provides a method for synchronizing the application programs, a device for realizing the application program synchronization on the terminal equipment to be synchronized, a device for synchronizing the application programs and a system for synchronizing the application programs. Details are described in the following examples one by one.
The application provides a method embodiment for synchronizing applications as follows:
a method for synchronizing applications provided by the present application is described below with reference to the accompanying drawings, and the steps of the method are described below.
Referring to FIG. 1, a flow diagram of an embodiment of a method for synchronizing applications provided herein is shown.
Step S101, at least one application program displayed on a screen is acquired.
It should be noted that, this embodiment is described by taking a single application displayed on the screen as an example, and the method is also applicable to a scenario in which a plurality of applications are displayed on the screen (for example, different applications are displayed on the half portion and the lower half portion of the screen based on the split screen technology).
In specific implementation, before the step, the following steps are executed:
1) receiving an application program synchronization instruction input by a user;
for example: and receiving a touch instruction (namely an application program synchronization instruction) input by a user through a touch screen of the smart phone.
2) Detecting whether at least one terminal device to be synchronized exists in a set area range;
if yes, executing the following steps:
establishing a data link with the terminal equipment to be synchronized;
or
Sending an application synchronization request to the terminal equipment to be synchronized;
receiving a synchronization confirmation message fed back by the terminal equipment to be synchronized;
establishing a data link with the terminal equipment to be synchronized;
if not, returning to the step of detecting whether at least one terminal device to be synchronized exists in the range of the set area.
For example, the following four embodiments are provided to detect whether there is at least one terminal device to be synchronized within a set area range, and to establish a data link with the terminal device to be synchronized, corresponding to the embodiments:
a. detecting whether at least one terminal device to be synchronized exists in the coverage range of the Bluetooth signal based on the Bluetooth signal sent by a Bluetooth module arranged in the mobile phone;
here, the terminal device to be synchronized refers to a terminal device to be synchronized that can send a bluetooth signal;
if the terminal equipment to be synchronized is detected to exist in the coverage range of the Bluetooth signal, the Bluetooth connection with the terminal equipment sending the Bluetooth signal is established through the following three substeps:
sending a connection request for establishing Bluetooth connection to the terminal equipment sending the Bluetooth signal;
receiving a feedback request fed back by the terminal equipment sending the Bluetooth signal;
and sending a connection confirmation message to the terminal equipment sending the Bluetooth signal.
b. Scanning Wi-Fi hotspots in the coverage range of a scanning signal based on the coverage range of the scanning signal sent by a Wi-Fi module arranged in a mobile phone, establishing connection with the scanned Wi-Fi hotspots, and detecting whether at least one terminal device to be synchronized connected with the Wi-Fi hotspots exists after the connection with the Wi-Fi hotspots is established;
here, the terminal device to be synchronized is a terminal device to be synchronized, which has a Wi-Fi function and is connected to a Wi-Fi hotspot;
if the terminal equipment to be synchronized connected with the Wi-Fi hotspot is detected, a data link with the terminal equipment to be synchronized is established through the following three substeps:
sending a connection request for establishing TCP connection to the terminal equipment to be synchronized;
receiving a feedback request fed back by the terminal equipment to be synchronized;
and sending a connection confirmation message to the terminal equipment to be synchronized.
c. Establishing a Wi-Fi hotspot based on a built-in Wi-Fi module of the mobile phone, and detecting whether at least one terminal device to be synchronized connected with the Wi-Fi hotspot exists after the Wi-Fi hotspot is established;
here, the terminal device to be synchronized is a terminal device to be synchronized, which has a Wi-Fi function and is connected to a Wi-Fi hotspot;
if the terminal equipment to be synchronized connected with the Wi-Fi hotspot is detected, a data link with the terminal equipment to be synchronized is established through the following three substeps:
sending a connection request for establishing TCP connection to the terminal equipment to be synchronized;
receiving a feedback request fed back by the terminal equipment to be synchronized;
and sending a connection confirmation message to the terminal equipment to be synchronized.
In addition, if a terminal device to be synchronized that establishes a connection with the Wi-Fi hotspot is detected, the method comprises the following steps: the terminal equipment to be synchronized is connected to a Wi-Fi module built in the mobile phone to establish a Wi-Fi hotspot, which indicates that the terminal equipment to be synchronized and the mobile phone are in the same local area network, and data can be directly sent to the terminal equipment to be synchronized through the local area network.
The Wi-Fi hotspot is established based on the built-in Wi-Fi module of the mobile phone, which is not the key point emphasized by the invention and is not limited herein.
d. Acquiring the current geographical position information of the mobile phone based on LBS, and detecting whether at least one terminal device to be synchronized exists in a set area range based on LBS by combining the geographical position information;
here, the terminal device to be synchronized refers to a terminal device to be synchronized, which has a mobile network function and can be connected to a mobile communication base station;
LBS (Location Based Service) is a value-added Service for providing corresponding services to users by acquiring Geographic Location Information (Geographic coordinates or geodetic coordinates) of terminal equipment through a radio communication network (such as GSM network and CDMA network) of a telecommunication mobile operator or an external positioning mode (such as GPS) and supporting a GIS (Geographic Information System) platform.
If the terminal equipment to be synchronized is detected to exist in the set region range, a data link with the terminal equipment to be synchronized is established through the following three substeps:
sending a connection request for establishing TCP connection to the terminal equipment to be synchronized;
receiving a feedback request fed back by the terminal equipment to be synchronized;
and sending a connection confirmation message to the terminal equipment to be synchronized.
For example:
the method comprises the steps that geographic position information obtained based on a GPS of a mobile phone is xx street xx numbers in xx city xx areas, all mobile terminals (the mobile phone, a tablet, wearable equipment, a PC and the like) which are not more than 1km away from the geographic position information are obtained by taking the geographic position information as a center, and data connection is established between the mobile terminals and the obtained mobile terminals.
In specific implementation, besides the four implementation manners provided above, other implementation manners may be adopted, for example, the detection and connection process is implemented based on an rfid (radio Frequency identification) technology and an infrared detection technology, and for example, the detection and connection process is implemented based on a terminal device such as a tablet computer, a PC, and a wearable device, which is not limited in this embodiment.
And step S102, reading the state parameters and the content information of the application interface displayed on the screen by the application program.
In this embodiment, the state parameter refers to a relevant parameter for positioning an application program in a specific application interface, and includes:
the method comprises the following steps of name information of an application program, application type, download address, installation package, version information, relevant parameters of an application interface displayed on a screen, relevant parameters for positioning the content position of the application program, screen resolution parameters and synchronization frequency.
The content information refers to the related content of the application program in a specific application interface, and includes:
the data records related to the application interface displayed on the screen by the application program, the loaded terminal equipment related data, the user data and the data records acquired from the server.
And the application program can generate a corresponding application interface by loading the state parameters and the content information.
Specifically, the implementation of reading the state parameters and the content information of the application interface displayed on the screen by the application program is as follows:
1) acquiring an application program process corresponding to the application program based on a local operating system;
2) searching a memory address segment corresponding to the application program process in a memory space;
3) and reading the state parameters and the content information of the application program recorded in the memory address field.
For example:
for the Android device, based on an Android operating system built in the Android device, acquiring a process of a 'multimedia' application program of the Android operating system: process, media; searching a memory address field corresponding to the process of the Android process in a memory space, and reading related information such as the file type, the total file duration, the current time point information, the screenshot of the multimedia file at the current time point and the like of the multimedia file currently played by the multimedia application program recorded in the memory address field, related parameters such as the theme, the volume, the brightness and the font of a playing interface of the multimedia application program, related parameters of the screen resolution of the Android operating system, and application name, application type, installation package and version information of the multimedia application program.
Or
For the Android device, based on an Android operating system built in the Android device, acquiring a process of an 'information' application program of the Android operating system: "com.android.mms"; searching a memory address field corresponding to the com.android.mms process in a memory space, reading related information such as the type and size of a file sent by the information application program recorded in the address field of the memory, text, image and sound information currently input in the information application program by a user, current recipient information and related parameters of screen resolution of the Android operating system.
Step S103, generating synchronous data of the application program.
Specifically, this step is achieved by the embodiments provided below:
and encapsulating the state parameters and the content information of the application program in a data packet mode to generate the synchronous data.
In a specific implementation, in addition to the above-provided embodiments, other embodiments may also be adopted, for example, the state parameters and the content information of the application program are encoded according to a set encoding rule, which is not limited herein.
Step S104, sending the synchronization data to at least one terminal device to be synchronized.
As a preferred implementation, this embodiment provides an implementation of sending synchronization data to a terminal device to be synchronized; during specific implementation, the synchronization data can be sent to a plurality of terminal devices to be synchronized respectively, so that the application interface of the application program displayed on the screen is synchronized to the screen display of one or more terminal devices to be synchronized; for the implementation manner of sending the synchronization data to the plurality of terminal devices to be synchronized, similar to the implementation manner provided in this embodiment, it is only necessary to send the synchronization data for each terminal device to be synchronized.
In this embodiment, before executing step S101, a data link is established with the terminal device to be synchronized, specifically, a bluetooth connection or a Wi-Fi connection is established with the terminal device to be synchronized in this embodiment;
if the bluetooth connection with the terminal device to be synchronized is established before the step S101 is executed, in this step, the synchronization data is sent to the terminal device to be synchronized through the established bluetooth connection;
correspondingly, if a TCP connection with the terminal device to be synchronized is established before step S101 is executed, in this step, the synchronization data is sent to the terminal device to be synchronized through the established TCP connection.
In practical implementation, the steps S101, S102, S103 and S104 may also be executed in a cycle according to a preset synchronization frequency (the synchronization frequency is greater than 24 hz, i.e. the synchronization period corresponding to the synchronization frequency is less than the persistence time of vision of human eyes), where it is noted that the synchronization frequency is greater than 24 hz, i.e.: the synchronization period corresponding to the synchronization frequency is less than the persistence time of the vision of human eyes;
because the synchronization period corresponding to the synchronization frequency for circularly executing synchronization is less than the persistence time of vision of human eyes, the application interface of the application program displayed on the current screen is synchronized to the terminal equipment to be synchronized according to the embodiment, and the terminal equipment to be synchronized is synchronized to form a synchronization picture which looks continuous with naked eyes;
for example: for the application program of the video class, the application interface of the application program displayed on the screen of the application program of the video class is synchronized to the terminal equipment to be synchronized according to the embodiment, so that the video file currently played on the screen of the source terminal equipment can be synchronized to the terminal equipment (terminal equipment to be synchronized) corresponding to the local operating system for playing.
In addition, for any application program, synchronizing the application interface displayed on the screen of the application program to the terminal equipment to be synchronized according to the embodiment, and displaying the application interface on the screen of the terminal equipment to be synchronized, so that the effect of real-time control or remote control can be formed;
for example: for the information application program, after a user inputs a line of characters in an opened new information interface through a touch screen, the current interface of the information application program is synchronized to the terminal equipment to be synchronized according to the embodiment and is displayed on the screen of the terminal equipment to be synchronized, namely, the new information interface of the information application program can be displayed on the screen of the terminal equipment to be synchronized, and the user inputs a line of characters through the touch screen.
In a specific implementation, during, before, or after the execution of the steps S101 to S104, the method further includes performing message interaction with the terminal device to be synchronized, specifically including two aspects of message sending and message receiving:
the method comprises the following steps of sending a message to the terminal equipment to be synchronized, and implementing the following steps:
sending a synchronization message to the terminal equipment to be synchronized;
receiving the message sent by the terminal equipment to be synchronized, and implementing the following steps:
and receiving the synchronous feedback message sent by the terminal equipment to be synchronized.
The embodiment of the device for application program synchronization provided by the application is as follows:
in the above embodiment, a method for synchronizing applications is provided, and correspondingly, the present application also provides an apparatus for synchronizing applications.
Referring to fig. 2, a schematic diagram of an embodiment of an apparatus for synchronizing applications according to the present application is shown.
Since the device embodiment is basically similar to the method embodiment, the description is relatively simple, and the relevant portions only need to refer to the corresponding description of the method embodiment. The device embodiments described below are merely illustrative.
The present application provides an apparatus for synchronizing applications, comprising:
an application acquisition unit 201 for acquiring at least one application displayed on a screen;
an application data reading unit 202, configured to read a state parameter and content information of an application interface displayed on a screen by the application;
a synchronization data generation unit 203 for generating synchronization data of the application program;
a synchronous data sending unit 204, configured to send the synchronous data to at least one terminal device to be synchronized;
wherein, the synchronous data comprises the state parameter and the content information of the application program;
the state parameters comprise related parameters for positioning the application program in the application interface;
the content information comprises the related content of the application program in the application interface;
the application program may generate the application interface by loading the state parameters and the content information.
Optionally, the status parameter includes at least one of the following:
the method comprises the following steps of name information of an application program, application type, download address, installation package, version information, relevant parameters of an application interface displayed on a screen, relevant parameters for positioning the content position of the application program, screen resolution parameters and synchronization frequency.
Optionally, the content information includes at least one of:
the data records related to the application interface displayed on the screen by the application program, the loaded terminal equipment related data, the user data and the data records acquired from the server.
Optionally, the apparatus for synchronizing applications includes:
the terminal equipment to be synchronized detection unit is used for detecting whether at least one terminal equipment to be synchronized exists in a set area range;
if yes, entering a data link establishing unit; or
Entering an application synchronization request sending unit, a synchronization confirmation message receiving unit and the data link establishing unit;
the application synchronization request sending unit is used for sending an application synchronization request to the terminal equipment to be synchronized;
the synchronization confirmation message receiving unit is used for receiving the synchronization confirmation message fed back by the terminal equipment to be synchronized;
and the data link establishing unit is used for establishing a data link with the terminal equipment to be synchronized.
Optionally, the detection unit of the terminal device to be synchronized includes:
and the first terminal equipment to be synchronized detection subunit is used for detecting whether at least one terminal equipment to be synchronized exists in a coverage range based on the Bluetooth signal sent by the built-in Bluetooth module.
Optionally, the detection unit of the terminal device to be synchronized includes:
the Wi-Fi hotspot scanning subunit is used for scanning Wi-Fi hotspots based on a built-in Wi-Fi module;
the Wi-Fi hotspot connecting subunit is used for connecting to the scanned Wi-Fi hotspot;
and the second terminal equipment to be synchronized detection subunit is used for detecting whether at least one terminal equipment to be synchronized connected with the Wi-Fi hotspot exists.
Optionally, the detection unit of the terminal device to be synchronized includes:
the Wi-Fi hotspot establishing subunit is used for establishing a Wi-Fi hotspot based on a built-in Wi-Fi module;
and the third terminal equipment to be synchronized detection subunit is used for detecting whether at least one terminal equipment to be synchronized connected with the Wi-Fi hotspot exists.
Optionally, the detection unit of the terminal device to be synchronized includes:
a geographical location information acquiring subunit, configured to acquire geographical location information based on the LBS;
and the fourth terminal equipment to be synchronized detection subunit is used for detecting whether at least one terminal equipment to be synchronized exists in the set area range based on LBS (location based service) by combining the geographic position information.
Optionally, the data link establishing unit includes:
a TCP connection request sending subunit, configured to send a connection request for establishing a TCP connection to the terminal device to be synchronized;
the TCP connection feedback request receiving subunit is used for receiving a feedback request fed back by the terminal equipment to be synchronized;
and the TCP connection confirmation message subunit is used for sending a connection confirmation message to the terminal equipment to be synchronized.
Optionally, the synchronous data sending unit 204 includes:
and the synchronous data sending subunit is used for sending the synchronous data to the terminal equipment to be synchronized through the established TCP connection.
Optionally, the apparatus for synchronizing applications includes:
according to a preset synchronization frequency, the method enters the application program acquisition unit 201, the application program data reading unit 202, the synchronization data generation unit 203 and the synchronization data sending unit 204 until receiving an application program synchronization termination instruction input by a user.
Optionally, the synchronization frequency is greater than 24 hz.
Optionally, the application data reading unit 202 includes:
the application program process acquisition subunit is used for acquiring an application program process corresponding to the application program based on a local operating system;
the memory address field searching subunit is used for searching a memory address field corresponding to the application program process in a memory space;
and the application program data reading subunit is used for reading the state parameters and the content information of the application program recorded in the memory address field.
Optionally, the synchronization data generating unit 203 includes:
and the application program data packaging subunit is used for packaging the state parameters and the content information of the application program in a data packet mode to generate the synchronous data.
Optionally, the apparatus for synchronizing applications includes:
and the application program synchronization instruction receiving unit is used for receiving the application program synchronization instruction input by the user.
Optionally, the apparatus for synchronizing applications includes:
and the synchronous message sending unit is used for sending a synchronous message to the terminal equipment to be synchronized.
Optionally, the apparatus for synchronizing applications includes:
and the synchronous feedback message receiving unit is used for receiving the synchronous feedback message sent by the terminal equipment to be synchronized.
The embodiment of the method for realizing application program synchronization in the terminal equipment to be synchronized provided by the application is as follows:
in the foregoing embodiment, a method for synchronizing an application is provided, and on this basis, the present application further provides a method for implementing application synchronization on a terminal device to be synchronized, where the method is based on the terminal device to be synchronized.
This embodiment corresponds to the above embodiment of the method for synchronizing applications, and the same parts are not repeated herein, and please refer to the steps in this embodiment in comparison with the steps in the above embodiment of the method for synchronizing applications.
The following describes a method for implementing application synchronization on a terminal device to be synchronized, and describes various steps of the method, with reference to the accompanying drawings.
Referring to fig. 3, it is a flowchart of an embodiment of a method for implementing application synchronization in a terminal device to be synchronized provided by the present application.
The application program synchronization method for the terminal equipment to be synchronized comprises the following steps:
step S301, receiving synchronization data of the application program transmitted by the source terminal device.
Wherein, the synchronous data comprises the state parameter and the content information of the application program.
In specific implementation, before the step, the following steps are executed:
and establishing a data link with the source terminal equipment.
Specifically, in one-to-one correspondence with the implementation manners a, b, c, and d provided in step S101 of the above method embodiment for synchronizing the application program, here, the present embodiment provides the following four implementation manners for establishing a data link with the source terminal device:
a. establishing Bluetooth connection with the source terminal equipment based on a built-in Bluetooth module;
corresponding to the implementation a in step S101 of the above method embodiment for synchronizing applications, here, the bluetooth connection with the source terminal device is established through the following three sub-steps:
receiving a connection request for establishing Bluetooth connection sent by the source terminal equipment, wherein the connection request indicates that the connection request can be detected by the source terminal equipment and is within the coverage range of a Bluetooth signal sent by the source terminal equipment;
sending a feedback request to the source terminal equipment;
and receiving a connection confirmation message sent by the source terminal equipment.
b. Establishing a data link with the source terminal equipment based on a built-in Wi-Fi module;
corresponding to the implementation b in step S101 of the above method embodiment for synchronizing applications, here, the data link with the source terminal device is established through the following three sub-steps:
receiving a connection request for establishing TCP connection sent by the source terminal equipment;
sending a feedback request to the source terminal equipment;
and receiving a connection confirmation message sent by the source terminal equipment.
c. Corresponding to the implementation c in step S101 of the above method embodiment for synchronizing applications, here, the data link with the source terminal device is established through the following three sub-steps:
receiving a connection request for establishing TCP connection sent by the source terminal equipment;
sending a feedback request to the source terminal equipment;
and receiving a connection confirmation message sent by the source terminal equipment.
d. Corresponding to the implementation d in step S101 of the above method embodiment for synchronizing applications, here, the data link with the source terminal device is established through the following three sub-steps:
receiving a connection request for establishing TCP connection sent by the source terminal equipment;
sending a feedback request to the source terminal equipment;
and receiving a connection confirmation message sent by the source terminal equipment.
In specific implementation, besides the four implementation manners provided above, other implementation manners may be adopted, for example, the connection process with the source terminal device is implemented based on an rfid (radio Frequency identification) technology and an infrared detection technology, and for example, the connection process with the source terminal device is implemented based on a terminal device such as a tablet computer, a PC, a wearable device, and the like, which is not limited in this embodiment.
Step S302, reading the state parameter and content information of the application program included in the synchronization data.
It should be noted that the application interface may be generated based on the state parameter and the content information loaded by the corresponding application program in the local operating system.
For example:
after reading the state parameters and the content information of the 'information' application program contained in the synchronous data, and the application interface of the 'information' application program synchronized on the source terminal equipment is an 'information editing' application interface;
loading the state parameters and the content information based on an information application program built in the local operating system, and generating a corresponding information editing application interface in the information application program built in the local operating system.
Step S303, running the application program based on the local operating system.
According to the name information, the application type, the download address, the installation package, and the version information of the application program included in the state parameter of the application program read in the step S102, in this step, the application program is run based on a local operating system, and specifically, the present embodiment provides the following three implementation manners:
1) according to the download address of the application program contained in the state parameter of the application program read in the step S102, the step of running the application program based on the local operating system is implemented:
searching the application program in a local operating system, and judging whether the application program exists in the local operating system;
if yes, opening the application program based on a local operating system;
if not, reading the download address of the application program contained in the state parameter;
downloading the application program in a local operating system;
and installing and running the application program.
If the application program corresponding to the synchronous data implementing the synchronization is a third-party application program installed by a user in a customized manner, the implementation mode can be adopted to realize that the application program runs based on a local operating system.
For example:
if the application program corresponding to the synchronized synchronous data is a WeChat application program, inquiring whether the WeChat application program exists in a local Android operating system;
if the application program exists, directly opening a WeChat application program in the local Android operating system;
if the application program does not exist, downloading the WeChat application program installation package in the local Android operating system according to the download address of the WeChat application program, installing the WeChat application program according to the downloaded installation package, and opening the WeChat application program.
2) According to the installation package of the application program included in the state parameters of the application program read in the step S102, implementing the step of running the application program based on a local operating system:
searching the application program in a local operating system, and judging whether the application program exists in the local operating system;
if yes, opening the application program based on a local operating system;
if not, reading the installation package of the application program contained in the state parameter;
and installing and running the application program in a local operating system.
If the application program corresponding to the synchronization data for implementing synchronization is an application program of the system itself, the implementation mode can be adopted to realize that the application program runs based on a local operating system.
For example:
if the application program corresponding to the synchronized data is an 'information' application program, inquiring whether the 'information' application program exists in a local Android operating system;
if the information exists, directly opening an 'information' application program in the local Android operating system;
if the application program does not exist, the information application program is installed in the local Android operating system according to the installation package of the information application program, and the information application program is opened.
3) According to the application type of the application program included in the state parameter of the application program read in the step S102, implementing the step of running the application program based on a local operating system:
searching the application program in a local operating system, and judging whether the application program exists in the local operating system;
if yes, opening the application program based on a local operating system;
if not, reading the application type of the application program contained in the state parameter;
and running the application program with the same application type as the application program in the local operating system.
For a local operating system, the application program does not exist, or the synchronization data does not include a download address and an installation package of the application program (for some special application programs, the download address and the installation package of the application program cannot be obtained, or the difficulty of obtaining the download address and the installation package of the application program is great), or the application program cannot be installed because the remaining memory space of the local operating system is insufficient, at this time, the implementation mode may be adopted, and the application program of the same application type as the application program is run based on the local operating system, that is: and opening the application program with the same application type as the application program in the local operating system without installing the application program in the local operating system, so that the memory is saved, and the efficiency of the operating system is improved.
For example:
if the application program corresponding to the synchronized data is a third-party music player, inquiring whether the third-party music player exists in a local Android operating system;
if the music exists, directly opening a third-party music player in the local Android operating system;
if the application program does not exist, the application program with the application type of music can be directly opened in the local Android operating system, for example, a music player built in the local Android operating system can be opened.
In a specific implementation, other implementations may be adopted besides the three implementations provided above, and this embodiment is not limited.
Step S304, the application program loads the state parameters and the content information to generate an application interface.
In specific implementation, before the step, the following steps are executed:
reading a screen resolution parameter of the source terminal device contained in the state parameter;
acquiring a local screen resolution parameter based on a local operating system;
judging whether the screen resolution parameter of the source terminal equipment is consistent with the local screen resolution parameter or not;
if yes, entering the next step;
if not, the state parameters and the content information are converted into the content information adaptive to the local screen resolution parameters according to a preset rule.
The above steps are aimed at the adaptation of the application, such as:
the iPhone6 of the smartphone, designed by apple, as a source terminal device, has a screen resolution of 1334x750 pixels and a screen size of 4.7 inches;
the synchronous data is a photo browsing interface of an iPhone6 image application program;
the terminal device (i.e. the terminal device to be synchronized) corresponding to the local operating system is a tablet computer Surface Pro 3 designed by Microsoft corporation, the screen resolution is 2160x1440 pixels, the screen size is 12 inches, and the display ratio is 3: 2;
if the above synchronous data is not processed, the "image" application program directly based on the Surface Pro 3 is loaded, and the photo browsing interface of the "image" application program is displayed on the screen, the image is likely to be stretched in the transverse direction and the longitudinal direction, and the stretching ratio in the transverse direction is greater than that in the longitudinal direction, that is: the photo browsing interface of the image application program displayed based on the Surface Pro 3 has problems, so that the adaptation between different screen resolutions of different terminal devices is realized and the user experience is improved through the implementation mode.
Specifically, in this step, the application program loads the state parameters and the content information, and generates an application interface as follows:
1) acquiring an application program process corresponding to the application program based on a local operating system;
2) searching a memory address segment corresponding to the application program process in a memory space;
3) updating the data record recorded by the memory address field according to the state parameter and the content information;
4) and loading the updated data record recorded in the memory address field by the application program to generate the application interface.
And step S305, displaying the application interface of the application program on a screen.
Displaying the application interface of the application program generated in the step S304 on a screen; in addition, after the step is executed, the following steps are executed:
a screen update operation is performed.
In specific implementation, the synchronization frequency included in the state parameter of the application program read in the step S302 may also be read, where it should be noted that the synchronization frequency is greater than 24 hz, that is: the synchronization period corresponding to the synchronization frequency is less than the persistence time of the vision of human eyes;
after reading the synchronization frequency, executing the steps S301, S302, S303, S304 and S305 according to the synchronization frequency cycle;
and in the above-mentioned circulation process, after carrying out the above-mentioned step S305 once each time, carry out the screen and upgrade the operation;
since the synchronization period corresponding to the synchronization frequency for cyclically executing synchronization is smaller than the persistence time of vision of human eyes, a synchronization picture which appears continuous to the naked eye can be synchronously formed on the terminal device (terminal device to be synchronized) corresponding to the local operating system, for example: for the application program of the video class, when the synchronization is performed according to the embodiment, the video file currently played on the screen of the source terminal device can be synchronized to the terminal device (terminal device to be synchronized) corresponding to the local operating system for playing.
In specific implementation, corresponding to the above method embodiment for synchronizing an application provided by the present application, during, before, or after the execution of the steps S301 to S305, the method further includes performing message interaction with the source terminal device, specifically including two aspects of message reception and message transmission:
wherein, the message sent by the source terminal equipment is received, and the method is realized by executing the following steps:
and receiving the synchronous feedback message sent by the source terminal equipment.
Sending a message to the source terminal device by performing the following steps:
and sending a synchronization message to the source terminal equipment. The embodiment of the method for realizing application program synchronization in the terminal equipment to be synchronized provided by the application is as follows:
in the foregoing embodiment, a method for implementing application synchronization on a terminal device to be synchronized is provided, and correspondingly, the present application also provides a device for implementing application synchronization on a terminal device to be synchronized.
Referring to fig. 4, a schematic diagram of an embodiment of an apparatus for implementing application synchronization at a terminal device to be synchronized according to the present application is shown.
Since the device embodiment is basically similar to the method embodiment, the description is relatively simple, and the relevant portions only need to refer to the corresponding description of the method embodiment. The device embodiments described below are merely illustrative.
The application provides a device for realizing application program synchronization at a terminal device to be synchronized, which comprises:
a synchronous data receiving unit 401, configured to receive synchronous data of an application program sent by a source terminal device;
a data reading unit 402, configured to read the state parameters and content information of the application program included in the synchronization data;
an application program running unit 403, configured to run the application program based on a local operating system;
an application interface generating unit 404, configured to load the state parameter and the content information by the application program, and generate an application interface;
an application interface display unit 405, configured to display an application interface of the application program on a screen;
wherein, the synchronous data comprises the state parameter and the content information of the application program;
the state parameters comprise related parameters for positioning the application program in the application interface;
the content information comprises the related content of the application program in the application interface;
the application program may generate the application interface by loading the state parameters and the content information.
Optionally, the application running unit 403 includes:
the first application program query subunit is used for searching the application program in a local operating system and judging whether the application program exists in the local operating system;
if yes, entering an application program operation subunit;
the application program running subunit is used for running the application program based on a local operating system;
if not, entering an application program download address reading subunit, an application program download subunit and a first application program installation operation subunit;
the application program download address reading subunit is configured to read a download address of the application program included in the state parameter;
the application program downloading subunit is used for downloading the application program in a local operating system;
and the application program installation and operation subunit is used for installing and operating the application program.
Optionally, the application running unit 403 includes:
the second application program query subunit is configured to search for the application program in the local operating system, and determine whether the application program exists in the local operating system;
if yes, entering an application program operation subunit;
the application program running subunit is used for running the application program based on a local operating system;
if not, entering an application program installation package reading subunit and a second application program installation operation subunit;
the application program installation package reading subunit is used for reading the installation package of the application program contained in the state parameter;
and the second application program installation and operation subunit is used for installing and operating the application program in the local operating system.
Optionally, the application programs include application programs of the same application type; accordingly, the application execution unit 403 includes:
the third application program query subunit is configured to search for the application program in the local operating system, and determine whether the application program exists in the local operating system;
if yes, entering an application program operation subunit;
the application program running subunit is used for running the application program based on a local operating system;
if not, entering an application type reading subunit and a third application program installation and operation subunit;
the application type reading subunit is configured to read an application type of the application program included in the state parameter;
and the third application program installation and running subunit is used for running the application program with the same application type as the application program in the local operating system.
Optionally, the apparatus for implementing application synchronization on a terminal device to be synchronized includes:
and the data link establishing unit is used for establishing a data link with the source terminal equipment.
Optionally, the data link establishing unit is implemented based on a built-in Wi-Fi module; correspondingly, the data link establishing unit includes:
a TCP connection request receiving subunit, configured to receive a connection request for establishing a TCP connection, sent by the source terminal device;
a TCP connection feedback request sending subunit, configured to send a feedback request to the source terminal device;
and the TCP connection confirmation message subunit is used for receiving the connection confirmation message sent by the source terminal equipment.
Optionally, the apparatus for implementing application synchronization on a terminal device to be synchronized includes:
a screen resolution parameter reading unit, configured to read a screen resolution parameter of the source terminal device included in the state parameter;
the local screen resolution parameter acquisition unit is used for acquiring a local screen resolution parameter based on a local operating system;
a screen resolution parameter judging unit, configured to judge whether a screen resolution parameter of the source terminal device is consistent with the local screen resolution parameter;
if yes, entering the next unit; (ii) a
If not, entering a conversion unit;
and the conversion unit is used for converting the state parameters and the content information into the content information adaptive to the local screen resolution parameters according to preset rules.
Optionally, the apparatus for implementing application synchronization on a terminal device to be synchronized includes:
and the screen updating unit is used for executing screen updating operation.
Optionally, the apparatus for implementing application synchronization on a terminal device to be synchronized includes:
a synchronization frequency reading unit for reading the synchronization frequency contained in the state parameter;
and a synchronization unit, configured to enter the synchronization data receiving unit 401, the data reading unit 402, the application program running unit 403, the application interface generating unit 404, and the application interface displaying unit 405 according to the synchronization frequency.
Optionally, the application interface generating unit 404 includes:
the application program process acquisition subunit is used for acquiring an application program process corresponding to the application program based on a local operating system;
the memory address field searching subunit is used for searching a memory address field corresponding to the application program process in a memory space;
a data record updating subunit, configured to update the data record recorded in the memory address field with the state parameter and the content information;
and the application interface generating subunit is configured to load, by the application program, the updated data record recorded in the memory address field, and generate the application interface.
Optionally, the apparatus for implementing application synchronization on a terminal device to be synchronized includes:
and the synchronous message receiving unit is used for receiving the synchronous message sent by the source terminal equipment.
Optionally, the apparatus for implementing application synchronization on a terminal device to be synchronized includes:
and the synchronous feedback message sending unit is used for sending a synchronous feedback message to the source terminal equipment.
The embodiment of the method for synchronizing the application programs provided by the application is as follows:
in the above embodiments, a method for synchronizing applications and a method for implementing application synchronization on a terminal device to be synchronized are provided, and on this basis, the present application also provides a method for synchronizing applications, which is implemented based on the above method for synchronizing applications and the above method for implementing application synchronization on a terminal device to be synchronized.
The present embodiment is basically similar to the content of the above method embodiment for synchronizing an application program and the above method embodiment for implementing application program synchronization in a terminal device to be synchronized, and details of the same content are not repeated, so please refer to the above method embodiment for synchronizing an application program and the above method embodiment for implementing application program synchronization in a terminal device to be synchronized provided by the present application for reading this embodiment.
The following describes a method for application synchronization provided by the present application with reference to the accompanying drawings, and describes various steps of the method.
Referring to fig. 5, a flowchart of an embodiment of a method for application synchronization is provided.
The application program synchronization method provided by the application program comprises the following steps:
step S501, the source terminal equipment synchronizes the application program by the method for synchronizing the application program;
step S502, the terminal equipment to be synchronized realizes the synchronization of the application program by the method for realizing the synchronization of the application program in the terminal equipment to be synchronized.
The embodiment of the device for application program synchronization provided by the application is as follows:
in the foregoing embodiment, a method for application synchronization is provided, and correspondingly, an apparatus for application synchronization is also provided.
Referring to fig. 6, a schematic diagram of an embodiment of an apparatus for application synchronization according to the present application is shown.
Since the device embodiment is basically similar to the method embodiment, the description is relatively simple, and the relevant portions only need to refer to the corresponding description of the method embodiment. The device embodiments described below are merely illustrative.
The application provides a device for application program synchronization, including:
the above-mentioned means 601 for synchronizing applications;
and the above-mentioned device 602 for implementing application program synchronization in the terminal device to be synchronized.
As a preferred implementation manner, the apparatus for synchronizing applications provided in this embodiment includes the above apparatus 601 for synchronizing applications and the above apparatus 602 for implementing application synchronization on the terminal device to be synchronized; in a specific implementation, the apparatus for synchronizing the application may include the apparatus 601 for synchronizing the application and at least one apparatus for implementing application synchronization on the terminal device to be synchronized, which is not limited in this embodiment.
The embodiment of the system for synchronizing the application programs provided by the application is as follows:
in the foregoing embodiment, a method for application synchronization is provided, and correspondingly, the application also provides a system for application synchronization.
Referring to fig. 7, a schematic diagram of an embodiment of a system for application synchronization is shown, according to the present application.
Since the system embodiment is basically similar to the method embodiment, the description is relatively simple, and the relevant portions only need to refer to the corresponding description of the method embodiment. The system embodiments described below are merely illustrative.
The application provides a system for application synchronization, comprising:
a source terminal device 701;
a terminal device to be synchronized 702;
and a terminal device to be synchronized 703;
the source terminal device 701 is configured to execute the method for synchronizing the application programs;
the terminal device to be synchronized 702 is configured to execute the method for implementing application synchronization in the terminal device to be synchronized;
the terminal device to be synchronized 703 is configured to execute the method for implementing application synchronization in the terminal device to be synchronized.
As a preferred embodiment, the system for synchronizing application programs provided in this embodiment includes a source terminal device 701, two terminal devices to be synchronized, a terminal device to be synchronized 702, and a terminal device to be synchronized 703; in specific implementation, the system for synchronizing the application programs may include a source terminal device 701 and a terminal device to be synchronized; in addition, the source terminal device 701 and a plurality of terminal devices may also be included, which is not limited in this embodiment.
Although the present application has been described with reference to the preferred embodiments, it is not intended to limit the present application, and those skilled in the art can make variations and modifications without departing from the spirit and scope of the present application, therefore, the scope of the present application should be determined by the claims that follow.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
1. Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include non-transitory computer readable media (transient media), such as modulated data signals and carrier waves.
2. As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.

Claims (33)

1. A method for synchronizing applications, comprising:
acquiring at least one application program displayed on a screen;
reading state parameters and content information of an application interface displayed on a screen by the application program;
generating synchronization data for the application;
sending the synchronous data to at least one terminal device to be synchronized;
wherein, the synchronous data comprises the state parameter and the content information of the application program;
the state parameters comprise related parameters for positioning the application program in the application interface;
the content information comprises the related content of the application program in the application interface;
the application program can generate the application interface by loading the state parameters and the content information;
the state parameters comprise the application type of the application program, so that the terminal device to be synchronized runs the application program with the same application type as the application program by reading the application type of the application program under the condition that the application program is not found.
2. The method for synchronizing applications according to claim 1, wherein the status parameters further comprise at least one of:
name information of the application program, download address, installation package, version information, relevant parameters of the application interface displayed on the screen, relevant parameters for positioning the content position of the application program, screen resolution parameters and synchronization frequency.
3. The method for synchronizing applications according to claim 1, wherein the content information comprises at least one of:
the data records related to the application interface displayed on the screen by the application program, the loaded terminal equipment related data, the user data and the data records acquired from the server.
4. Method for synchronizing applications according to claim 1, characterized in that said acquisition is preceded by at least one application step of screen display, the following steps being performed:
detecting whether at least one terminal device to be synchronized exists in a set area range;
if yes, executing the following steps:
establishing a data link with the terminal equipment to be synchronized;
or
Sending an application synchronization request to the terminal equipment to be synchronized;
receiving a synchronization confirmation message fed back by the terminal equipment to be synchronized;
and establishing a data link with the terminal equipment to be synchronized.
5. The method for synchronizing applications according to claim 4, wherein the detecting whether there is at least one terminal device to be synchronized within the set area is implemented as follows:
whether at least one terminal device to be synchronized exists in a coverage range based on a Bluetooth signal sent by a built-in Bluetooth module is detected.
6. The method for synchronizing applications according to claim 4, wherein the detecting whether there is at least one terminal device to be synchronized within the set area is implemented as follows:
scanning Wi-Fi hotspots based on a built-in Wi-Fi module;
connecting to the scanned Wi-Fi hotspot;
and detecting whether at least one terminal device to be synchronized connected with the Wi-Fi hotspot exists.
7. The method for synchronizing applications according to claim 4, wherein the detecting whether there is at least one terminal device to be synchronized within the set area is implemented as follows:
establishing a Wi-Fi hotspot based on a built-in Wi-Fi module;
and detecting whether at least one terminal device to be synchronized connected with the Wi-Fi hotspot exists.
8. The method for synchronizing applications according to claim 4, wherein the detecting whether there is at least one terminal device to be synchronized within the set area is implemented as follows:
acquiring geographic position information based on LBS;
and detecting whether at least one terminal device to be synchronized exists in the set area range based on LBS (location based service) by combining the geographic position information.
9. The method for synchronizing applications according to claim 4, wherein the establishing of the data link with the terminal device to be synchronized comprises:
sending a connection request for establishing TCP connection to the terminal equipment to be synchronized;
receiving a feedback request fed back by the terminal equipment to be synchronized;
and sending a connection confirmation message to the terminal equipment to be synchronized.
10. Method for synchronizing applications according to claim 9, characterized in that after the substep of sending a connection confirmation message to the terminal device to be synchronized,
correspondingly, the step of sending the synchronization data to at least one terminal device to be synchronized includes:
and sending the synchronous data to the terminal equipment to be synchronized through the established TCP connection.
11. The method for synchronizing applications according to claim 1, comprising:
according to a preset synchronization frequency, executing the step of acquiring at least one application program displayed on a screen, the step of reading the state parameters and the content information of an application interface displayed on the screen by the application program, the step of generating the synchronization data of the application program, and the step of sending the synchronization data to at least one terminal device to be synchronized until an application program synchronization termination instruction input by a user is received.
12. The method for synchronizing applications according to claim 11, wherein the synchronization frequency is greater than 24 hertz.
13. The method for synchronizing application programs according to claim 1, wherein the step of reading the state parameters and the content information of the application interface displayed on the screen by the application program comprises the following steps:
acquiring an application program process corresponding to the application program based on a local operating system;
searching a memory address segment corresponding to the application program process in a memory space;
and reading the state parameters and the content information of the application program recorded in the memory address field.
14. The method for synchronizing applications according to claim 1, wherein the step of generating synchronization data for the applications comprises:
and encapsulating the state parameters and the content information of the application program in a data packet mode to generate the synchronous data.
15. Method for synchronizing applications according to claim 1, characterized in that said acquisition is preceded by at least one application step of screen display, the following steps being performed:
and receiving an application program synchronization instruction input by a user.
16. The method for synchronizing applications according to claim 1, comprising:
and sending a synchronization message to the terminal equipment to be synchronized.
17. The method for synchronizing applications according to claim 1, comprising:
and receiving the synchronous feedback message sent by the terminal equipment to be synchronized.
18. An apparatus for synchronizing applications, comprising:
an application acquisition unit for acquiring at least one application displayed on a screen;
the application program data reading unit is used for reading the state parameters and the content information of an application interface displayed on a screen by the application program;
a synchronous data generation unit for generating synchronous data of the application program;
a synchronous data sending unit, configured to send the synchronous data to at least one terminal device to be synchronized;
wherein, the synchronous data comprises the state parameter and the content information of the application program;
the state parameters comprise related parameters for positioning the application program in the application interface;
the content information comprises the related content of the application program in the application interface;
the application program can generate the application interface by loading the state parameters and the content information;
the state parameters comprise the application type of the application program, so that the terminal device to be synchronized runs the application program with the same application type as the application program by reading the application type of the application program under the condition that the application program is not found.
19. A method for realizing application program synchronization in a terminal device to be synchronized is characterized by comprising the following steps:
receiving synchronous data of an application program sent by source terminal equipment;
reading the state parameters and the content information of the application program contained in the synchronous data;
running the application program based on a local operating system;
loading the state parameters and the content information by the application program to generate an application interface;
displaying an application interface of the application program on a screen;
wherein, the synchronous data comprises the state parameter and the content information of the application program;
the state parameters comprise related parameters for positioning the application program in the application interface;
the content information comprises the related content of the application program in the application interface;
the application program can generate the application interface by loading the state parameters and the content information;
correspondingly, the step of running the application program based on the local operating system comprises the following steps:
searching the application program in a local operating system, and judging whether the application program exists in the local operating system;
if yes, running the application program based on a local operating system;
if not, reading the application type of the application program contained in the state parameter;
and running the application program with the same application type as the application program in the local operating system.
20. The method for implementing application program synchronization on the terminal device to be synchronized according to claim 19, wherein the step of running the application program based on the local operating system comprises:
searching the application program in a local operating system, and judging whether the application program exists in the local operating system;
if yes, running the application program based on a local operating system;
if not, reading the download address of the application program contained in the state parameter;
downloading the application program in a local operating system;
and installing and running the application program.
21. The method for implementing application program synchronization on the terminal device to be synchronized according to claim 19, wherein the step of running the application program based on the local operating system comprises:
searching the application program in a local operating system, and judging whether the application program exists in the local operating system;
if yes, running the application program based on a local operating system;
if not, reading the installation package of the application program contained in the state parameter;
and installing and running the application program in a local operating system.
22. The method for implementing application synchronization on the terminal device to be synchronized according to claim 19, wherein the step of receiving the synchronization data of the application sent by the source terminal device is preceded by the steps of:
and establishing a data link with the source terminal equipment.
23. The method for synchronizing applications at a terminal device to be synchronized according to claim 22, wherein the data link with the source terminal device is established based on a built-in Wi-Fi module;
the establishment of the data link with the source terminal equipment is realized by adopting the following mode:
receiving a connection request for establishing TCP connection sent by the source terminal equipment;
sending a feedback request to the source terminal equipment;
and receiving a connection confirmation message sent by the source terminal equipment.
24. The method for synchronizing the application programs on the terminal device to be synchronized according to claim 19, comprising:
reading a screen resolution parameter of the source terminal device contained in the state parameter;
acquiring a local screen resolution parameter based on a local operating system;
judging whether the screen resolution parameter of the source terminal equipment is consistent with the local screen resolution parameter or not;
if yes, entering the next step;
if not, the state parameters and the content information are converted into the content information adaptive to the local screen resolution parameters according to a preset rule.
25. The method for implementing application program synchronization on the terminal device to be synchronized according to claim 19, wherein after the step of displaying the application interface of the application program on the screen, the following steps are executed:
a screen update operation is performed.
26. The method for synchronizing the application programs on the terminal device to be synchronized according to claim 19, comprising:
reading a synchronization frequency contained in the state parameter;
executing the step of receiving the synchronous data of the application program sent by the source terminal equipment according to the synchronous frequency, reading the state parameter and the content information of the application program contained in the synchronous data, running the application program based on a local operating system, loading the state parameter and the content information by the application program, generating an application interface, and displaying the application interface of the application program on a screen.
27. The method for implementing application program synchronization on the terminal device to be synchronized according to claim 19, wherein the step of loading the state parameters and the content information by the application program and generating the application interface comprises:
acquiring an application program process corresponding to the application program based on a local operating system;
searching a memory address segment corresponding to the application program process in a memory space;
updating the data record recorded by the memory address field according to the state parameter and the content information;
and loading the updated data record recorded in the memory address field by the application program to generate the application interface.
28. The method for synchronizing the application programs on the terminal device to be synchronized according to claim 19, comprising:
and receiving the synchronous message sent by the source terminal equipment.
29. The method for synchronizing the application programs on the terminal device to be synchronized according to claim 19, comprising:
and sending a synchronous feedback message to the source terminal equipment.
30. An apparatus for implementing application synchronization in a terminal device to be synchronized, comprising:
a synchronous data receiving unit, configured to receive synchronous data of an application program sent by a source terminal device;
a data reading unit, configured to read the state parameters and content information of the application program included in the synchronization data;
the application program running unit is used for running the application program based on a local operating system;
the application interface generating unit is used for loading the state parameters and the content information by the application program to generate an application interface;
the application interface display unit is used for displaying an application interface of the application program on a screen;
wherein, the synchronous data comprises the state parameter and the content information of the application program;
the state parameters comprise related parameters for positioning the application program in the application interface;
the content information comprises the related content of the application program in the application interface;
the application program can generate the application interface by loading the state parameters and the content information;
correspondingly, the running of the application program based on the local operating system comprises:
searching the application program in a local operating system, and judging whether the application program exists in the local operating system;
if yes, running the application program based on a local operating system;
if not, reading the application type of the application program contained in the state parameter;
and running the application program with the same application type as the application program in the local operating system.
31. A method for application synchronization, comprising:
the source terminal device performs the synchronization of the application program in the method for synchronizing the application program according to claim 1;
the terminal equipment to be synchronized implements the synchronization of the application program by the method for implementing application program synchronization in the terminal equipment to be synchronized as claimed in claim 19.
32. An apparatus for application synchronization, comprising:
means for synchronizing applications according to claim 18;
and at least one device for application synchronization at a terminal equipment to be synchronized according to claim 30.
33. A system for application synchronization, comprising:
a source terminal device;
and at least one terminal device to be synchronized;
the source terminal device for executing the method for synchronizing applications of claim 1;
the terminal device to be synchronized is configured to execute the method for implementing application synchronization in the terminal device to be synchronized according to claim 19.
CN201510209635.7A 2015-04-28 2015-04-28 Application program synchronization method, device and system Active CN104794008B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510209635.7A CN104794008B (en) 2015-04-28 2015-04-28 Application program synchronization method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510209635.7A CN104794008B (en) 2015-04-28 2015-04-28 Application program synchronization method, device and system

Publications (2)

Publication Number Publication Date
CN104794008A CN104794008A (en) 2015-07-22
CN104794008B true CN104794008B (en) 2021-06-15

Family

ID=53558818

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510209635.7A Active CN104794008B (en) 2015-04-28 2015-04-28 Application program synchronization method, device and system

Country Status (1)

Country Link
CN (1) CN104794008B (en)

Families Citing this family (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106469158B (en) * 2015-08-17 2019-10-08 杭州海康威视系统技术有限公司 Method of data synchronization and device
CN106610763B (en) * 2015-10-26 2020-11-20 阿里巴巴集团控股有限公司 Method and device for synchronizing user operation across screens
CN106951220B (en) * 2016-01-06 2020-04-07 腾讯科技(深圳)有限公司 Data processing method and device
CN106055199B (en) * 2016-05-26 2019-08-16 努比亚技术有限公司 A kind of information synchronization method and electronic equipment
CN107643930A (en) * 2016-07-22 2018-01-30 中兴通讯股份有限公司 Using operation method and Cloud Server
CN106482742B (en) * 2016-09-13 2019-05-28 Oppo广东移动通信有限公司 The acquisition methods and device of step counting data
CN106550190A (en) * 2016-10-31 2017-03-29 努比亚技术有限公司 A kind of camera control method and device
CN109471603A (en) * 2017-09-07 2019-03-15 华为终端(东莞)有限公司 A kind of interface display method and device
CN109600644B (en) * 2017-09-30 2021-08-13 华为终端有限公司 Method for remotely controlling television browser, related equipment and computer program product
CN108415678B (en) * 2018-02-09 2021-08-06 广州新博庭网络信息科技股份有限公司 Multi-screen display method and multi-screen display system
CN108469977B (en) * 2018-03-26 2021-05-25 张�林 Interface data management method
CN108513008A (en) * 2018-03-28 2018-09-07 努比亚技术有限公司 control right transfer method, mobile terminal and computer readable storage medium
CN110990029A (en) * 2019-11-27 2020-04-10 维沃移动通信有限公司 Application processing method and electronic equipment
CN113133107B (en) * 2019-12-30 2022-12-23 北京百度网讯科技有限公司 Method and device for synchronizing information
CN116361255A (en) * 2020-06-22 2023-06-30 华为技术有限公司 Data synchronization method, electronic device, and computer-readable storage medium
CN112202864B (en) * 2020-09-24 2022-12-09 建信金融科技有限责任公司 Context switching system, method, device, equipment and medium
CN113542340A (en) * 2021-01-07 2021-10-22 腾讯科技(深圳)有限公司 Multi-terminal configuration method, terminal and computer-readable storage medium
CN114884914B (en) * 2022-04-27 2024-04-02 青岛希望鸟科技有限公司 Application program on-screen communication method and system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103984579A (en) * 2014-05-30 2014-08-13 满金标 Method for multiple equipment rooms to share current application program real-time running state
CN104360852A (en) * 2014-10-30 2015-02-18 北京数字天域科技股份有限公司 Application program management method and application program management device of mobile terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103984579A (en) * 2014-05-30 2014-08-13 满金标 Method for multiple equipment rooms to share current application program real-time running state
CN104360852A (en) * 2014-10-30 2015-02-18 北京数字天域科技股份有限公司 Application program management method and application program management device of mobile terminal

Also Published As

Publication number Publication date
CN104794008A (en) 2015-07-22

Similar Documents

Publication Publication Date Title
CN104794008B (en) Application program synchronization method, device and system
US10135495B2 (en) Method and system for transferring data between plurality of devices
KR101906834B1 (en) Device and method for selecting resource of application in wireless terminal
KR102039028B1 (en) Apparatus and method for sharing a data of mobile terminal
EP4072114A1 (en) Audio output method and terminal device
CN101350870A (en) Method for conversing image and content, mobile terminal and OCR server
US11647364B2 (en) Special effect synchronization method, device, and storage medium
CN104426588A (en) Method and device for mobile terminal synergistic shooting
US20110252384A1 (en) Wireless display application
KR102162086B1 (en) Apparatus and method for sharing a data of mobile terminal
CN105263032A (en) Program acquiring method and device
CN110198452B (en) Live video previewing method, device and system
CN115599265A (en) Intelligent device control method, terminal device, server and storage medium
CN107690000B (en) Apparatus and method for processing data of mobile terminal
JP2020009030A (en) Information processing system, information processing system control method, and information processing system control program
KR102232363B1 (en) Apparatus and method for processing a data of mobile terminal
CN115190471B (en) Notification method, device, terminal and storage equipment under different networks
KR20200115420A (en) Apparatus and method for sharing a data of mobile terminal
CN115145508A (en) Screen transmission processing method, storage medium and related equipment
CN115022823A (en) Method, device and equipment for processing 5G short message
KR20180134321A (en) Apparatus and method for processing a data of mobile terminal
CN116112476A (en) Multimedia playing method, system, equipment and storage medium of cloud desktop
CN115022693A (en) Video screen projection method, device, equipment and storage medium
CN114979087A (en) Message processing method, device, equipment and storage medium
CN118075288A (en) Data synchronization method and related equipment

Legal Events

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