Desktop application program migration method and device, computer equipment and storage medium
1. A migration method of a desktop application is characterized by comprising the following steps:
acquiring image information of a display desktop of first terminal equipment;
acquiring text information and position information corresponding to an object displayed on the display desktop according to the image information, wherein the text information is used for identifying the object, the position information is used for indicating the position of the object displayed on the display desktop, and the object comprises: an application and/or a folder;
acquiring an object displayed on the display desktop;
and displaying the object on a display desktop of the second terminal device according to the text information and the position information of the object.
2. The method according to claim 1, wherein the obtaining text information and position information corresponding to the object displayed on the display desktop according to the image information comprises:
if the object is an application program, acquiring text information and position information of the application program displayed on the display desktop according to the image information;
if the object is a folder, acquiring text information and position information of the folder displayed on the display desktop according to the image information, triggering to open the folder, acquiring sub-image information of each page in the folder, and acquiring text information and position information of an application program displayed on the page according to the sub-image information of each page.
3. The method according to claim 1 or 2, wherein the location information comprises: coordinate information, or, sequence information;
the displaying the object on a display desktop of the second terminal device according to the text information and the position information of the object includes:
according to the text information of the object, determining coordinate information corresponding to the object, and displaying the object on a display desktop of second terminal equipment according to the coordinate information;
alternatively, the first and second electrodes may be,
and determining sequence information corresponding to the object according to the text information of the object, and displaying the object on a display desktop of the second terminal device according to the sequence information.
4. The method according to claim 3, wherein the determining, according to the text information of the object, sequence information corresponding to the object, and before displaying the object on a display desktop of the second terminal device according to the sequence information, further comprises:
and determining that the size proportions of the display desktops of the first terminal equipment and the second terminal equipment are different.
5. The method of claim 1 or 2, wherein the obtaining the object displayed on the display desktop comprises:
acquiring an object displayed by the display desktop from an application program server;
alternatively, the first and second electrodes may be,
and acquiring the object displayed on the display desktop from the first terminal equipment.
6. The method of claim 5, wherein before the obtaining the object displayed on the desktop from the first terminal device, further comprising:
and determining that the operating systems of the first terminal equipment and the second terminal equipment are the same.
7. The method of claim 6, wherein before the obtaining the object displayed on the desktop from the first terminal device, further comprising:
and establishing a connection path between the second terminal equipment and the first terminal equipment.
8. A migration apparatus for a desktop application, comprising:
the image information acquisition module is used for acquiring the image information of the display desktop of the first terminal equipment;
a text information and position information obtaining module, configured to obtain, according to the image information, text information and position information corresponding to an object displayed on the display desktop, where the text information is used to identify the object, and the position information is used to indicate a position of the object displayed on the display desktop, where the object includes: an application and/or a folder;
the object acquisition module is used for acquiring the object displayed on the display desktop;
and the object display module is used for displaying the object on a display desktop of the second terminal device according to the text information and the position information of the object.
9. A computer device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a method for migrating a desktop application as recited in any of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements a method for migrating a desktop application according to any of claims 1 to 7.
Background
At present, electronic devices such as terminal equipment and the like in the market have stronger and stronger performances, and application programs are more and more abundant. In practical applications, more and more programs are installed in terminal equipment by users. The desktop is used as a platform for bearing application programs built in the system and installed by a user, and is used for bearing the display of all programs and basic interaction with the user (including starting and uninstalling of the programs, dragging of program icons and the like). Therefore, the desktop needs to maintain efficient and clear principles for all application icon layouts, so that a user can quickly locate, use and manage the application.
However, when the user frequently changes the terminal device, for example, after the old terminal device is changed to a new terminal device, the arrangement of the application programs on the new terminal device may affect the user experience. In order to improve the adaptability of a user after replacing an old terminal device with a new terminal device, the user is generally required to arrange the application program on the new terminal device according to the arrangement mode of the old terminal device, the operation is complex, and the time and the labor are consumed.
Disclosure of Invention
In order to solve the technical problem or at least partially solve the technical problem, the present disclosure provides a desktop application migration method, apparatus, computer device, and storage medium, which improve the adaptability of a user to a second terminal device.
In a first aspect, an embodiment of the present disclosure provides a desktop application migration method, including:
acquiring image information of a display desktop of first terminal equipment;
acquiring text information and position information corresponding to an object displayed on the display desktop according to the image information, wherein the text information is used for identifying the object, the position information is used for indicating the position of the object displayed on the display desktop, and the object comprises: an application and/or a folder;
acquiring an object displayed on the display desktop;
and displaying the object on a display desktop of the second terminal device according to the text information and the position information of the object.
Optionally, the obtaining text information and position information corresponding to the object displayed on the display desktop according to the image information includes:
if the object is an application program, acquiring text information and position information of the application program displayed on the display desktop according to the image information;
if the object is a folder, acquiring text information and position information of the folder displayed on the display desktop according to the image information, triggering to open the folder, acquiring sub-image information of each page in the folder, and acquiring text information and position information of an application program displayed on the page according to the sub-image information of each page.
Optionally, the location information includes: coordinate information, or, sequence information;
the displaying the object on a display desktop of the second terminal device according to the text information and the position information of the object includes:
according to the text information of the object, determining coordinate information corresponding to the object, and displaying the object on a display desktop of second terminal equipment according to the coordinate information;
alternatively, the first and second electrodes may be,
and determining sequence information corresponding to the object according to the text information of the object, and displaying the object on a display desktop of the second terminal device according to the sequence information.
Optionally, the determining, according to the text information of the object, sequence information corresponding to the object, and before displaying the object on a display desktop of a second terminal device according to the sequence information, further includes:
and determining that the size proportions of the display desktops of the first terminal equipment and the second terminal equipment are different.
Optionally, the obtaining the object displayed on the display desktop includes:
acquiring an object displayed by the display desktop from an application program server;
alternatively, the first and second electrodes may be,
and acquiring the object displayed on the display desktop from the first terminal equipment.
Optionally, before the obtaining the object displayed on the display desktop from the first terminal device, the method further includes:
and determining that the operating systems of the first terminal equipment and the second terminal equipment are the same.
Optionally, before the obtaining the object displayed on the display desktop from the first terminal device, the method further includes:
and establishing a connection path between the second terminal equipment and the first terminal equipment.
In a second aspect, an embodiment of the present disclosure further provides a migration apparatus for a desktop application, including:
the image information acquisition module is used for acquiring the image information of the display desktop of the first terminal equipment;
a text information and position information obtaining module, configured to obtain, according to the image information, text information and position information corresponding to an object displayed on the display desktop, where the text information is used to identify the object, and the position information is used to indicate a position of the object displayed on the display desktop, where the object includes: an application and/or a folder;
the object acquisition module is used for acquiring the object displayed on the display desktop;
and the object display module is used for displaying the object on a display desktop of the second terminal device according to the text information and the position information of the object.
In a third aspect, an embodiment of the present disclosure further provides a computer device, including:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the migration method of the desktop application as described in any one of the first aspects.
In a fourth aspect, the disclosed embodiments also provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the migration method of the desktop application according to any one of the first aspect.
Compared with the prior art, the technical scheme provided by the embodiment of the disclosure has the following advantages:
according to the migration method and device of the desktop application program, the computer device and the storage medium, the image information of the display desktop of the first terminal device is obtained, the text information and the position information corresponding to the object displayed on the display desktop are obtained according to the obtained image information, the object displayed on the display desktop is obtained, the object is displayed on the display desktop of the second terminal device according to the obtained text information and the position information, when the first terminal device is replaced by the second terminal device, the arrangement mode of the objects in the second terminal device is the same as the arrangement mode of the first terminal device, the operation is convenient and fast, and the adaptability of a user to the second terminal device is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present disclosure, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic flowchart of a migration method of a desktop application according to an embodiment of the present disclosure;
fig. 2 is a schematic diagram of image information of a display desktop of a first terminal device according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram of image information of a display desktop of another first terminal device provided in the embodiment of the present disclosure;
FIG. 4 is a flowchart illustrating another desktop application migration method provided by an embodiment of the present disclosure;
FIG. 5 is a flowchart illustrating a migration method of a desktop application according to another embodiment of the present disclosure;
FIG. 6 is a flowchart illustrating a migration method of a desktop application according to another embodiment of the present disclosure;
FIG. 7 is a flowchart illustrating a migration method of a desktop application according to another embodiment of the present disclosure;
FIG. 8 is a flowchart illustrating a migration method of a desktop application according to another embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of a migration apparatus for a desktop application according to an embodiment of the present disclosure;
fig. 10 is a schematic diagram of a computer device provided by an embodiment of the disclosure.
Detailed Description
In order that the above objects, features and advantages of the present disclosure may be more clearly understood, aspects of the present disclosure will be further described below. It should be noted that the embodiments and features of the embodiments of the present disclosure may be combined with each other without conflict.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure, but the present disclosure may be practiced in other ways than those described herein; it is to be understood that the embodiments disclosed in the specification are only a few embodiments of the present disclosure, and not all embodiments.
Fig. 1 is a schematic flowchart of a migration method of a desktop application according to an embodiment of the present disclosure. The embodiment can be applied to the condition that the receipts of the old mobile phone are migrated to the new mobile phone. The method of the embodiment can be executed by a migration apparatus of a desktop application, which can be implemented in a hardware/software manner and can be configured in a computer device. The desktop application program migration method can be achieved according to any embodiment of the application.
In the prior art, after a user is replaced with a new terminal device from an old terminal device, in order to ensure the adaptability of the operation of the new terminal device, generally, an application program on a desktop of the new terminal device is distributed according to the application program on the desktop of the old terminal device, when the number of application programs on the desktop of the old terminal device is large, after the application program on the desktop of the old terminal device is transferred to the desktop of the new terminal device, the application program on the desktop of the new terminal device needs to be manually distributed and transferred, and the operation is complex, time-consuming and labor-consuming. In order to ensure that a user is more suitable for operating an application program on a desktop of a new terminal device after the application program is migrated from an old terminal device to the new terminal device, the embodiment of the disclosure provides a migration method of the desktop application program.
As shown in fig. 1, the method specifically includes the following steps:
and S110, acquiring image information of a display desktop of the first terminal device.
Specifically, the first terminal device 11 corresponds to a migrated terminal device, and the second terminal device corresponds to a terminal device to be migrated. As shown in fig. 2, the image information of the display desktop of the first terminal apparatus 11 includes image information including an object on the display desktop of the first terminal apparatus 11. In order to ensure that the arrangement mode of the objects included on the display desktop of the second terminal device to be migrated is the same as the arrangement mode of the objects included on the display desktop of the first terminal device 11 to be migrated, first, image information of the display desktop of the first terminal device 11 is obtained.
And S120, acquiring text information and position information corresponding to the object displayed on the display desktop according to the image information.
Specifically, the text information is used to identify the object, the position information is used to indicate the position of the object displayed on the display desktop, and the object includes: applications and/or folders.
With continued reference to fig. 2, after the image information of the display desktop of the first terminal device 11 is acquired, the text information and the position information corresponding to the object displayed on the display desktop are acquired according to the image information. For example, when the acquired image information of the display desktop of the first terminal device 11 is shown in fig. 2, the text information and the position information are different in correspondence to different objects in fig. 2. The text information is chat, the corresponding position information is an object in a first row and a first column, the text information is movement, the corresponding position information is an object in a first row and a second column, the text information is arrival, the corresponding position information is an object in a first row and a third column, the text information is shopping, the corresponding position information is an object in a first row and a fourth column, the text information is game, the corresponding position information is an object in a second row and a first column, the text information is photo, the corresponding position information is an object in a second row and a second column, the text information is entertainment, the corresponding position information is an object in a second row and a third column, the text information is map, and the corresponding position information is an object in a second row and a fourth column. In addition, the objects displayed on the display desktop include applications and/or folders, for example, the objects corresponding to text information such as chat, sports, arrival, shopping, entertainment or maps are applications, and the objects corresponding to text information such as games or photographs are folders.
In the foregoing embodiment, the position of the object displayed on the display desktop is exemplarily indicated by the number of rows and the number of columns, and in other possible embodiments, the position of the object displayed on the display desktop may also be indicated by the sequence information, for example, an object corresponding to text information is a first object corresponding to chat, an object corresponding to text information is a second object corresponding to motion, and an object corresponding to text information is an eighth object corresponding to a map.
And if the object is an application program, acquiring text information and position information of the application program displayed on the display desktop according to the image information.
Because the object displayed on the display desktop includes the application program and/or the folder, when the object displayed on the display desktop is the application program, the text information and the position information of the application program displayed on the display desktop are obtained according to the image information, that is, the text information and the position information corresponding to different application programs are obtained, for example, the text information corresponding to the application program which is chat software is chat, and the corresponding position information is a first line and a first column, or a first software.
And if the object is a folder, acquiring text information and position information of the folder displayed on the display desktop according to the image information, triggering to open the folder, acquiring sub-image information of each page in the folder, and acquiring the text information and the position information of the application program displayed on the page according to the sub-image information of each page.
When an object displayed on the display desktop is a folder, acquiring text information and position information of the folder displayed on the display desktop according to the image information, namely acquiring the text information and the position information corresponding to different folders, and triggering to open the folder after acquiring the text information and the position information of the folder, illustratively, after triggering to open the folder in which the text information is a game in fig. 2, the image information of the display desktop of the first terminal device is as shown in fig. 3, and after triggering to open the folder, acquiring sub-image information of each page in the folder, and acquiring the text information and the position information of an application program displayed on the page according to the sub-image information of each page.
In fig. 3, after the folder with the text information as the game in fig. 2 is triggered to open, the image information of the display desktop of the first terminal device corresponds to the sub-image information of the first page in the folder, and when the number of the application programs included in the folder with the text information as the game is greater than or equal to the preset number of the application programs of each page set in the folder, the application programs included in the folder are displayed in pages, where fig. 3a exemplarily shows that the text information is the sub-image information of the first page in the folder with the game, and fig. 3b exemplarily shows that the text information is the sub-image information of the second page in the folder with the game. After the sub-image information of the first page in the folder is obtained, the sub-image information of the second page in the folder is triggered to be displayed by the page through page sliding. And when the folder contains n pages, sequentially acquiring the sub-image information of the n pages.
And after the sub-image information of the first page in the folder with the text information as the game is acquired, acquiring the text information and the position information corresponding to the object displayed on the display desktop according to the sub-image information of the first page. Illustratively, when the acquired image information is shown in fig. 3a, the image information corresponds to different objects in fig. 3a, where the text information is game 1, the position information corresponds to a folder, a first page, and an object in a first row and a first column of the game, the text information corresponds to game 2, the position information corresponds to a folder, a first page, and an object in a first row and a second column of the game, and the text information corresponds to game 9. After obtaining the subimage information of the first page in the folder, the subimage information of the second page in the folder is triggered to be displayed through page sliding, wherein the text information is a game 10, the corresponding objects are the folder, the second page and the first line and the first column of the position information game, the text information is a game 11, and the corresponding objects are the folder, the second page and the first line and the second column of the position information game.
And S130, acquiring an object displayed on the display desktop.
After the text information and the position information corresponding to the object displayed on the display desktop are acquired according to the image information, the object displayed on the display desktop is acquired, for example, a connection channel is established between the first terminal device and the second terminal device, the object displayed on the display desktop of the first terminal device is acquired through the connection channel, and in addition, an object which is consistent with the text information corresponding to the object displayed on the display desktop of the first terminal device can be downloaded from the application server according to the acquired text information corresponding to the object displayed on the display desktop of the first terminal device.
And S140, displaying the object on a display desktop of the second terminal device according to the text information and the position information of the object.
After the object displayed on the display desktop is acquired, the acquired object is arranged on the display desktop of the second terminal device according to the text information and the position information corresponding to the object displayed on the display desktop acquired in step S120. For example, if an object displayed on the display desktop of the first terminal device is acquired through the connection channel, after the object displayed on the display desktop of the first terminal device is acquired, the position information corresponding to the object is determined through the text information of the object, for example, the first object acquired by the second terminal device from the first terminal device through the connection channel is the reach software, at this time, the reach can determine that the acquired first object is located in the first row and the third column of the first terminal device according to the acquired text information corresponding to the first object, and the reach software corresponding to the text information is displayed in the first row and the third column of the display desktop of the second terminal device. If the object displayed on the desktop displayed by the first terminal device is obtained through the application server, after the object displayed on the desktop displayed by the first terminal device is obtained on the application server, the position information corresponding to the object is determined through the text information of the object, for example, the person-to-person application is downloaded on the application server according to the text information corresponding to the person-to-person software, at this time, it can be determined that the first object downloaded from the application server is located in the first row and the third column on the first terminal device according to the text information corresponding to the person-to-person software, and the person-to-person software corresponding to the person-to-person information is displayed through the first row and the third column on the display desktop of the second terminal device.
It should be noted that, the above embodiment exemplifies that the image information of one display desktop of the first terminal device is obtained as an example, in other possible embodiments, the image information of the display desktop of the first terminal device may be multiple, that is, the object on the display desktop of the first terminal device is set on multiple pages, and when the display desktop of the first terminal device includes multiple pages, the image information of different display desktops may be sequentially obtained by triggering to slide the display desktop of the first terminal device.
According to the migration method of the desktop application program, the image information of the display desktop of the first terminal device is obtained, the text information and the position information corresponding to the object displayed on the display desktop are obtained according to the obtained image information, the object displayed on the display desktop is obtained, the object is displayed on the display desktop of the second terminal device according to the obtained text information and the position information of the object, when the first terminal device is replaced by the second terminal device, the arrangement mode of the objects in the second terminal device is the same as that of the first terminal device, the operation is convenient and fast, and the adaptability of a user to the second terminal device is improved.
Optionally, the location information includes: coordinate information, or, alternatively, order information.
Specifically, when the position information corresponding to the object displayed on the display desktop and acquired according to the image information is coordinate information, an implementation manner of step S140 is as follows, and includes:
and S141, determining coordinate information corresponding to the object according to the text information of the object, and displaying the object on a display desktop of the second terminal device according to the coordinate information.
And after the object displayed on the display desktop is acquired, arranging the acquired object displayed on the display desktop of the second terminal equipment according to the coordinate information of the object. For example, if an object displayed on the display desktop of the first terminal device is obtained through the connection channel, that is, after the object displayed on the display desktop of the first terminal device is obtained through the connection channel, the coordinate information corresponding to the object is determined according to the text information of the object obtained from the terminal device. For example, when a first object acquired from the first terminal device through the connection channel is a person-to-reach application, the text information corresponding to the acquired object is a person-to-reach application, the coordinate information is a first row and a third column, it can be determined that the object is located in the first row and the third column on the first terminal device according to the text information (person-to-reach) corresponding to the object (person-to-reach application), the object corresponding to the text information (person-to-reach) is displayed in the first row and the third column on the display desktop of the second terminal device (i.e., the person-to-reach application), that is, the person-to-reach application is displayed in the first row and the third column on the display desktop of the second terminal device. When the object displayed on the display desktop of the first terminal equipment is acquired by the application server, firstly, the same object with the text information corresponding to the object displayed on the display desktop of the first terminal equipment is acquired at the application server, according to the matching of the text information corresponding to the object acquired from the application server and the text information corresponding to the object displayed on the display desktop acquired from the image information of the display desktop of the first terminal device, when the text information corresponding to the object acquired from the application server matches the text information corresponding to the object acquired from the image information of the display desktop of the first terminal device, and displaying the object downloaded from the application server on the display desktop of the second terminal device according to the position information corresponding to the object displayed on the display desktop, which is acquired from the image information of the display desktop of the first terminal device. For example, the coordinate information corresponding to the object displayed on the display desktop is the first row and the third column, and after the object of the reachability application is acquired from the application server, the object is displayed on the display desktop of the second terminal device according to the coordinate information displayed on the display desktop of the first terminal device by the reachability application, that is, the reachability application is displayed on the first row and the third column of the display desktop of the second terminal device.
According to the migration method of the desktop application program provided by the embodiment of the disclosure, the corresponding coordinate information of the object is determined according to the text information of the object, and the object is displayed on the display desktop of the second terminal device according to the coordinate information, so that the obtained objects are arranged according to the coordinate information displayed on the display desktop in the image information of the display desktop of the first terminal device, and it is ensured that the arrangement modes of the objects corresponding to the same text information are the same on the display desktops of the first terminal device and the second terminal device.
Optionally, when the position information corresponding to the object displayed on the display desktop and acquired according to the image information is position information, another implementation manner of step S140 is as follows, and includes:
and S142, determining sequence information corresponding to the object according to the text information of the object, and displaying the object on a display desktop of the second terminal device according to the sequence information.
And after the object displayed on the display desktop is acquired, arranging the acquired object displayed on the display desktop of the second terminal equipment according to the sequence information of the object. For example, if the object displayed on the desktop by the first terminal device is acquired through the connection channel, after the object displayed on the desktop by the first terminal device is acquired, the sequence information corresponding to the object is determined through the text information of the object. When a first object sent to a second terminal device by a first terminal device through a connecting channel is a person-to-reach application, the object can be determined to be a third application on the desktop of the first terminal device according to text information corresponding to the object, and the person-to-reach application corresponding to the text information is displayed at the position of the third application on the display desktop of the second terminal device. If the object displayed on the display desktop of the first terminal device is obtained through the application server, firstly, the same object as the object displayed on the display desktop of the first terminal device is obtained at the application server, the text information corresponding to the object obtained from the application server is matched with the text information corresponding to the object obtained from the image information of the display desktop of the first terminal device, and when the text information corresponding to the object obtained from the application server is matched with the text information corresponding to the object obtained from the image information of the display desktop of the first terminal device, the object downloaded from the application server is displayed on the display desktop of the second terminal device according to the sequence information corresponding to the object displayed on the display desktop obtained from the image information of the display desktop of the first terminal device.
The method for migrating the desktop application, provided by the embodiment of the disclosure, includes determining corresponding sequence information of an object according to text information of the object, and displaying the object on a display desktop of a second terminal device according to the sequence information, so as to realize that the obtained objects are arranged according to coordinate information displayed on the display desktop in image information of the display desktop of an obtained first terminal device, and ensure that the display desktops of the first terminal device and the second terminal device have the same arrangement mode of the objects corresponding to the same text information.
Optionally, before step S142, the method may further include:
and determining that the size proportions of the display desktops of the first terminal equipment and the second terminal equipment are different.
It should be noted that, when the size proportions of the display desktops of the first terminal device and the second terminal device are completely the same, the first terminal device and the second terminal device may both set four objects in the X-axis direction and set two objects in the Y-axis direction, and then step S140 may set the position information as coordinate information or sequence information in the display desktop display object of the second terminal device according to the text information and the position information of the objects. If the size proportions of the display desktops of the first terminal device and the second terminal device are different, for example, the first terminal device may set four objects in the X-axis direction, and may set two objects in the Y-axis direction, and the second terminal device may set three objects in the X-axis direction, and may set three objects in the Y-axis direction, at this time, in the display desktop display object of the second terminal device, according to the text information and the position information of the objects, in the process of displaying the display desktop display object of the first terminal device according to the coordinate information, there may be a problem that some objects cannot be displayed, for example, an object in the fourth column of the first row or an object in the fourth column of the second row may not be displayed. Therefore, after determining that the size ratios of the display desktops of the first terminal device and the second terminal device are different, step S140 displays the object in the display desktop of the second terminal device, where the position information includes only the order information according to the text information and the position information of the object.
Fig. 6 is a schematic flowchart of a migration method of a desktop application according to an embodiment of the present disclosure, where the embodiment is based on the foregoing embodiment, and an implementation manner of S130 is as follows, including:
s131, the object for displaying the desktop display is obtained from the application program server.
If the object displayed on the display desktop of the first terminal device is obtained through the application server, firstly, the same object as the object displayed on the display desktop of the first terminal device is obtained at the application server, the text information corresponding to the object obtained from the application server is matched with the text information corresponding to the object obtained from the image information of the display desktop of the first terminal device, and when the text information corresponding to the object obtained from the application server is matched with the text information corresponding to the object obtained from the image information of the display desktop of the first terminal device, the object downloaded from the application server is displayed on the display desktop of the second terminal device according to the sequence information corresponding to the object displayed on the display desktop obtained from the image information of the display desktop of the first terminal device.
Fig. 7 is a schematic flowchart of a migration method of a desktop application according to an embodiment of the present disclosure, where the embodiment is based on the foregoing embodiment, and another implementation manner of S130 is as follows, including:
s132, the object displayed on the desktop is obtained from the first terminal device.
For example, if the object displayed on the display desktop is obtained from the first terminal device, a connection channel needs to be established between the first terminal device and the second terminal device, and the object displayed on the display desktop is obtained from the first terminal device through the connection channel. After an object displayed on a display desktop is obtained from a first terminal device, the position information of the object on the first terminal device is determined according to the text information corresponding to the object obtained from the first terminal device, the object obtained from the first terminal device is displayed on the display desktop of a second terminal device according to the text information corresponding to the object obtained from the first terminal device and the position information, and the position information of the object displayed on the display desktop of the second terminal device is the same as the position information of the object displayed on the display desktop of the first terminal device.
Fig. 8 is a schematic flowchart of a still another desktop application migration method provided in an embodiment of the present disclosure, where the embodiment is based on fig. 7, and before step S132, the method further includes:
and S121, determining that the operating systems of the first terminal device and the second terminal device are the same.
The operating system of the terminal device in the mainstream of the existing market comprises an IOS operating system, an Android operating system and the like, and in order to avoid incompatibility of plug-in objects carried by different operating systems, when an object displayed on a display desktop is obtained from a first terminal device, it is required to determine that the operating systems of the first terminal device and a second terminal device are the same, so that the problem that the plug-in object on the display desktop of the second terminal device cannot be opened or certain functions are limited after the plug-in object displayed on the display desktop is obtained from the first terminal device is solved.
And S122, establishing a connection path between the second terminal equipment and the first terminal equipment.
Specifically, the establishing of the connection path between the first terminal device and the second terminal device may include bluetooth matching, hot spot connection, Near Field Communication (NFC), or the like between the first terminal device and the second terminal device. And after a connecting path between the first terminal equipment and the second terminal equipment is established, acquiring an object displayed on the display desktop from the first terminal equipment through the connecting path.
According to the migration method of the desktop application program provided by the embodiment of the disclosure, when the operating systems of the first terminal device and the second terminal device are the same, the connection path can be established between the first terminal device and the second terminal device, and the object displayed on the display desktop can be obtained from the first terminal device through the connection path, so that the universality of functions in the object displayed on the display desktop and received by the second terminal device through the connection path is ensured, and the problem that the object displayed on the display desktop cannot be opened or some functions are restricted due to incompatibility of the operating systems after the object displayed on the display desktop of the first terminal device is transmitted to the display desktop of the second terminal device is solved.
Fig. 9 is a schematic structural diagram of a migration apparatus for a desktop application according to an embodiment of the present disclosure, and as shown in fig. 9, the migration apparatus includes:
an image information obtaining module 910, configured to obtain image information of a display desktop of a first terminal device.
A text information and position information obtaining module 920, configured to obtain, according to the image information, text information and position information corresponding to an object displayed on the display desktop, where the text information is used to identify the object, and the position information is used to indicate a position of the object displayed on the display desktop, where the object includes: applications and/or folders.
An object obtaining module 930, configured to obtain an object displayed on the display desktop.
And an object display module 940, configured to display the object on a display desktop of the second terminal device according to the text information and the location information of the object.
According to the migration device of the desktop application provided by the embodiment of the disclosure, the image information acquisition module acquires the image information of the display desktop of the first terminal device, the text information and position information acquisition module acquires the text information and position information corresponding to the object displayed on the display desktop according to the acquired image information, the object acquisition module acquires the object displayed on the display desktop, and the object display module displays the object on the display desktop of the second terminal device according to the acquired text information and position information of the object, so that when the first terminal device is replaced by the second terminal device, the arrangement mode of the objects in the second terminal device is the same as the arrangement mode of the first terminal device, the operation is convenient and fast, and the adaptability of a user to the new terminal device is improved.
Fig. 10 is a schematic structural diagram of a computer device provided in an embodiment of the present disclosure. As shown in fig. 10, the computer apparatus includes a processor 610, a memory 620, an input device 630, and an output device 640; the number of processors 610 in the computer device may be one or more, and one processor 610 is taken as an example in fig. 10; the processor 610, the memory 620, the input device 630 and the output device 640 in the computer apparatus may be connected by a bus or other means, and the connection by the bus is exemplified in fig. 10.
The memory 620 is used as a computer-readable storage medium for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the migration method of the desktop application in the embodiment of the present invention. The processor 610 executes various functional applications and data processing of the computer device by executing the software programs, instructions and modules stored in the memory 620, that is, implements the migration method of the desktop application provided by the embodiment of the present invention.
The memory 620 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 620 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 620 may further include memory located remotely from the processor 610, which may be connected to a computer device through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 630 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device, and may include a keyboard, a mouse, and the like. The output device 640 may include a display device such as a display screen.
The embodiment of the disclosure also provides a storage medium containing computer executable instructions, and the computer executable instructions are used for realizing the migration method of the desktop application program provided by the embodiment of the invention when being executed by a computer processor.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the method operations described above, and may also perform related operations in the migration method of the desktop application provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the migration apparatus, the included units and modules are only divided according to the functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present disclosure, which enable those skilled in the art to understand or practice the present disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the disclosure. Thus, the present disclosure is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
- 上一篇:石墨接头机器人自动装卡簧、装栓机
- 下一篇:显示方法及装置