Application synchronization installation method, device, equipment and readable storage medium
By detecting and downloading adapted application software between smart terminal devices, the problem of cumbersome operation of using application software simultaneously is solved, and synchronous installation and display optimization of applications between devices are realized.
Patent Information
- Application Number
- CN202010950763.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-10
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2040-09-10
AI Technical Summary
When using application software synchronously between smart terminal devices, users need to re-download the application software on the main device, resulting in cumbersome operations.
When the slave device installs the target application, it actively detects whether the target application has been installed on the master device, and obtains the adapted installation path to download and install the application. This ensures that the master device and the slave device maintain application software synchronization and avoids downloading unsuitable applications. Then replace it again.
It simplifies the operation of synchronizing the use of the same application software on the master device and the slave device, ensuring that the application layout specifications and display resolution are adapted, and improving the user experience and application synchronization between devices.
Smart Images

Figure CN112333490B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent terminal technology, and in particular to an application synchronous installation method, device, equipment and computer-readable storage medium. Background Art
[0002] With the development of smart terminal technology, smart terminals such as smart TVs, mobile phones, and tablets are increasingly widely used in people's daily lives. Although smart TVs are usually used as the main device for browsing programs, people often use mobile phones and tablets to watch videos from slave devices. For example, people use an application software on their mobile phones to browse videos on the subway, and at home, they switch to using a tablet or smart TV to use an application software installed on it to browse videos. In this application scenario, it often happens that the application software installed on the tablet or mobile phone is not installed on the TV side and cannot be used. If the user wants to continue using the same application software on the TV side, the application software needs to be re-downloaded on the TV side, which leads to the cumbersome technical problem of using the same application software on the master device and the slave device synchronously. Summary of the invention
[0003] The main purpose of the present invention is to provide an application synchronization installation method, aiming to solve the technical problem of cumbersome operation of synchronously using the same application software as that of a slave device on a master device.
[0004] To achieve the above object, the present invention provides an application synchronization installation method, which is applied to a master device and includes:
[0005] Obtaining the target application package name of the target application currently to be installed on the first slave device, and all application package names in the local root directory of the master device;
[0006] According to the target application package name and the names of all application packages, determining whether the target application has been installed in the main device; if the target application has not been installed in the main device, obtaining resolution information of the local display screen, and determining the target display resolution level corresponding to the main device according to the resolution information;
[0007] An installation path of a target application whose application layout specification is compatible with the target display resolution level is obtained, and the target application is downloaded and installed to the main device based on the installation path.
[0008] Optionally, the obtaining an installation path of a target application whose application layout specification is compatible with the target display resolution level, and downloading and installing the target application to the main device based on the installation path, comprises:
[0009] Obtain target aspect ratio parameters of the application displayed on the screen corresponding to the target display resolution level;
[0010] The installation path of a target application whose aspect ratio parameter displayed on the screen is greater than or equal to the target aspect ratio parameter is searched from the application cloud server, so as to download and install the target application from the installation path.
[0011] Optionally, the resolution information includes horizontal resolution and / or vertical resolution.
[0012] If the target application is not installed in the master device, obtaining the resolution information of the local display screen, and determining the target display resolution level corresponding to the master device according to the resolution information, including:
[0013] If the target application is not installed in the host device, obtaining the horizontal resolution and / or vertical resolution of the local display screen;
[0014] A display resolution level corresponding to the horizontal resolution and / or the vertical resolution is found from a preset resolution value level comparison table to serve as the target display resolution level.
[0015] Optionally, judging whether the target application has been installed in the main device according to the target application package name and the names of all application packages includes:
[0016] Using a table lookup method to determine whether there is an application package name among all the application package names that is completely identical in every character to the target application package name;
[0017] If there is an application package name in all the application package names that is completely identical to the target application package name in every character, it is determined that the target application has been installed in the host device; or,
[0018] If there is no application package name in all the application package names that is completely identical to the target application package name in every character, it is determined that the target application is not installed in the host device.
[0019] Optionally, the step of obtaining an installation path of a target application whose application layout specification is compatible with the target display resolution level, and downloading and installing the target application to the main device based on the installation path, further includes:
[0020] Determine a plurality of synchronization applications installed together with the master device and the first slave device, and a plurality of quick applications for which quick application icons have been set in the first slave device, and assign a first priority display weight to the same applications among the plurality of synchronization applications and the plurality of quick applications;
[0021] Determine a plurality of first applications installed on the master device, obtain a first usage frequency of each of the first applications, assign a second priority display weight to a first application whose first usage frequency exceeds a preset first frequency threshold, and obtain a display order of the plurality of first applications on the master device by combining the first priority display weight and the second priority display weight;
[0022] Determine a number of second applications that have been installed on the first slave device, obtain the second usage frequency of each of the second applications, and assign a third priority display weight to the second application whose second usage frequency exceeds a preset second frequency threshold, so as to combine the first priority display weight with the third priority display weight to obtain the display order of the number of second applications on the first slave device.
[0023] Optionally, after determining the plurality of synchronization applications installed jointly by the master device and the first slave device and the plurality of quick applications for which quick application icons have been set in the first slave device, the method further includes:
[0024] When it is detected that the master device and the first slave device are simultaneously running one or more of the synchronization applications, generating closing prompt information of the one or more synchronization applications;
[0025] The closing prompt information is sent to the first slave device to prompt the user to close one or more synchronization applications on the first slave device.
[0026] Optionally, after judging whether the target application has been installed in the host device according to the target application package name and the names of all application packages, the method further includes:
[0027] If the target application has been installed in the master device, obtaining the installed application package name in the root directory of the second slave device, and judging whether the second slave device has installed the target application according to the installed application package name and the target application package name;
[0028] If the target application is not installed on the second slave device, application installation prompt information of the target application is generated, and the application installation prompt information is sent to the second slave device to prompt the user to install the target application on the second slave device.
[0029] In addition, to achieve the above-mentioned purpose, the present invention also provides an application synchronous installation device, the application synchronous installation device comprising:
[0030] A package name acquisition module, used to acquire the target application package name of the target application currently to be installed by the first slave device, and all application package names in the local root directory of the master device;
[0031] an installation determination module, configured to determine whether the target application has been installed in the master device according to the target application package name and the names of all application packages; if the target application has not been installed in the master device, obtain resolution information of the local display screen, and determine a target display resolution level corresponding to the master device according to the resolution information;
[0032] The application installation module is used to obtain an installation path of a target application whose application layout specification is compatible with the target display resolution level, and download and install the target application to the main device based on the installation path.
[0033] In addition, to achieve the above-mentioned purpose, the present invention also provides an application synchronization installation device, which includes: a memory, a processor, and an application synchronization installation program stored in the memory and executable on the processor, and the application synchronization installation program implements the steps of the above-mentioned method when executed by the processor.
[0034] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, on which an application synchronization installation program is stored, and when the application synchronization installation program is executed by a processor, the steps of the above-mentioned method are implemented.
[0035] The present invention provides an application synchronization installation method, device, equipment and computer-readable storage medium. The application synchronization installation method can enable the master device to fully grasp the application installation status of the first slave device by actively detecting and judging whether the target application has been installed locally on the master device when the first slave device is installing the target application; by actively obtaining the installation path of the target application to download and install the target application when detecting that the first slave device is installing the target application that is not installed locally on the master device, so that the master device can maintain the synchronization of application software installation with the first slave device, which is convenient for users to synchronously use application software on the master device and the first slave device; by predetermining the target display resolution level adapted to the master device, and then selecting a target application with a suitable application layout specification version for downloading according to the target display resolution level, the cumbersome operation of downloading and replacing the target application with a suitable application layout specification after downloading the target application with an application layout specification that is not compatible with the display resolution of the master device is avoided, thereby solving the technical problem of cumbersome operation of synchronously using the same application software as the slave device on the master device. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 It is a schematic diagram of the structure of an application synchronization installation device in a hardware operating environment involved in an embodiment of the present invention;
[0037] Figure 2 A schematic diagram of a flow chart of a first embodiment of a synchronous installation method for applications of the present invention;
[0038] Figure 3 This is a schematic diagram of the functional modules of the synchronous installation device applied in the present invention.
[0039] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0040] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0041] like Figure 1 As shown, Figure 1 It is a schematic diagram of the structure of an application synchronization installation device in a hardware operating environment involved in an embodiment of the present invention.
[0042] The synchronous installation device used in the embodiment of the present invention is a terminal with an imaging device, preferably a smart TV.
[0043] like Figure 1 As shown, the application synchronization installation device may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The optional user interface 1003 may include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory). The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0044] Those skilled in the art will understand that Figure 1 The application synchronization installation device structure shown in the figure does not constitute a limitation on the application synchronization installation device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0045] like Figure 1 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an application synchronization installation program.
[0046] exist Figure 1 In the application synchronization installation device shown, the network interface 1004 is mainly used to connect to the background server and perform data communication with the background server; the user interface 1003 is mainly used to connect to the client (user end) and perform data communication with the client; and the processor 1001 can be used to call the application synchronization installation program stored in the memory 1005 and perform the following operations:
[0047] Obtaining the target application package name of the target application currently to be installed on the first slave device, and all application package names in the local root directory of the master device;
[0048] According to the target application package name and the names of all application packages, determining whether the target application has been installed in the main device; if the target application has not been installed in the main device, obtaining resolution information of the local display screen, and determining the target display resolution level corresponding to the main device according to the resolution information;
[0049] An installation path of a target application whose application layout specification is compatible with the target display resolution level is obtained, and the target application is downloaded and installed to the main device based on the installation path.
[0050] Furthermore, the step of obtaining an installation path of a target application whose application layout specification is compatible with the target display resolution level, and downloading and installing the target application to the main device based on the installation path includes:
[0051] Obtain target aspect ratio parameters of the application displayed on the screen corresponding to the target display resolution level;
[0052] The installation path of a target application whose aspect ratio parameter displayed on the screen is greater than or equal to the target aspect ratio parameter is searched from the application cloud server, so as to download and install the target application from the installation path.
[0053] Furthermore, the resolution information includes horizontal resolution and / or vertical resolution.
[0054] If the target application is not installed in the master device, the step of obtaining the resolution information of the local display screen and determining the target display resolution level corresponding to the master device according to the resolution information includes:
[0055] If the target application is not installed in the host device, obtaining the horizontal resolution and / or vertical resolution of the local display screen;
[0056] A display resolution level corresponding to the horizontal resolution and / or the vertical resolution is found from a preset resolution value level comparison table to serve as the target display resolution level.
[0057] Further, the step of determining whether the target application has been installed in the main device according to the target application package name and the names of all application packages includes:
[0058] Using a table lookup method to determine whether there is an application package name among all the application package names that is completely identical in every character to the target application package name;
[0059] If there is an application package name in all the application package names that is completely identical to the target application package name in every character, it is determined that the target application has been installed in the host device; or,
[0060] If there is no application package name in all the application package names that is completely identical to the target application package name in every character, it is determined that the target application is not installed in the host device.
[0061] Further, after the step of obtaining the installation path of the target application whose application layout specification is compatible with the target display resolution level, and downloading and installing the target application to the main device based on the installation path, the processor 1001 may be used to call the application synchronization installation program stored in the memory 1005, and perform the following operations:
[0062] Determine a plurality of synchronization applications installed together with the master device and the first slave device, and a plurality of quick applications for which quick application icons have been set in the first slave device, and assign a first priority display weight to the same applications among the plurality of synchronization applications and the plurality of quick applications;
[0063] Determine a plurality of first applications installed on the master device, obtain a first usage frequency of each of the first applications, assign a second priority display weight to a first application whose first usage frequency exceeds a preset first frequency threshold, and obtain a display order of the plurality of first applications on the master device by combining the first priority display weight and the second priority display weight;
[0064] Determine a number of second applications that have been installed on the first slave device, obtain the second usage frequency of each of the second applications, and assign a third priority display weight to the second application whose second usage frequency exceeds a preset second frequency threshold, so as to combine the first priority display weight with the third priority display weight to obtain the display order of the number of second applications on the first slave device.
[0065] Further, after the step of determining the plurality of synchronization applications installed jointly by the master device and the first slave device and the plurality of quick applications for which quick application icons have been set in the first slave device, the processor 1001 may be used to call the application synchronization installation program stored in the memory 1005, and perform the following operations:
[0066] When it is detected that the master device and the first slave device are simultaneously running one or more of the synchronization applications, generating closing prompt information of the one or more synchronization applications;
[0067] The closing prompt information is sent to the first slave device to prompt the user to close one or more synchronization applications on the first slave device.
[0068] Further, after the step of determining whether the target application has been installed in the master device according to the target application package name and the names of all application packages, the processor 1001 may be used to call the application synchronization installation program stored in the memory 1005, and perform the following operations:
[0069] If the target application has been installed in the master device, obtaining the installed application package name in the root directory of the second slave device, and judging whether the second slave device has installed the target application according to the installed application package name and the target application package name;
[0070] If the target application is not installed on the second slave device, application installation prompt information of the target application is generated, and the application installation prompt information is sent to the second slave device to prompt the user to install the target application on the second slave device.
[0071] Based on the above hardware structure, various embodiments of the application synchronous installation method of the present invention are proposed.
[0072] With the development of smart terminal technology, smart terminals such as smart TVs, mobile phones, and tablets are increasingly widely used in people's daily lives. Although smart TVs are usually used as the main device for browsing programs, people often use mobile phones and tablets to watch videos from slave devices. For example, people use an application software on their mobile phones to browse videos on the subway, and at home, they switch to using a tablet or smart TV to use an application software installed on it to browse videos. In this application scenario, it often happens that the application software installed on the tablet or mobile phone is not installed on the TV side and cannot be used. If the user wants to continue using the same application software on the TV side, the application software needs to be re-downloaded on the TV side, which leads to the cumbersome technical problem of using the same application software on the master device and the slave device synchronously.
[0073] In order to solve the above technical problems, the present invention provides an application synchronous installation method, that is, by actively detecting and determining whether the target application has been installed locally on the master device when the first slave device is installing the target application, so that the master device can fully grasp the application installation status of the first slave device; by actively obtaining the installation path of the target application to download and install the target application when it is detected that the first slave device is installing the target application that is not installed locally on the master device, so that the master device can maintain the synchronous installation of the application software with the first slave device, so that the user can use the application software synchronously on the master device and the first slave device; by pre-determining the target display resolution level adapted to the master device, and then selecting the target application with a suitable application layout specification version for download according to the target display resolution level, the cumbersome operation of downloading and replacing the target application with a suitable application layout specification after downloading the target application whose application layout specification is not compatible with the display resolution of the master device is avoided, thereby solving the cumbersome technical problem of operating the same application software as the slave device synchronously on the master device.
[0074] Reference Figure 2 , Figure 2 This is a flowchart of a first embodiment of a method for synchronously installing an application.
[0075] A first embodiment of the present invention provides a method for synchronously installing an application, the method comprising the following steps:
[0076] Step S10, obtaining the target application package name of the target application currently to be installed on the first slave device, and all application package names in the local root directory of the master device;
[0077] In this embodiment, this method is applied to the main device, which is a terminal device with a display function that provides the main video viewing function to the user. Usually, a smart TV is used as the main device, and a terminal device such as a mobile phone or a tablet is used as the first slave device. It should be noted that the main device needs to be wirelessly connected to the first slave device. Users can also use terminal devices such as mobile phones or tablets as main devices and smart TVs as the first slave device according to their actual needs, and this embodiment does not make specific restrictions. The target application package name is the installation file of the target application to be installed when the first slave device installs the application, or other file names that can identify the target application, which can specifically be the installation package name of the target application. In addition, the target application can be one or more, such as Youku, Tencent, iQiyi, etc., which is not specifically limited in this embodiment.
[0078] For example, the master device is a smart TV and the first slave device is a mobile phone. The smart TV is wirelessly connected to the mobile phone and is currently in working state. When the smart TV detects that the mobile phone is installing application software, it needs to obtain the target application package name of the target application currently being installed by the mobile phone, and also needs to obtain the names of all application packages in the local root directory.
[0079] Step S20, judging whether the target application has been installed in the main device according to the target application package name and the names of all application packages;
[0080] Step S30, if the target application is not installed in the master device, obtaining the resolution information of the local display screen, and determining the target display resolution level corresponding to the master device according to the resolution information;
[0081] In this embodiment, the resolution information may specifically be the screen resolution size, the display resolution size (horizontal resolution, vertical resolution), etc. The target display resolution level may be divided according to actual needs, for example, it may be divided into a high-resolution level, a medium-resolution level, and a low-resolution level. Still taking the master device as a smart TV and the first slave device as a mobile phone as an example. The smart TV determines whether the target application has been installed locally based on the currently acquired target application package name and all local application package names. If the smart TV determines that the target application is not installed locally, the resolution information of the display screen of the smart TV is obtained, and the corresponding target display resolution level, such as a high-resolution level, is determined based on the actual resolution information of the smart TV. If the smart TV determines that the target application has been installed locally, there is no need to install it again.
[0082] Step S40: acquiring an installation path of a target application whose application layout specification matches the target display resolution level, and downloading and installing the target application to the main device based on the installation path.
[0083] In this embodiment, the application layout specification is also the application layout size, which is a parameter that determines the aspect ratio of the application interface displayed on the screen. Because the specifications of the display screens of different terminal devices are different, in order to achieve the best display effect of the application, it is necessary to adapt applications of appropriate layout sizes for different terminal devices. Still taking the master device as a smart TV and the first slave device as a mobile phone as an example. The smart TV can access the application cloud server, and according to the target application package name and the target display resolution level, find the target application installation path with the application layout specification adapted to the target display resolution level. The smart TV can then download and install the corresponding version of the target application from this installation path.
[0084] In addition, considering that the smart TV is in working state for a limited time, it may not be able to detect the process of each application installation from the device. Therefore, the method can also obtain the list of locally installed applications and the list of currently installed applications from the device each time the smart TV is turned on, filter out the applications that have been installed from the device but not installed locally, generate and display corresponding application installation prompt information, so as to prompt the user to install the applications that have been installed from the device but not installed locally on the smart TV.
[0085] In this embodiment, the target application package name of the target application currently to be installed by the first slave device and the names of all application packages in the local root directory of the master device are obtained; based on the target application package name and the names of all application packages, it is determined whether the target application has been installed in the master device; if the target application is not installed in the master device, the resolution information of the local display screen is obtained, and the target display resolution level corresponding to the master device is determined based on the resolution information; the installation path of the target application whose application layout specifications are compatible with the target display resolution level is obtained, and the target application is downloaded and installed to the master device based on the installation path. Through the above-mentioned manner, this embodiment actively detects and determines whether the target application has been installed locally on the master device when the first slave device is installing the target application, so that the master device can fully grasp the application installation status of the first slave device; by actively obtaining the installation path of the target application to download and install the target application when detecting that the first slave device is installing the target application that is not installed locally on the master device, the master device can maintain the synchronous installation of the application software with the first slave device, which is convenient for the user to use the application software synchronously on the master device and the first slave device; by pre-determining the target display resolution level adapted to the master device, and then selecting the target application with a suitable application layout specification version for download according to this target display resolution level, the cumbersome operation of downloading and replacing the target application with a suitable application layout specification after downloading the target application whose application layout specification is not compatible with the display resolution of the master device is avoided, thereby solving the cumbersome technical problem of using the same application software as the slave device synchronously on the master device.
[0086] Furthermore, based on the above Figure 2 The first embodiment shown in the figure proposes a second embodiment of the method for synchronously installing an application of the present invention. In this embodiment, step S40 includes:
[0087] Obtain target aspect ratio parameters of the application displayed on the screen corresponding to the target display resolution level;
[0088] The installation path of a target application whose aspect ratio parameter displayed on the screen is greater than or equal to the target aspect ratio parameter is searched from the application cloud server, so as to download and install the target application from the installation path.
[0089] In this embodiment, a smart TV is taken as the main device as an example. The above-mentioned application layout specifications include the aspect ratio parameters of the application displayed on the screen. The smart TV obtains the aspect ratio parameters corresponding to the target display resolution level. After obtaining the target aspect ratio parameters, the smart TV accesses the application cloud server to find the installation path of the target application whose aspect ratio parameters are greater than or equal to the target application layout specifications. It should be noted that if the smart TV simultaneously finds the installation path of the target application whose aspect ratio parameter is greater than the target aspect ratio parameter and the installation path of the target application whose aspect ratio parameter is equal to the target aspect ratio parameter, the installation path of the target application equal to the target aspect ratio parameter is preferentially selected, and the corresponding version of the target application is downloaded and installed from this installation path.
[0090] Further, the resolution information includes horizontal resolution and / or vertical resolution, and step S30 includes:
[0091] If the target application is not installed in the host device, obtaining the horizontal resolution and / or vertical resolution of the local display screen;
[0092] A display resolution level corresponding to the horizontal resolution and / or the vertical resolution is found from a preset resolution value level comparison table to serve as the target display resolution level.
[0093] In this embodiment, it should be noted that the display resolution is the number of pixels displayed on the screen, and a resolution of 160×128 means that the number of pixels in the horizontal direction is 160 (horizontal resolution) and the number of pixels in the vertical direction is 128 (vertical resolution). The preset resolution numerical level comparison table can divide the acceptable range of horizontal resolution and / or vertical resolution into three levels of high, medium and low based on industry experience, that is, the target display resolution level can be one of the three levels of high, medium and low. When the smart TV detects that the target application is not installed locally, it obtains the horizontal resolution and / or vertical resolution of the current screen, and then determines the display resolution level corresponding to the local screen by looking up the table, such as a high display resolution level, and this high display resolution level is the current target display resolution level.
[0094] Further, step S20 includes:
[0095] Using a table lookup method to determine whether there is an application package name among all the application package names that is completely identical in every character to the target application package name;
[0096] If there is an application package name in all the application package names that is completely identical to the target application package name in every character, it is determined that the target application has been installed in the host device; or,
[0097] If there is no application package name in all the application package names that is completely identical to the target application package name in every character, it is determined that the target application is not installed in the host device.
[0098] In this embodiment, the smart TV can use a table lookup method to find out whether each application package name in all application package names is identical to each character of the target application package name. If the smart TV determines after searching that there is an application package name in all local application package names that is exactly the same as each character of the target application package name, it can be further determined that the target application has been installed locally; if the smart TV determines after searching that there is no application package name in all local application package names that is exactly the same as each character of the target application package name, it can be further determined that the target application has not been installed locally.
[0099] In this embodiment, by further using a target application installation path that is greater than or equal to the target application layout specification as an installation path adapted to the main device, the target application finally downloaded by the main device can achieve the optimal display effect on the main device; the target display resolution level of the main device is obtained by horizontal resolution and / or vertical resolution, so that the process of determining the target display resolution level is simple and easy; and a table lookup method is used to determine whether there is an application package name that is exactly the same as the target application package name among all application package names, so that the process of determining whether the target application is installed on the main device is simple and easy.
[0100] Furthermore, based on the above Figure 2 The first embodiment shown in the figure proposes a third embodiment of the method for synchronous installation of applications of the present invention. In this embodiment, after step S40, it also includes:
[0101] Determine a plurality of synchronization applications installed together with the master device and the first slave device, and a plurality of quick applications for which quick application icons have been set in the first slave device, and assign a first priority display weight to the same applications among the plurality of synchronization applications and the plurality of quick applications;
[0102] Determine a plurality of first applications installed on the master device, obtain a first usage frequency of each of the first applications, assign a second priority display weight to a first application whose first usage frequency exceeds a preset first frequency threshold, and obtain a display order of the plurality of first applications on the master device by combining the first priority display weight and the second priority display weight;
[0103] Determine a number of second applications that have been installed on the first slave device, obtain the second usage frequency of each of the second applications, and assign a third priority display weight to the second application whose second usage frequency exceeds a preset second frequency threshold, so as to combine the first priority display weight with the third priority display weight to obtain the display order of the number of second applications on the first slave device.
[0104] In this embodiment, the synchronous application is an application installed in both the master device and the first slave device, and the quick application is an application with a quick application icon set in the first slave device. The first application is an application installed in the master device, so it includes the synchronous application. The second application is an application installed in the first slave device, so it also includes the synchronous application. The same application is an application shared by the synchronous application and the quick application. The first usage frequency is a critical value used to define whether the number of times the first application is used meets the weighting standard, and the second usage frequency is a critical value used to define whether the number of times the second application is used meets the weighting standard. The two can be the same or different, and can be flexibly set according to specific circumstances. The first priority display weight is a weight used to assign the same application, the second priority display weight is a weight used to assign the first application whose first usage frequency exceeds the preset first frequency threshold, and the third priority display weight is a weight used to assign the second application whose second usage frequency exceeds the preset second frequency threshold. The first. The second and third priority display weights can be set to be the same or different, and can be flexibly set according to actual circumstances.
[0105] Specifically, if the smart TV detects that the synchronized application installed with the mobile phone is iQiyi Video, the first application installed locally on the smart TV includes iQiyi Video, Tencent Video and Sohu Video, and the second application installed on the mobile phone is iQiyi Video, Youku Video and Bilibili. On the smart TV side, the first usage frequency corresponding to iQiyi Video is 5 times / day, the usage frequency corresponding to Tencent Video is 3 times / day, and the first usage frequency corresponding to Sohu Video is 2 times / day. Assuming the preset first frequency threshold is 3 times / day, the smart TV assigns a first priority display weight of 5 to iQiyi Video, and then assigns a second priority display weight of 3 to iQiyi Video and Tencent Video. Then, combining the two weights, the applications with the weights from high to low are iQiyi Video (total weight 8), Tencent Video (total weight 3) and Sohu Video (total weight 0), respectively. The iQiyi Video application can be displayed first, followed by the Tencent Video application, and finally the Sohu Video application. On the mobile phone side, the first usage frequency corresponding to iQiyi video is 7 times / day, the usage frequency corresponding to Youku video is 4 times / day, and the first usage frequency corresponding to Bilibili is 6 times / day. Assuming the preset second frequency threshold is 5 times / day, the smart TV assigns the first priority display weight, such as 5, to iQiyi video, and then assigns the third priority display weight, such as 3, to iQiyi video and Bilibili. Combining the two weights, the applications with the highest to lowest weights are iQiyi video (total weight 8), Bilibili (total weight 3) and Youku video (total weight 0). The iQiyi video application can be displayed first, followed by the Bilibili application, and finally the Youku video application.
[0106] Furthermore, after the step of determining the plurality of synchronization applications installed jointly by the master device and the first slave device and the plurality of quick applications for which quick application icons have been set in the first slave device, the step further includes:
[0107] When it is detected that the master device and the first slave device are simultaneously running one or more of the synchronization applications, generating closing prompt information of the one or more synchronization applications;
[0108] The closing prompt information is sent to the first slave device to prompt the user to close one or more synchronization applications on the first slave device.
[0109] In this embodiment, if the smart TV detects in working state that several applications currently running on it are also running on a first slave device such as a mobile phone, for example, a video is being played through Tencent Video on the TV, and the Tencent Video application is also running on the mobile phone at this time, the smart TV can generate a prompt message of Tencent Video on the mobile phone and send it to the mobile phone to prompt the user to close the Tencent Video application on the mobile phone to save unnecessary resource usage on the mobile phone.
[0110] Furthermore, after step S20, the method further includes:
[0111] If the target application has been installed in the master device, obtaining the installed application package name in the root directory of the second slave device, and judging whether the second slave device has installed the target application according to the installed application package name and the target application package name;
[0112] If the target application is not installed on the second slave device, application installation prompt information of the target application is generated, and the application installation prompt information is sent to the second slave device to prompt the user to install the target application on the second slave device.
[0113] In this embodiment, the second slave device is a slave device different from the first slave device. For example, if the first slave device is a mobile phone, then the second slave device can be a tablet. Specifically, if the smart TV currently detects that the same target application as the mobile phone has been installed locally, it can be said that the current target application is an application commonly used by the user, then the smart TV can further detect whether the target application is also installed synchronously on the tablet. The judgment method can refer to the above-mentioned table lookup method to determine the application package name, which will not be repeated here. If the smart TV determines that the target application is not installed on the tablet, it can generate installation prompt information for the target application, and send this installation prompt information to the tablet, so that the user can see this prompt information when using the tablet and choose whether to install the target application synchronously. If the smart TV determines that the target application is already installed on the tablet, there is no need to repeat the installation, and the application synchronization has been achieved.
[0114] In this embodiment, the application display order of the main device and the application display order of the first slave device are further determined by combining multi-dimensional factors, so that the application display of the two types of devices is more in line with the user's usage habits, thereby improving the user experience; by prompting the first slave device to close the corresponding application when the main device and the first slave device are running the same application at the same time, unnecessary resource occupation on the first slave device is reduced; by prompting the second slave device to synchronously install the target application after the main device and the first slave device have installed the same target application, the application synchronization between multiple devices is increased.
[0115] The invention also provides an application synchronous installation device.
[0116] The application synchronous installation device comprises:
[0117] A package name acquisition module, used to acquire the target application package name of the target application currently to be installed by the first slave device, and all application package names in the local root directory of the master device;
[0118] an installation determination module, configured to determine whether the target application has been installed in the master device according to the target application package name and the names of all application packages; if the target application has not been installed in the master device, obtain resolution information of the local display screen, and determine a target display resolution level corresponding to the master device according to the resolution information;
[0119] The application installation module is used to obtain an installation path of a target application whose application layout specification is compatible with the target display resolution level, and download and install the target application to the main device based on the installation path.
[0120] The present invention also provides an application synchronous installation device.
[0121] The application synchronization installation device includes a processor, a memory, and an application synchronization installation program stored in the memory and executable on the processor, wherein when the application synchronization installation program is executed by the processor, the steps of the application synchronization installation method described above are implemented.
[0122] The method implemented when the application synchronous installation program is executed can refer to the various embodiments of the application synchronous installation method of the present invention, and will not be repeated here.
[0123] The present invention also provides a computer-readable storage medium.
[0124] The computer-readable storage medium of the present invention stores an application synchronization installation program, and when the application synchronization installation program is executed by a processor, the steps of the application synchronization installation method described above are implemented.
[0125] Among them, the method implemented when the application synchronization installation program is executed can refer to the various embodiments of the application synchronization installation method of the present invention, and will not be repeated here.
[0126] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0127] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0128] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for enabling an application synchronization installation device to execute the methods described in each embodiment of the present invention.
[0129] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for synchronous installation of an application, characterized in that: The application synchronous installation method is applied to a master device, and the application synchronous installation method includes: Obtaining the target application package name of the target application currently to be installed on the first slave device, and all application package names in the local root directory of the master device; According to the target application package name and the names of all application packages, determining whether the target application has been installed in the main device; if the target application has not been installed in the main device, obtaining resolution information of the local display screen, and determining the target display resolution level corresponding to the main device according to the resolution information; Acquire an installation path of a target application whose application layout specification is compatible with the target display resolution level, and download and install the target application to the main device based on the installation path; Determine a plurality of synchronization applications installed together with the master device and the first slave device, and a plurality of quick applications for which quick application icons have been set in the first slave device, and assign a first priority display weight to the same applications among the plurality of synchronization applications and the plurality of quick applications; Determine a number of first applications that have been installed on the main device, obtain a first usage frequency of each of the first applications, assign a second priority display weight to the first application whose first usage frequency exceeds a preset first frequency threshold, and combine the first priority display weight with the second priority display weight to obtain a display order of the number of first applications on the main device.
2. The method according to claim 1, characterized in that The step of obtaining an installation path of a target application whose application layout specification is compatible with the target display resolution level, and downloading and installing the target application to the main device based on the installation path, comprises: Obtain target aspect ratio parameters of the application displayed on the screen corresponding to the target display resolution level; The installation path of a target application whose aspect ratio parameter displayed on the screen is greater than or equal to the target aspect ratio parameter is searched from the application cloud server, so as to download and install the target application from the installation path.
3. The method according to claim 1, characterized in that The resolution information includes horizontal resolution and / or vertical resolution, If the target application is not installed in the master device, obtaining resolution information of the local display screen, and determining a target display resolution level corresponding to the master device according to the resolution information, includes: If the target application is not installed in the host device, obtaining the horizontal resolution and / or vertical resolution of the local display screen; A display resolution level corresponding to the horizontal resolution and / or the vertical resolution is found from a preset resolution value level comparison table to serve as the target display resolution level.
4. The method according to claim 1, characterized in that The step of determining whether the target application has been installed in the main device according to the target application package name and the names of all application packages includes: Using a table lookup method to determine whether there is an application package name among all the application package names that is completely identical in every character to the target application package name; If there is an application package name in all the application package names that is completely identical to the target application package name in every character, it is determined that the target application has been installed in the host device; or, If there is no application package name in all the application package names that is completely identical to the target application package name in every character, it is determined that the target application is not installed in the host device.
5. The method according to claim 1, characterized in that After obtaining the installation path of the target application whose application layout specification is compatible with the target display resolution level, and downloading and installing the target application to the main device based on the installation path, the method further includes: Determine a number of second applications that have been installed on the first slave device, obtain the second usage frequency of each of the second applications, and assign a third priority display weight to the second application whose second usage frequency exceeds a preset second frequency threshold, so as to combine the first priority display weight with the third priority display weight to obtain the display order of the number of second applications on the first slave device.
6. The method according to claim 5, characterized in that After determining the plurality of synchronization applications installed together by the master device and the first slave device and the plurality of quick applications for which quick application icons have been set in the first slave device, the method further includes: When it is detected that the master device and the first slave device are simultaneously running one or more of the synchronization applications, generating closing prompt information of the one or more synchronization applications; The closing prompt information is sent to the first slave device to prompt the user to close one or more synchronization applications on the first slave device.
7. The method according to any one of claims 1 to 6, characterized in that: After determining whether the target application has been installed in the main device according to the target application package name and the names of all application packages, the method further includes: If the target application has been installed in the master device, obtaining the installed application package name in the root directory of the second slave device, and judging whether the second slave device has installed the target application according to the installed application package name and the target application package name; If the target application is not installed on the second slave device, application installation prompt information of the target application is generated, and the application installation prompt information is sent to the second slave device to prompt the user to install the target application on the second slave device.
8. An application synchronous installation device, characterized in that: The application synchronous installation device comprises: A package name acquisition module, used to acquire the target application package name of the target application currently to be installed on the first slave device, and all application package names in the local root directory of the master device; an installation determination module, configured to determine whether the target application has been installed in the master device according to the target application package name and the names of all application packages; if the target application has not been installed in the master device, obtain resolution information of the local display screen, and determine a target display resolution level corresponding to the master device according to the resolution information; An application installation module, used to obtain an installation path of a target application whose application layout specification is compatible with the target display resolution level, and download and install the target application to the main device based on the installation path; The application installation module is also used to determine a number of synchronous applications installed together with the master device and the first slave device, and a number of quick applications for which quick application icons have been set in the first slave device, and to assign a first priority display weight to the same application among the number of synchronous applications and the number of quick applications; determine a number of first applications installed on the master device, obtain a first usage frequency of each of the first applications, and assign a second priority display weight to the first application whose first usage frequency exceeds a preset first frequency threshold, so as to obtain a display order of the number of first applications on the master device by combining the first priority display weight and the second priority display weight.
9. An application synchronous installation device, characterized in that: The application synchronization installation device includes: a memory, a processor, and an application synchronization installation program stored in the memory and executable on the processor, wherein the application synchronization installation program implements the steps of the method according to any one of claims 1 to 7 when executed by the processor.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores an application synchronization installation program, and when the application synchronization installation program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
