Application recommendation method, device and user equipment

By analyzing the usage data of terminal devices and external devices, an application recommendation list is generated, which solves the problem of inaccurate recommendations in existing intelligent recommendation methods, realizes efficient and low-resource application recommendation, and improves user experience.

CN117332145BActive Publication Date: 2024-09-06HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311194733.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-26
Publication Date
2024-09-06
Estimated Expiration
2042-08-26

AI Technical Summary

Technical Problem

Existing intelligent recommendation methods only rely on the historical usage frequency of applications and cannot accurately reflect user needs in specific scenarios, resulting in inaccurate recommendations and affecting user experience.

Method used

By obtaining the application usage data when the terminal device is connected to the external device, calculate the weight value of the application according to different external devices and usage scenarios, generate an application recommendation list, and make recommendations on the terminal device to ensure that the recommended applications are related to the external device High degree of accuracy, consistent with user intentions in specific scenarios.

Benefits of technology

It improves the accuracy and success rate of application recommendation, enables users to quickly find the applications they need, and improves the user experience. At the same time, there is no need to rely on network or cloud resources, and there is little resource dependence.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117332145B
    Figure CN117332145B
Patent Text Reader

Abstract

The present application provides an application recommendation method, apparatus and user equipment, including obtaining usage data of each application during the period when the terminal device is connected to an external device; determining multiple usage scenarios corresponding to each external device; respectively obtaining the number of connections of each external device in each usage scenario; respectively calculating a first ratio of the number of uses of each application corresponding to the usage scenario to the total number of connections of the external device corresponding to the usage scenario, and / or a second ratio of the number of clicks of the user on each application to the total number of clicks of the user on all applications; sorting each application according to the first ratio and / or the second ratio; when detecting that the target external device is connected to the terminal device, determining the application to recommend to the user according to the current usage scenario of the target external device. The solution of the present application can recommend applications according to the usage scenario of the external device, which can improve the recommendation success rate.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application. The application number of the original application is 202211037674.X, and the original application date is August 26, 2022. The entire contents of the original application are incorporated into this application by reference. Technical Field

[0002] The embodiments of the present application relate to the field of terminal technology, and in particular to an application recommendation method, device and user equipment. Background Art

[0003] Smart recommendation is a function of terminal devices that recommends applications (Application, APP). The smart recommendation function can infer the applications that the user currently needs based on the user's historical usage records of the terminal device, and display the applications based on the inference results, so that the user can quickly obtain certain applications.

[0004] Generally, the intelligent recommendation function can calculate the user's historical usage frequency of the application based on historical usage records, sort the applications according to the historical usage frequency, and then recommend and display the high-frequency applications in the sorting results.

[0005] However, this intelligent recommendation method only sorts applications based on the dimension of historical usage frequency, and medium and low frequency applications are easily overlooked when recommending. In addition, the sorting results based on the historical usage frequency cannot accurately reflect the user's application usage needs in specific scenarios, which will lead to inaccurate recommendations in specific scenarios. For example, in the scenario where the terminal device is connected to an external device, if the application required by the user has a historical usage frequency of medium to low frequency, the intelligent recommendation cannot accurately display the medium and low frequency applications. Therefore, recommending applications based on historical usage frequency is not accurate and will affect the user's experience. Summary of the invention

[0006] Embodiments of the present application provide an application recommendation method, apparatus, and user equipment to solve the problem of inaccurate recommendations caused by recommending applications based on historical usage frequencies.

[0007] In a first aspect, an embodiment of the present application provides an application recommendation method, comprising: obtaining usage data of each application during the period when a terminal device is connected to an external device, the external device comprising at least one of a Bluetooth headset, a wired headset, a car Bluetooth device, a Bluetooth speaker, and other external devices; the application usage data comprises at least the number of times each application is used, and / or the number of times a user clicks on each application; for any target application installed on the terminal device, the number of uses is the total number of times a user uses the target application during the period when the terminal device is connected to the external device m times, m≥1, wherein during each time the terminal device is connected to the external device, if the user clicks on the icon of the target application at least once, so that the terminal device enters the user interface of the target application, the number of uses is increased by 1, and the number of clicks is the total number of times the user clicks on the icon of the target application; based on the usage time periods of various external devices, and / or the usage locations of various external devices, determining multiple usage scenarios corresponding to each external device; wherein different scenarios correspond to different usage time periods, and / or different usage locations, and each usage scenario of each external device corresponds to an application recommendation list; respectively obtaining the number of connections of each external device in each usage scenario; and for each usage scenario of each external device, respectively calculating the usage scenario for the application recommendation list. a first ratio of the number of times each application is used to the total number of connections of the external device corresponding to the usage scenario, and / or a second ratio of the number of clicks on each application by the user to the total number of clicks on all applications by the user; for each usage scenario of each external device, sorting the applications according to the order of the first ratio from high to low, and / or the order of the second ratio from high to low, and adding at least one or more applications with the highest sorting to the corresponding application recommendation list; wherein the first ratio corresponding to the application in the application recommendation list is greater than or equal to the first threshold, and / or the application in the application recommendation list corresponds to the second ratio is greater than or equal to the second threshold; when it is detected that the target external device is connected to the terminal device, the corresponding target application recommendation list is determined according to the current usage scenario of the target external device, and the application in the target application recommendation list is recommended to the user; wherein, when the target external device is a Bluetooth headset or a wired headset, the application recommended to the user includes at least one of film and television applications, music applications, and game applications; when the target external device is a car-mounted Bluetooth device, the application recommended to the user includes map applications, and / or radio applications; when the target external device is a Bluetooth speaker, the application recommended to the user includes music applications.

[0008] The application recommendation method provided in the embodiment of the present application can sort each application separately in a specific external device usage scenario according to the usage data of each application during the connection of the terminal device to the external device to obtain an application recommendation list. Then, a target application recommendation list for recommendation is determined based on the specific usage scenario of the external device access. In this way, the recommended application has a high correlation with the external device and is more in line with the user's intention to use the application in a specific scenario, and the recommendation success rate is high. In addition, the application recommendation method provided in the embodiment of the present application can rely only on the terminal side for recommendation, without the need for resources such as the network or cloud server, and has low resource dependence.

[0009] In some achievable methods, the screen interface of the terminal device includes an application recommendation card; the step of recommending the application in the target application recommendation list to the user includes: displaying the icon of at least one application in the target application recommendation list in the application recommendation card. In this way, the user can quickly enter the application by clicking the application icon in the application recommendation card as needed, and no longer needs to search for the application that is expected to be clicked between multiple screens. Since the application displayed in the application recommendation card is determined based on the user's historical use of the application, and the application displayed in the application recommendation card meets the current usage scenario of the external device, the recommendation success rate is high.

[0010] In some achievable ways, displaying the icon of the application in the target application recommendation list in the application recommendation card includes: determining whether the screen interface includes the icon of the first application, the first application being any application in the target application recommendation list; if the screen interface does not include the icon of the first application, displaying the icon of the first application in the application recommendation card. In this way, the first application will not appear repeatedly in the screen interface. Moreover, when the user stays on the screen interface where the application recommendation card is located, the first application can still be quickly found and clicked.

[0011] In some achievable ways, the icon of the application in the target application recommendation list is displayed in the application recommendation card, including: determining whether the application recommendation card includes the icon of the second application, the second application is an application other than the application in the target application recommendation list; if the application recommendation card includes the icon of the second application, the icon of the second application is replaced with the icon of the third application, the third application is an application in the target application recommendation list, and the third application is not an application in the application recommendation card. In this way, the first application will not appear repeatedly in the screen interface. Moreover, when the user stays on the screen interface where the application recommendation card is located, the first application can still be quickly found and clicked, which can improve the recommendation success rate.

[0012] In some achievable methods, the step of recommending an application in a target application recommendation list to a user also includes: obtaining a shortcut entry to the application in the target application recommendation list, the shortcut entry being used to start a target function of the application or to enter a target page of the application; and displaying the icon of the shortcut entry in an application recommendation card.

[0013] In some practicable manners, before obtaining the number of connections of each external device in each usage scenario, the method further includes: obtaining the connection status of each connection of each external device in each usage scenario, wherein the connection status includes a valid connection status and an invalid connection status; and deleting the usage data of each application during the invalid connection status of each external device. In this way, the usage data of each application during the invalid connection status can be prevented from affecting the terminal device's learning of the user's habits during the period of connecting to the external device.

[0014] In some achievable manners, obtaining the number of connections of each external device in each usage scenario includes: obtaining the number of connections corresponding to the valid connection state of each external device in each usage scenario.

[0015] In some achievable methods, the connection status of each connection of each external device in each usage scenario is obtained separately, including: obtaining the duration of each connection of each external device in each usage scenario; if the duration is less than a first time threshold, determining that the connection status of the current connection is an invalid connection status; if the duration is greater than or equal to the first time threshold, determining that the connection status of the current connection is a valid connection status.

[0016] In some achievable methods, the connection status of each connection of each external device in each usage scenario is obtained separately, including: obtaining connection data and disconnection data of each connection of each external device in each usage scenario; the connection data is data used to record that a connection has been established between the external device and the terminal device, and the disconnection data is data used to record that the external device and the terminal device have been disconnected; if the connection data and / or disconnection data are not obtained, it is determined that the connection status of the current connection is an invalid connection status; if the connection data and disconnection data are obtained, it is determined that the connection status of the current connection is a valid connection status.

[0017] In this way, the connection status of each external device in each usage scenario can be determined, and how to recommend an application program can be determined based on the connection status.

[0018] In some achievable manners, the first threshold includes a first sub-threshold; when the number of connections is greater than or equal to the first number threshold and less than or equal to the second number threshold, the first ratio corresponding to the application in the application recommendation list is greater than the first sub-threshold. In this way, the success rate of recommending the application in the application recommendation list can be improved.

[0019] In some achievable manners, the first threshold includes a second sub-threshold, and the second sub-threshold is smaller than the first sub-threshold; when the number of connections is greater than the second number threshold, the first ratio corresponding to the application in the application recommendation list is greater than the second sub-threshold. In this way, the success rate of recommending the application in the application recommendation list can be improved.

[0020] In some practicable manners, when it is detected that the target external device is connected to the terminal device, a corresponding target application recommendation list is determined according to the current usage scenario of the target external device, and after the application programs in the target application recommendation list are recommended to the user, the method further includes: when the target external device is a vehicle-mounted Bluetooth device, if the external device is disconnected, the application programs in the target application recommendation list are stopped from being recommended to the user. In this way, the application programs recommended to the user can be more in line with the user's intention to use the application programs.

[0021] In some achievable methods, when it is detected that the target external device is connected to the terminal device, the corresponding target application recommendation list is determined according to the current usage scenario of the target external device, and after the application in the target application recommendation list is recommended to the user, it also includes: when the target external device is a device other than the vehicle-mounted Bluetooth device, if the external device is disconnected, or if the connection time of the target external device is greater than the second time threshold, stop recommending the application in the target application recommendation list to the user; or when the target external device is a device other than the vehicle-mounted Bluetooth device, if the connection time of the external device is less than or equal to the second time threshold, stop recommending the application in the target application recommendation list that has been used by the user to the user. In this way, the application recommended to the user can be more in line with the user's intention to use the application.

[0022] In a second aspect, an embodiment of the present application also provides an application recommendation method, including: obtaining usage data of each application during the period when the terminal device is connected to an external device; based on the usage data, calculating the weight value of each application for each external device; for each external device, sorting each application in order from high to low according to the weight value, and adding the sorted applications to an application recommendation list corresponding to each external device; when it is detected that the target external device is connected to the terminal device, determining a target application recommendation list corresponding to the target external device, and recommending the application in the target application recommendation list to the user.

[0023] In one achievable method, after the step of obtaining the usage data of each application during the period when the terminal device is connected to the external device, it also includes: obtaining the usage data of various external devices during the period when the terminal device is connected to the external device; based on the usage data of various external devices, determining the usage scenario corresponding to each external device.

[0024] In one achievable method, based on usage data, the step of calculating the weight value of each application for each external device includes: determining the usage data of each application in each usage scenario of each application; and for each usage scenario of each external device, calculating the weight value of each application for each external device.

[0025] In one feasible method, for each external device, each application is sorted in order of weight value from high to low, and each sorted application is added to the application recommendation list corresponding to each external device, including: for each usage scenario of each external device, each application is sorted in order of weight value from high to low, and each sorted application is added to the corresponding application recommendation list.

[0026] In one achievable method, when it is detected that the target external device is connected to the terminal device, the steps of determining a target application recommendation list corresponding to the target external device, and recommending the application programs in the target application recommendation list to the user include: determining a current usage scenario of the target external device; determining a corresponding target application recommendation list according to the current usage scenario of the target external device, and recommending the application programs in the target application recommendation list to the user.

[0027] In a third aspect, an embodiment of the present application further provides an application recommendation device, comprising: a first acquisition module, for acquiring usage data of each application during the period when the terminal device is connected to an external device, the external device comprising at least one of a Bluetooth headset, a wired headset, a car-mounted Bluetooth device, a Bluetooth speaker, and other external devices; the application usage data comprises at least the number of times each application is used, and / or the number of times the user clicks on each application; for any target application installed on the terminal device, the number of uses is the total number of times the user uses the target application during the period when the terminal device is connected to the external device m times, m ≥ 1, wherein, during each time the terminal device is connected to the external device, if the user If the icon of the target application is clicked at least once, so that the terminal device enters the user interface of the target application, the number of uses is increased by 1, and the number of clicks is the total number of times the user clicks the icon of the target application; a usage scenario determination module is used to determine multiple usage scenarios corresponding to each external device based on the usage time periods of various external devices and / or the usage locations of various external devices; wherein different scenarios correspond to different usage time periods and / or different usage locations, and each usage scenario of each external device corresponds to an application recommendation list; a second acquisition module is used to respectively obtain the number of connections of each external device in each usage scenario; a ratio calculation module is used to calculate the number of connections of each external device in each usage scenario for each external device; The list determining module is used to respectively calculate a first ratio of the number of times each application corresponding to the usage scenario is used to the total number of connections of the external device corresponding to the usage scenario, and / or a second ratio of the number of times the user clicks on each application to the total number of times the user clicks on all applications; a list determining module is used to sort the various applications according to the order of the first ratio from high to low, and / or the order of the second ratio from high to low for each usage scenario of each external device, and add at least one or more applications with the highest sorting to the corresponding application recommendation list; wherein the first ratio corresponding to the application in the application recommendation list is greater than or equal to the first threshold, and / or the application in the application recommendation list The second ratio corresponding to the application is greater than or equal to the second threshold; the first recommendation module is used to determine the corresponding target application recommendation list according to the current usage scenario of the target external device when detecting that the target external device is connected to the terminal device, and recommend the application in the target application recommendation list to the user; wherein, when the target external device is a Bluetooth headset or a wired headset, the application recommended to the user includes at least one of film and television applications, music applications, and game applications; when the target external device is a car-mounted Bluetooth device, the application recommended to the user includes map applications, and / or radio applications; when the target external device is a Bluetooth speaker, the application recommended to the user includes music applications.

[0028] The application recommendation device provided in the embodiment of the present application can sort each application separately in a specific external device usage scenario according to the usage data of each application during the connection of the terminal device to the external device to obtain an application recommendation list. Then, the application recommendation list for recommendation is determined based on the specific usage scenario of the external device access. In this way, the recommended application has a high correlation with the external device and is more in line with the user's intention to use the application in the specific scenario, and the recommendation success rate is high. In addition, the application recommendation device provided in the embodiment of the present application can only rely on the terminal side for recommendation, without the need for resources such as the network or cloud server, and has low resource dependence.

[0029] In a fourth aspect, an embodiment of the present application further provides a user device, comprising: a processor and a memory; the memory stores program instructions, and when the program instructions are executed by the processor, the user device executes the method in the above-mentioned first aspect and its various implementation methods.

[0030] In the fifth aspect, an embodiment of the present application also provides a chip system, including: a memory and a processor; the memory stores program instructions, and when the program instructions are executed by the processor, the chip system executes the method in the above-mentioned first aspect and its various implementation methods.

[0031] In a sixth aspect, an embodiment of the present application further provides a computer storage medium, in which program instructions are stored in the computer-readable storage medium. When the program instructions are executed on a computer, the computer executes the method in the above-mentioned first aspect and its various implementation methods.

[0032] In a seventh aspect, an embodiment of the present application further provides a computer program product, which, when executed on a computer, enables the computer to execute the method in the above-mentioned first aspect and its various implementation methods. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 A schematic diagram showing the application to the terminal device;

[0034] Figure 2 Provides an intelligent recommendation interface for scenarios where the terminal device is connected to an external device;

[0035] Figure 3 is a schematic diagram of the hardware structure of a terminal device provided in an embodiment of the present application;

[0036] Figure 4 is a software structure block diagram of the terminal device 100 according to an embodiment of the present application;

[0037] Figure 5 A schematic flowchart of an application recommendation method provided in an embodiment of the present application;

[0038] Figure 6A schematic diagram of application recommendation provided for an embodiment of the present application;

[0039] Figure 7 A schematic diagram of a process for determining a usage scenario of an external device provided in an embodiment of the present application;

[0040] Figure 8 A schematic diagram of a process for calculating application weights provided in an embodiment of the present application;

[0041] Fig. 9 A schematic diagram of the steps for recommending applications for various scenarios provided in an embodiment of the present application;

[0042] Fig.10 Another schematic flow chart of the application recommendation method provided in an embodiment of the present application;

[0043] Fig.11 A calendar user interface provided in an embodiment of the present application;

[0044] Fig.12 A schematic diagram of a usage scenario of an external device provided in an embodiment of the present application;

[0045] Fig.13 A schematic diagram of recommending an application to a user provided in an embodiment of the present application;

[0046] Fig.14 A schematic diagram of the data cleaning process provided in the embodiment of the present application;

[0047] Fig.15 A schematic diagram of a process for determining a valid connection status of a terminal device provided in an embodiment of the present application;

[0048] Fig.16 A schematic diagram of an application recommendation card provided in an embodiment of the present application;

[0049] Fig.17 A schematic diagram of a quick entry provided in an embodiment of the present application;

[0050] Fig.18 A schematic flow chart of recommending applications to users provided in an embodiment of the present application;

[0051] Fig.19 A schematic diagram of an application recommendation card provided in an embodiment of the present application;

[0052] Fig. 20 Another schematic flow chart of recommending applications to users provided in an embodiment of the present application;

[0053] Fig.21 Another schematic diagram of an application recommendation card provided in an embodiment of the present application;

[0054] Fig. 22 A schematic diagram of the structure of an application recommendation device provided in an embodiment of the present application;

[0055] Fig.23 A schematic diagram of the structure of another application recommendation device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0056] The terms "first", "second", "third", etc. in the specification, claims and drawings of this application are used to distinguish different objects rather than to limit a specific order.

[0057] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0058] The terms used in the implementation method part of this application are only used to explain the specific embodiments of this application, and are not intended to limit this application. The embodiments of this application will be described in detail below in conjunction with the accompanying drawings.

[0059] Smart recommendation is a function of terminal devices that recommends applications. The smart recommendation function can infer the applications that the user currently needs based on the user's historical usage records of the terminal device, and display the applications based on the inference results, so that the user can quickly obtain certain applications. Figure 1 A schematic diagram showing a terminal device displaying an application is shown. Figure 1 The "APP Suggestions" card in the app displays multiple applications such as xx video, calendar, memo and app market.

[0060] Generally, the intelligent recommendation function can calculate the user's historical usage frequency of the application based on historical usage records, sort the applications according to the historical usage frequency, and then recommend and display the high-frequency applications in the sorting results. Figure 2 It shows the smart recommendation interface in a scenario where the terminal device is connected to an external device, and the APPs with high historical usage frequency are displayed in the smart recommendation interface.

[0061] However, this intelligent recommendation method only sorts applications based on the dimension of historical usage frequency, and medium and low frequency applications are easily overlooked when recommending. In addition, the sorting results based on the historical usage frequency cannot accurately reflect the user's application usage needs in specific scenarios, which will lead to inaccurate recommendations in specific scenarios. For example, in the scenario where the terminal device is connected to an external device, if the application required by the user has a historical usage frequency of medium to low frequency, the intelligent recommendation cannot accurately display the medium and low frequency applications. Therefore, recommending applications based on historical usage frequency is not accurate and will affect the user's experience.

[0062] Generally, when a user connects an external device to a terminal device, it is usually necessary to obtain applications that are highly relevant to the external device. For example, a Bluetooth headset is an external device, and the types of applications that are highly relevant to it are generally music or video. When a user connects a Bluetooth headset to a terminal device, the user's intention may be to open a video app to play a video or a music app to play music. However, at this time Figure 2 The smart recommendation interface shown only displays video apps with high historical usage frequency, but does not display music apps. Users can click and enter video apps through the smart recommendation interface, but cannot find the music apps they want to click through the smart recommendation interface. Therefore, the historical usage frequency of apps cannot reflect the user's usage of apps during the period when the external device is connected to the terminal device, nor can it be used to infer the user's intention when the external device is connected.

[0063] In other cases, the terminal device may have multiple video apps installed. When the Bluetooth headset is connected, the video app that the user expects to click may be Figure 2 The smart recommendation interface shown shows other video apps besides the first video app, so even if Figure 2 The smart recommendation interface shown shows a video APP, and the recommended video APP still cannot meet the user's needs. Therefore, the high or low historical usage frequency cannot be used to reflect the user's intention to use the APP in a specific scenario, such as when a Bluetooth headset is connected.

[0064] In addition, there are many types of external devices, such as Bluetooth headsets, Bluetooth speakers, Bluetooth car devices or wired headsets. Users choose different types of external devices to connect to terminal devices, and their intentions for using APPs are also different. Therefore, for each scenario where different terminal devices are connected to different external devices, the historical usage frequency of the APP is used to make APP recommendations, and the recommendation results are not accurate.

[0065] In order to solve the above technical problems, the embodiment of the present application provides an application recommendation method, which is applied to a terminal device. When the terminal device is connected to an external device, the method can recommend APPs to users based on the historical usage of APPs by users in different external devices and different usage scenarios, which can solve the problem of inaccurate results caused by recommendations based on historical usage frequency in specific usage scenarios. Among them, terminal devices include but are not limited to smart phones, tablet computers, personal computers, workstation devices, large-screen devices (such as smart screens, smart TVs, etc.), wearable devices (such as smart bracelets, smart watches), handheld game consoles, home game consoles, virtual reality devices, augmented reality devices, mixed reality devices, etc., in-vehicle smart terminals, etc.

[0066] Figure 3 Schematic diagram of the hardware structure of the terminal device provided in the embodiment of the present application. Figure 3 As shown, the terminal device 100 may include a processor 110, a memory 120, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, a camera 192, a display screen 193, and a subscriber identification module (SIM) card interface 194, etc. Among them, the sensor module 180 may include a touch sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a geomagnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, etc. Among them, the gyroscope sensor 180B, the air pressure sensor 180C, the geomagnetic sensor 180D, the acceleration sensor 180E, etc. can all be used to detect the motion state of the terminal device, and therefore, can also be called motion sensors.

[0067] It is understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0068] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0069] The memory 120 can be used to store computer executable program codes, which include instructions. The memory 120 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the terminal device 100 (such as audio data, a phone book, etc.), etc. In addition, the memory 120 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the terminal device 100 by running instructions stored in the memory 120, and / or instructions stored in a memory provided in the processor.

[0070] The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the terminal device 100, and can also be used to transmit data between the terminal device 100 and peripheral devices. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other terminal devices, such as AR devices, etc.

[0071] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0072] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the terminal device 100. While the charging management module 140 is charging the battery 142, it may also power the terminal device through the power management module 141.

[0073] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the memory 120, the display screen 193, the camera 192, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.

[0074] The wireless communication function of the terminal device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

[0075] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in terminal device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0076] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the terminal device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0077] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 193. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.

[0078] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the terminal device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0079] In some embodiments, the antenna 1 of the terminal device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the terminal device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).

[0080] The terminal device 100 implements the display function through a GPU, a display screen 193, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 193 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

[0081] The display screen 193 is used to display images, videos, etc. The display screen 193 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the terminal device 100 may include 1 or N display screens 193, where N is a positive integer greater than 1.

[0082] The terminal device 100 can realize the shooting function through ISP, camera 192, video codec, GPU, display screen 193 and application processor.

[0083] The ISP is used to process the data fed back by the camera 192. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye. The ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. The ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP can be set in the camera 192.

[0084] The camera 192 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element converts the optical signal into an electrical signal, which is then transmitted to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, RYYB, YUV or other format. In some embodiments, the terminal device 100 may include 1 or N cameras 192, where N is a positive integer greater than 1.

[0085] The terminal device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.

[0086] The touch sensor 180A is also called a "touch control device". The touch sensor 180A can be arranged on the display screen 193, and the touch sensor 180A and the display screen 193 form a touch screen, also called a "touch control screen". The touch sensor 180A is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 193. In other embodiments, the touch sensor 180A can also be arranged on the surface of the terminal device 100, which is different from the position of the display screen 193.

[0087] The gyroscope sensor 180B can be used to determine the motion posture of the terminal device 100. In some embodiments, the angular velocity of the terminal device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyroscope sensor 180B. The gyroscope sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyroscope sensor 180B detects the angle of the terminal device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the terminal device 100 through reverse movement to achieve anti-shake. The gyroscope sensor 180B can also be used for navigation and somatosensory game scenes.

[0088] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the terminal device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.

[0089] The geomagnetic sensor 180D includes a Hall sensor. The terminal device 100 can use the geomagnetic sensor 180D to detect the opening and closing of the flip leather case. In some embodiments, when the terminal device 100 is a flip phone, the terminal device 100 can detect the opening and closing of the flip cover according to the geomagnetic sensor 180D. Then, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, the flip cover automatic unlocking and other features are set.

[0090] The acceleration sensor 180E can detect the magnitude of the acceleration of the terminal device 100 in various directions (generally three axes). When the terminal device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the terminal device and applied to applications such as horizontal and vertical screen switching and pedometers.

[0091] The distance sensor 180F is used to measure the distance. The terminal device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the terminal device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.

[0092] The proximity light sensor 180G may include, for example, a light emitting diode and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The terminal device 100 emits infrared light outward through the light emitting diode. The terminal device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the terminal device 100. When insufficient reflected light is detected, the terminal device 100 can determine that there is no object near the terminal device 100. The terminal device 100 can use the proximity light sensor 180G to detect that the user holds the terminal device 100 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode, and pocket mode automatically unlocks and locks the screen.

[0093] The fingerprint sensor 180H is used to collect fingerprints. The terminal device 100 can use the collected fingerprint characteristics to achieve fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.

[0094] The temperature sensor 180J is used to detect temperature. In some embodiments, the terminal device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the terminal device 100 reduces the performance of the processor located near the temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the terminal device 100 heats the battery 142 to avoid abnormal shutdown of the terminal device 100 due to low temperature. In other embodiments, when the temperature is lower than another threshold, the terminal device 100 performs a boost on the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.

[0095] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The terminal device 100 may receive key input and generate key signal input related to user settings and function control of the terminal device 100.

[0096] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 193, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.

[0097] The SIM card interface 194 is used to connect a SIM card. The SIM card can be connected to and separated from the terminal device 100 by inserting it into the SIM card interface 194 or pulling it out from the SIM card interface 194. The terminal device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 194 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 194 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 194 can also be compatible with different types of SIM cards. The SIM card interface 194 can also be compatible with external memory cards. The terminal device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the terminal device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the terminal device 100 and cannot be separated from the terminal device 100.

[0098] The software system of the terminal device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The present application embodiment takes the Android system of the layered architecture as an example to exemplify the software structure of the terminal device 100.

[0099] Figure 4 It is a software structure block diagram of the terminal device 100 according to an embodiment of the present application.

[0100] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.

[0101] The application layer can include a series of application packages.

[0102] like Figure 4 As shown, the application package may include applications such as battery management, camera, gallery, calendar, call, map, navigation, music, video, short message, etc.

[0103] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.

[0104] like Figure 4As shown, the application framework layer may include a window manager, an input manager, a sensor manager, a phone manager, a resource manager, a notification manager, and the like.

[0105] The input manager can be used to monitor user input events, such as click events and slide events performed by the user's finger on the display screen 193 of the terminal device 100. By monitoring the input events, the terminal device 100 can determine whether the terminal device is being used.

[0106] The sensor manager is used to monitor the data returned by each sensor in the terminal device, such as motion sensor data, proximity light sensor data, temperature sensor data, etc. Using the data returned by each sensor, the terminal device can determine whether it is shaking, or whether the display screen 193 is blocked, etc.

[0107] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.

[0108] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.

[0109] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.

[0110] The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.

[0111] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.

[0112] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0113] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0114] A 2D graphics engine is a drawing engine for 2D drawings.

[0115] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.

[0116] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0117] The following is an exemplary description of the various steps of the application recommendation method provided in the embodiment of the present application.

[0118] Figure 5 A schematic flow chart of the application recommendation method provided in the embodiment of the present application. Figure 5 As shown, the application recommendation method may include the following steps S201-S204.

[0119] S201: Acquire usage data of each application program during the period when the terminal device is connected to an external device.

[0120] The external device may be a device that can establish a connection with the terminal device, and the connection method between the external device and the terminal device may also be flexible and diverse. For example, the external device and the terminal device may be connected wirelessly or by wire.

[0121] The external device may be a device with a Bluetooth function, so that a Bluetooth connection can be established between the external device and the terminal device. The device with a Bluetooth function may specifically be a Bluetooth headset, a car Bluetooth device, a Bluetooth speaker, a smart wearable device, a smart phone, a tablet computer or a personal computer, etc. The external device may also be a wired connection device, so that a wired connection can be established between the external device and the terminal device, and the wired connection device may be a 3.5mm interface wired headset or a type-c interface wired headset, etc.

[0122] Since the user's usage of the application during the historical access of the external device includes the user's demand for the application during the access of the external device, it is possible to measure whether to recommend a certain application to the user based on the user's usage of the application during the historical access. The application recommendation method provided in this embodiment can obtain the usage data of each application during the period when the terminal device is connected to the external device, and recommend applications to the user based on the usage data.

[0123] Specifically, the terminal device can be configured to collect the user's usage data of each application during the period when the external device is connected, and store the collected data in a database for subsequent application recommendation. In addition, the terminal device can also be configured with a sensor, which can be used to identify whether an external device is connected to the terminal device, whether the external device is disconnected from the terminal device, and the type of the external device.

[0124] The usage data of each application may include data such as the application startup record, the number of times the user uses the application, the duration of the user's use of the application, and the category of the application used by the user during the period when the external device is connected.

[0125] In the embodiment of the present application, during the period when the terminal device is connected to an external device, if the user clicks on the icon of a certain application in the screen interface, the application is started and enters the user interface (UI), then it is considered that the user has used the application. During each period when the terminal device is connected to an external device, if a certain application is used, the number of times the application is used is increased by 1. During the period when the terminal device is connected to an external device, the total number of times the user clicks on the icon of the application is the number of times the user clicks on the application.

[0126] Exemplarily, when the external device is a Bluetooth headset, the first video APP is used once, and the number of clicks on the first video APP by the user is 10 times. The first music APP is used 5 times, and the number of clicks on the first music APP by the user is 20 times. The telephone service is used once, and the number of clicks on the telephone service by the user is 5 times. When the external device is a car-mounted Bluetooth device, the map navigation APP is used 3 times, and the number of clicks on the map navigation APP by the user is 20 times, and the audiobook APP is used 2 times, and the number of clicks on the audiobook APP by the user is 10 times. The foregoing content shows how the user may use the application during the access of the external device, and does not constitute a limitation of the application scheme of this application.

[0127] S202: Calculate the weight value of each application for each external device based on the usage data.

[0128] The weight value can be used to measure the importance of each application to the user during the period of external device access. Since the user's use of applications is different during different external device access periods, the usage data of each application is also different, so the weight value of each application during different external device access periods is also different.

[0129] Specifically, for a certain external device, the larger the weight value of an application, the more important the application is to the user during the period when the external device is connected, and the stronger the user's intention to use the application with a large weight value. On the contrary, the smaller the weight value of an application, the less important the application is to the user during the period when the external device is connected, and the weaker the user's intention to use the application with a small weight value. Therefore, the weight value of each application can be calculated based on the above usage data to distinguish each application. For different external devices, the weight value of the same application may be the same or different.

[0130] It is understandable that, as the external device is connected to the terminal device multiple times, the usage data of each application program gradually increases, and the weight value of each application program may also change.

[0131] It is understandable that before the step of calculating the weight value of each application for each external device, a step of distinguishing usage data according to the type of external device can also be included, so that the application usage data of each external device during the connection period can be obtained to calculate the weight value.

[0132] For example, when the external device is a Bluetooth device, the weight value of the first video APP is 0.7, the weight value of the first music APP is 0.6, the weight value of the news APP is 0.5, the weight value of the third music APP is 0.4, the weight value of the telephone service is 0.3, and the weight value of the application market is 0.1. When the external device is a car Bluetooth device, the weight value of the map navigation APP is 0.8, the weight value of the audiobook APP is 0.6, the weight value of the first music APP is 0.5, the weight value of the third music APP is 0.3, and the weight value of the telephone service is 0.2.

[0133] S203: For each external device, sort the application programs in descending order of weight value, and add the sorted application programs to an application recommendation list corresponding to each external device.

[0134] Based on the weight values ​​of the above applications, a recommended application list corresponding to the Bluetooth headset can be obtained, and the application list is shown in Table 1. The applications are arranged in the recommended application list according to the weight values.

[0135] Table 1 Application recommendation list

[0136] Serial number app Weight value 1 First Video APP 0.7 2 No.1 Music APP 0.5 3 Third Music APP 0.4 4 Telephone service 0.3 5 Application Market 0.1

[0137] Based on the weight values ​​of the above applications, a recommended application list corresponding to the vehicle-mounted Bluetooth device can be obtained, and the recommended application list is shown in Table 2. Among them, the applications are arranged in the recommended application list according to the size of the weight value.

[0138] Table 2 Application recommendation list

[0139] Serial number app Weight value 1 Map Navigation App 0.8 2 Audiobook APP 0.6 3 No.1 Music APP 0.5 4 Third Music APP 0.3 5 Telephone service 0.2

[0140] S204: When it is detected that the target external device is connected to the terminal device, a target application recommendation list corresponding to the target external device is determined, and application programs in the target application recommendation list are recommended to the user.

[0141] In the embodiment of the present application, after the sensor of the terminal device detects that the target external device is connected to the terminal device, the terminal device can determine the target application recommendation list according to the type of the target external device. Further, the application programs in the target application recommendation list can be displayed in the recommendation card of the screen interface of the terminal device.

[0142] Figure 6 A schematic diagram of application recommendation provided in an embodiment of the present application. For example, when the target external device is a Bluetooth headset, the application recommendation list corresponding to the Bluetooth headset is the target application recommendation list. At this time, the applications displayed in the recommendation card (APP suggestion) include the first video APP, the first music APP, the news APP and the third music APP in the target application recommendation list.

[0143] Furthermore, Figure 7 After the step of obtaining the usage data of each application during the period when the terminal device is connected to the external device, the application recommendation method provided in the embodiment of the present application further performs the following steps: Figure 7 Step S301 shown:

[0144] S301: Acquire usage data of various external devices during the period when the terminal device is connected to the external device.

[0145] When the external device is connected to the terminal device, the terminal device can collect usage data of the external device and store the collected data in a database. The usage data of the external device can include connection information, connection time, disconnection information, disconnection time, geographical location information of the external device, such as the location of use, etc. The step of collecting geographical location information can be implemented based on GNSS.

[0146] Taking a Bluetooth headset as an example, when the Bluetooth headset is connected for the first time, the usage data 1 of the Bluetooth headset may include: connected information, connection time 14:00, disconnected information, disconnected time 14:03, and the geographic location company used. When the Bluetooth headset is connected for the second time, the usage data 2 of the Bluetooth headset may include: connected information, connection time 14:03, disconnected information, disconnected time 18:00, and geographic location information company. When the Bluetooth headset is connected for the third time, the usage data 3 of the Bluetooth headset may include: connected information, connection time 19:00, disconnected information, disconnected time 23:00, and geographic location information home.

[0147] S302: Based on usage data of various external devices, determine a usage scenario corresponding to each external device.

[0148] Since users may face different usage scenarios when using different external devices, and the user's application usage habits may also be different in different usage scenarios, it is possible to determine the user's application usage habits during the connection of the external device for each usage scenario. The factors that determine the usage scenario may be the usage period and the usage location. For example, the user chooses a Bluetooth headset as an external device to connect to the terminal device. Specifically, the Bluetooth headset is used in the company and the usage period is 14:00-18:00. Then the user's application usage habits may be to use an online conference APP to attend meetings. The Bluetooth headset is used at home and the usage period is 18:00-24:00. Then the user's application usage habits may be to use video applications to play movies, or to use music applications to play music. Therefore, in the embodiment of the present application, applications can be recommended to users based on different usage scenarios, which can make the recommendations more accurate.

[0149] Furthermore, after determining the usage scenario of each external device, a step of recommending applications for each scenario is also included. Specifically, step S202 may include the following: Figure 8 Steps S401-S402 shown:

[0150] S401: Determine usage data of each application program in each usage scenario of each application program.

[0151] S402: For each usage scenario of each external device, respectively calculate the weight value of each application program for each external device.

[0152] In this way, the weight values ​​of various applications in each usage scenario of the external device can be obtained. Based on the different usage scenarios when the external device is connected, differentiated recommendations can be made, which can make the recommendations more accurate and more in line with the user's usage habits.

[0153] Take the external device as a Bluetooth headset as an example for an exemplary description, where the first scene is outdoors, 8-12 o'clock, at this time the weight value of the first music APP is 0.8, the weight value of the news APP is 0.7, the weight value of the short video APP is 0.5, the weight value of the social APP is 0.4, and the weight value of the mailbox is 0.1. The second scene is home, 13-14 o'clock, at this time the weight value of the first music APP is 0.5, the weight value of the social APP is 0.5, the weight value of the first game APP is 0.4, the weight value of the second game APP is 0.3, and the weight value of the mailbox is 0.1. Then when the Bluetooth headset is connected to the terminal device in the first scene, the application recommended to the user can be the first music APP, news APP, short video APP and social APP, which have larger weight values ​​in the current usage scenario. When the Bluetooth headset is connected to the terminal device in the second scene, the application recommended to the user is the first music APP, social APP, first game APP, second game APP, which have larger weight values ​​in the current usage scenario.

[0154] Further, after determining the weight value of each application in each usage scenario, step S203 may specifically include:

[0155] S501: For each usage scenario of each external device, sort each application program in descending order of weight value, and add each sorted application program to a corresponding application recommendation list.

[0156] The embodiment of the present application can obtain an application recommendation list corresponding to each usage scenario of each external device. In this way, application programs can be recommended differently based on the usage scenario in which the external device is connected.

[0157] Further, when it is detected that the target external device is connected to the terminal device, step S204 may specifically include the following steps: Fig. 9 Steps S601-S602 shown:

[0158] S601: Determine the current usage scenario of the target external device.

[0159] S602: Determine a corresponding target application recommendation list according to the current usage scenario of the target external device, and recommend application programs in the target application recommendation list to the user.

[0160] Therefore, when the current usage scenario of the target external device is different, the target application recommendation list is different, and the application recommended to the user is also different. Learning the user's preference for application programs under different external devices and different usage scenarios can better recommend applications to users, which is more in line with the actual needs of users and has a higher recommendation success rate.

[0161] Fig.10 Another schematic flow chart of the application recommendation method provided in the embodiment of the present application. Fig.10 As shown, the application recommendation method may further include the following steps S701-S706:

[0162] S701: Obtain usage data of each application during the period when the terminal device is connected to an external device, the external device including at least one of a Bluetooth headset, a wired headset, a car Bluetooth device, a Bluetooth speaker, and other external devices; the application usage data includes at least the number of times each application is used, and / or the number of times the user clicks on each application; for any target application installed on the terminal device, the number of uses is the total number of times the user uses the target application during the period when the terminal device is connected to the external device m times, m≥1, wherein during each time the terminal device is connected to the external device, if the user clicks on the icon of the target application at least once to cause the terminal device to enter the user interface of the target application, the number of uses is increased by 1, and the number of clicks is the total number of times the user clicks on the icon of the target application.

[0163] The usage data of each application during the period when the terminal device is connected to the external device may include all the usage data of the application during one or more accesses of the external device. After S701, the embodiment of the present application may further include the step of distinguishing the usage data according to the type of the external device, so that the usage data of each application during the connection of each external device can be obtained.

[0164] Furthermore, the number of times an application is used may be the sum of the number of times the user uses the application during each access of the external device. Specifically, if the user has used an application during one of the accesses of an external device such as a Bluetooth headset, the number of times the user has used the application may be recorded as 1. If the user has not used the application, the number of times the user has used the application may be recorded as 0.

[0165] Furthermore, the number of times a certain application is used can be calculated by the following formula:

[0166]

[0167] Wherein, f is the number of times a certain application is used, i=1 represents the first connection, N represents the Nth connection, and ∑ is a summation symbol.

[0168] x is calculated by the following formula:

[0169]

[0170] From the above content, it can be seen that the number of times an application is used can reflect the degree of user demand for the application.

[0171] The number of clicks by the user on each application may be the sum of the number of clicks by the user on each application during each access of the external device. Therefore, the number of clicks by the user on each application may reflect the frequency of use of the application by the user.

[0172] The user interface of an application is the medium for interaction and information exchange between the system and the user. The user interface can realize the conversion between the machine form of information and the form acceptable to the user. The purpose of designing the user interface of an application is to enable users to operate the hardware (terminal equipment) conveniently and efficiently to achieve two-way interaction. Fig.11 The user interface of the calendar application is shown as an example in FIG.

[0173] S702: Based on the usage time periods of various external devices and / or the usage locations of various external devices, determine multiple usage scenarios corresponding to each external device; wherein different scenarios correspond to different usage time periods and / or different usage locations, and each usage scenario of each external device corresponds to an application recommendation list.

[0174] In the embodiment of the present application, the usage scenarios of the external device can be divided based on the user's usage habits of the external device. The specific usage scenarios can be the user's usage time or usage location of the external device. In this way, for an external device, different situations of multiple users using the external device can be refined, which can better reflect the user's usage habits and preferences for the external device.

[0175] Fig.12 A schematic diagram of a usage scenario of an external device provided in an embodiment of the present application, such as Fig.12 As shown, for the external device of Bluetooth headset, the usage location can include at least home and company. When the usage location is company, the usage time period can include at least four time periods: 8:00-12:00, 13:00-14:00, 14:00-18:00 and 18:00-24:00. Fig.12 In the example, the usage location company and usage time period 8:00-12:00 can be one scenario, the usage location company and usage time period 13:00-14:00 can also be one scenario, the usage location company and usage time period 14:00-18:00 can also be one scenario, and the usage location company and usage time period 18:00-24:00 can also be one scenario. The aforementioned usage time periods and usage locations are all exemplary descriptions and do not constitute a specific limitation on the solution.

[0176] For the various usage scenarios of wired headphones, car Bluetooth devices, Bluetooth speakers and other external devices shown in the figure, you can refer to the usage scenarios of Bluetooth headphones, which will not be repeated here.

[0177] In the embodiment of the present application, the determination of the usage scenario of the external device may include the following two methods.

[0178] The first method is to determine the usage location and usage time period of the user's tendency to use the external device by dividing it based on the user's usage data of the external device during the access of the external device. The user's usage data of the external device may include the geographical location of the external device and the connection time and disconnection time of the external device each time the external device is connected to the terminal device. The usage location is then determined based on the geographical location of the external device, and the usage time period is determined based on the connection time and disconnection time. It can be understood that as the external device is connected to the terminal device multiple times, the usage data of the external device gradually increases, and the usage location and the start and end times of the usage time period can also be flexibly changed according to actual conditions, and are not limited to Fig.12 The locations and periods of use shown.

[0179] The second method is to use a machine learning algorithm to determine the usage scenario of the external device. For example, a decision tree algorithm can be used to determine the usage location and usage time division method. Specifically, the user's usage data of the external device during the connection of the external device can be input into the decision tree model to obtain the decision tree corresponding to the current external device. Fig.12 The three-layer decision tree is shown as an example. The first layer of the decision tree is the external device type layer, which includes five nodes, namely Bluetooth headsets, wired headsets, car Bluetooth devices, Bluetooth speakers and other external devices. The second layer of the decision tree is the usage location layer, which includes two nodes, namely home and company. The third layer of the decision tree is the usage time layer, which includes four nodes, namely 8:00-12:00, 13:00-14:00, 14:00-18:00 and 18:00-24:00. As the decision tree model continues to learn, how the usage location is divided, the start and end times of the usage time period will change. Therefore, the usage scenarios determined based on the decision tree will also change accordingly.

[0180] In an embodiment of the present application, each usage scenario of each external device corresponds to an application recommendation list. In this way, when the external device is connected to a terminal device, different current usage scenarios of the external device can recommend application programs to the user based on their corresponding application recommendation lists.

[0181] S703: Obtain the number of connections of each external device in each usage scenario.

[0182] In one implementation, step S703 may specifically include obtaining the number of connections corresponding to the valid connection state of each external device in each usage scenario.

[0183] The valid connection state refers to the state in which the external device and the terminal device establish a valid connection, and the invalid connection state refers to the state in which the external device and the terminal device establish an invalid connection. Since the data during the invalid connection state cannot reflect the user's usage habits of the application, the data during the invalid connection state cannot be used to recommend applications. In the embodiment of the present application, the number of connections corresponding to the valid connection state of each external device in each usage scenario is obtained respectively to make application recommendations.

[0184] In the embodiment of the present application, the more times the external device is connected in each usage scenario, the richer the user's usage data of the application is, and the more it can reflect the user's actual usage habits.

[0185] S704: For each usage scenario of each external device, calculate a first ratio of the number of times each application corresponding to the usage scenario is used to the total number of times the external device is connected to the usage scenario, and / or a second ratio of the number of times the user clicks on each application to the total number of times the user clicks on all applications.

[0186] In the embodiment of the present application, the weight value may include a first ratio and a second ratio. The first ratio may be referred to as a usage frequency ratio, which is specifically determined by the number of times each application is used and the number of connections corresponding to the usage scenario.

[0187] Furthermore, the first ratio of a certain application can be calculated by the following formula:

[0188]

[0189] Among them, ω1 is the first ratio, is the number of times the application is used, and N is the number of connections corresponding to the usage scenario.

[0190] The calculation process of the first ratio is exemplarily introduced by taking the external device as a car Bluetooth device and the usage scenario as the third scenario. The usage location in the third scenario is outdoors and the usage period is 8 am to 12 pm. In the third scenario of the car Bluetooth device, the car Bluetooth device is connected five times. During the five connections, the user used the map navigation APP for the first, third, fourth and fifth connections, and did not use the map navigation APP for the second connection. At this time, the first ratio of the map navigation APP = 4 / 5 = 0.8. During the five connections, the user used the telephone service for the first, third and fourth connections, and did not use the telephone service for the second and fifth connections. At this time, the first ratio of the telephone service = 3 / 5 = 0.6. During the five connections, the user used the first music APP for the first, second and fifth connections, and did not use the first music APP for the third and fourth connections. At this time, the first ratio of the first music APP = 3 / 5 = 0.6. During the five connections, the user used the second music APP during the third and fourth connections, and did not use the second music APP during the first, second, and fifth connections. At this time, the first ratio of the second music APP = 2 / 5 = 0.4. During the five connections, the user used the news APP during the first and third connections, and did not use the news APP during the second, fourth, and fifth connections. At this time, the first ratio of the news APP = 2 / 5 = 0.4. During the five connections, the user used the audiobook APP during the second connection, and did not use the audiobook APP during the first, third, fourth, and fifth connections. At this time, the first ratio of the audiobook APP = 1 / 5 = 0.2.

[0191] In the embodiment of the present application, the second ratio may be referred to as a click frequency ratio, which is specifically determined by the number of clicks on each application by the user and the total number of clicks on all applications by the user.

[0192] Furthermore, the second ratio of a certain application can be determined by the following formula:

[0193]

[0194] Wherein, ω2 is the second ratio, y is the number of clicks on each application by the user, and Y is the total number of clicks on all applications by the user.

[0195] The calculation process of the second ratio is exemplarily introduced by taking the external device as a Bluetooth headset and the usage scenario as the fourth scenario. The usage location in the fourth scenario is home and the usage period is 14:00-18:00. In the fourth scenario of the Bluetooth headset, the total number of clicks on all applications by the user is 100 times, among which the number of clicks on the first video APP is 20 times. At this time, the second ratio of the first video APP = 20 / 100 = 0.2. The number of clicks on the first music APP is 20 times. At this time, the second ratio of the first music APP = 20 / 100 = 0.2. The number of clicks on the first game APP is 50 times. At this time, the second ratio of the first game APP = 50 / 100 = 0.5. The number of clicks on the telephone service is 10 times. At this time, the second ratio of the telephone service = 10 / 100 = 0.1.

[0196] In some implementations, when the method for determining the usage scenario of the external device is the first method mentioned above, a first ratio can be used to measure the weight of each application. When the method for determining the usage scenario of the external device is the second method mentioned above, a second ratio can be used to measure the weight of each application. The present application does not make specific limitations on this.

[0197] In this way, the first ratio and the second ratio can fully reflect the user's usage habits of the application program in a specific usage scenario. After the calculation in S704, the weight value of each application program is determined for different external devices and different usage scenarios.

[0198] S705: For each usage scenario of each external device, sort the applications according to the order of the first ratio from high to low, and / or the order of the second ratio from high to low, and add at least one or more applications with the highest sorting to the corresponding application recommendation list; wherein the first ratio corresponding to the application in the application recommendation list is greater than or equal to the first threshold, and / or the second ratio corresponding to the application in the application recommendation list is greater than or equal to the second threshold.

[0199] Since the magnitude of the first ratio and the second ratio depends on the user's use of the application in a specific use scenario, the magnitude of the first ratio and the second ratio can measure the importance of each application to the user, so the applications can be ranked based on the magnitude of the first ratio and the second ratio. In this way, the applications ranked higher are more important to the user, and the applications ranked lower are less important to the user, so an application recommendation list can be generated according to the order of the applications to make recommendations to the user.

[0200] Taking the external device as a vehicle-mounted Bluetooth device and the usage scenario as the third scenario as an example, the application recommendation list corresponding to the third scenario of the vehicle-mounted Bluetooth device is the first application recommendation list, and each application is sorted in descending order according to the first ratio, and at least one or more applications with the highest sorting are added to the corresponding first application recommendation list, so as to obtain Table 3.

[0201] Table 3 First application recommendation list

[0202] Serial number app First ratio 1 Map Navigation App 0.8 2 Telephone service 0.6 3 No.1 Music APP 0.6 4 Second Music APP 0.4 5 News APP 0.4

[0203] In the embodiment of the present application, the first threshold value may be 0.4. As shown in the above table, applications whose first ratio is greater than or equal to the first threshold value, such as map navigation APP, telephone service, first music APP, second music APP and news APP, are added to the first application recommendation list, while applications whose first ratio is less than the first threshold value, such as audiobook APP, are not added to the first application recommendation list.

[0204] Taking the external device as a Bluetooth headset and the usage scenario as the fourth scenario as an example, the application recommendation list corresponding to the fourth scenario of the Bluetooth headset is the second application recommendation list. Each application is sorted in descending order according to the second ratio, and at least one or more applications with the highest ranking are added to the corresponding second application recommendation list, and Table 4 can be obtained.

[0205] Table 4 Second application recommendation list

[0206] Serial number app First ratio 1 No.1 Game APP 0.5 2 First Video APP 0.2 3 No.1 Music APP 0.2

[0207] In the embodiment of the present application, the second threshold value may be 0.2. As shown in the above table, applications whose second ratio is greater than or equal to the second threshold value, such as the first game APP, the first video APP, and the first music APP, are added to the second application recommendation list, while applications whose second ratio is less than the second threshold value, such as telephone services, are not added to the second application recommendation list.

[0208] In some implementations, the applications in the application list may also be the first K applications in the sequence of the applications obtained after sorting, where K is a natural number. The specific value of K may be determined according to actual conditions, and this application does not make any specific limitation on this.

[0209] In the embodiment of the present application, the first ratio and / or the second ratio can be used to measure the importance of each application to the user in a specific scenario to obtain an application recommendation list. In this way, the application recommendation list can be used to recommend applications or services to the user.

[0210] S706: When it is detected that the target external device is connected to the terminal device, a corresponding target application recommendation list is determined according to the current usage scenario of the target external device, and application programs in the target application recommendation list are recommended to the user.

[0211] In the embodiment of the present application, the sensor of the terminal device can identify whether an external device is connected and the type of the target external device, and the terminal device can also identify the current usage scenario of the target external device. Further, a target application recommendation list corresponding to the current usage scenario of the target external device can be obtained. After that, the application programs in the target application recommendation list can be recommended to the user, so that the user's intention can be accurately identified and the recommendation success rate is high.

[0212] Fig.13 A schematic diagram of recommending applications to users provided in an embodiment of the present application. Taking the external device as a car Bluetooth device and the usage scenario as the third scenario as an example, the first application recommendation list is the target recommendation list, and the applications in the target recommendation list are displayed in Fig.13 In the "App suggestions" card in .

[0213] In the embodiment of the present application, for example, based on the user's historical usage habits of applications during the use of external devices, when the target external device is a Bluetooth headset or a wired headset, the applications recommended to the user may include at least one of film and television applications, music applications, and game applications. When the target external device is a car Bluetooth device, the applications recommended to the user may include map applications and / or radio applications. When the target external device is a Bluetooth speaker, the applications recommended to the user may include music applications.

[0214] It should be noted that the above content is only an exemplary description of the embodiments of the present application. In actual applications, when the target external device is a Bluetooth headset or a wired headset, the application recommended to the user is not limited to film and television applications, music applications or game applications, but can also be other types of applications, such as news applications, etc. The specific category or type of application recommended is determined by the user's historical usage habits of the application during the use of the external device. Correspondingly, when the target external device is a car-mounted Bluetooth device, the application recommended to the user can also be a music application, etc. When the target external device is a Bluetooth speaker, the application recommended to the user can also be a film and television application, etc.

[0215] It can be seen from the above technical solutions that the application recommendation method provided in the embodiment of the present application can sort each application separately in a specific external device usage scenario according to the usage data of each application during the connection of the terminal device to the external device to obtain an application recommendation list. Then, a target application recommendation list for recommendation is determined based on the specific usage scenario of the external device access. In this way, the recommended application has a high correlation with the external device and is more in line with the user's intention to use the application in a specific scenario, and the recommendation success rate is high. In addition, the application recommendation method provided in the embodiment of the present application can rely only on the terminal side for recommendation, without the need for resources such as the network or cloud server, and has low resource dependence.

[0216] Fig.14 A schematic diagram of the data cleaning process provided in an embodiment of the present application.

[0217] like Fig.14 As shown, after step S703 obtains the number of connections of each external device in each usage scenario, the embodiment of the present application further includes the following steps S801-S802 for data cleaning:

[0218] S801: Obtain the connection status of each connection of each external device in each usage scenario respectively, where the connection status includes a valid connection status and an invalid connection status.

[0219] During the connection between the external device and the terminal device, there may be some situations where the external device frequently establishes a connection with the terminal device, or the external device establishes a short connection with the terminal device, or the terminal device cannot accurately identify the external device. There may also be some situations where the connection data between the external device and the terminal device is lost. Through these abnormal situations, it can be found that the external device is establishing an invalid connection with the terminal device. During the invalid connection period, the user's use of the application cannot reflect the user's actual use needs for the application. On the contrary, the user's use of the application during the invalid connection period will also affect the terminal device's learning of the user's habits during the connection of the external device. Therefore, the connection status of each connection of each external device in each usage scenario can be determined, and how to recommend the application can be determined based on the connection status.

[0220] S802: Deleting usage data of each application program of each external device during the invalid connection state.

[0221] Since the usage data of each application during the invalid connection state cannot correctly reflect the user's usage needs for the application, in order to prevent these usage data from affecting the terminal device's learning of the user's habits during the period of connecting to the external device, for the data called in step S701, the usage data of each application for each external device during the invalid connection state is deleted, and the usage data of each application for each external device during the valid connection state is retained.

[0222] After the data cleaning of steps S801-S802, the retained data is the usage data of the application during the effective connection of the external device. Application recommendations based on the retained data can make the recommendations of the terminal device more accurate.

[0223] Fig.15 A schematic diagram of a process for determining the effective connection status of a terminal device provided in an embodiment of the present application.

[0224] Further, in the embodiment of the present application, step S801 includes: Fig.15 Steps S8011-S8013 shown:

[0225] S8011: Obtain the duration of each connection of each external device in each usage scenario.

[0226] The duration is the duration of the connection between the external device and the terminal device, which can be determined based on the connection time and disconnection time of the external device stored in the terminal device. For example, if the connection time of the external device is 14:00 and the disconnection time is 15:30, then the duration of the connection is 90 minutes.

[0227] S8012: If the duration is less than the first time threshold, determine that the connection state of the current connection is an invalid connection state.

[0228] When a user establishes a connection between an external device and a terminal device, there may be a situation where the external device is tested, such as plugging and unplugging a wired headset multiple times in a short period of time to test the performance of the wired headset. Multiple connections in a short period of time are not a user's habit of using external devices, so the connection state of this connection may be an invalid connection state. Specifically, the duration is less than the first time threshold. The specific value of the first time threshold can be determined by the actual situation, and this application does not make specific restrictions on this.

[0229] S8013: If the duration is greater than or equal to the first time threshold, determine that the connection state of the current connection is a valid connection state.

[0230] If the duration is greater than or equal to the first time threshold, it may be indicated that the user continuously uses the external device in the usage scenario, and thus the connection state of this connection may be a valid connection state.

[0231] In some implementations, there may also be a situation where the external device is temporarily disconnected from the terminal device. For example, the user accidentally turns off the Bluetooth function switch of the terminal device, or the wired headset accidentally comes out of the connection hole of the terminal device. At this time, the user does not want to disconnect the external device from the terminal device, but an erroneous operation occurs. Therefore, in an embodiment of the present application, the duration of the interval between two connections of the same external device can also be obtained. If the duration is less than a preset threshold, the two connection processes are determined as one connection, the connection time of the first connection is determined as the connection time of the one connection, and the disconnection time of the later connection is determined as the disconnection time of the one connection. Then, based on the connection time and the disconnection time, the connection state of the one connection is determined as a valid connection state or an invalid connection state.

[0232] Continue to see Fig.15 In the embodiment of the present application, step S801 also includes the following steps S8014-S8016:

[0233] S8014: Obtain connection data and disconnection data of each connection of each external device in each usage scenario.

[0234] In the embodiment of the present application, the sensor of the terminal device can identify the type of the external device, whether it is connected and whether it is disconnected, so the terminal device can store the connection data and disconnection data of the external device. The connection data is used to record the data that the external device has established a connection with the terminal device, and the disconnection data is used to record the data that the external device has been disconnected from the terminal device.

[0235] S8015: If the connection data and / or disconnection data are not obtained, determine that the connection state of the current connection is an invalid connection state.

[0236] In some cases, there may be some data loss. For example, for a certain connection, the terminal device only stores the connection data but not the disconnection data, or only stores the disconnection data but not the connection data. In this case, the terminal device cannot accurately determine the connection time or disconnection time of the connection, and cannot determine the usage data of each application for the connection, and cannot make application recommendations based on the connection. Therefore, the connection is determined to be an invalid connection state.

[0237] For a certain connection, if the terminal device only stores connection data but no disconnection data, then the period between the time when the next connection is established and the time when the previous connection is established can be determined as the invalid connection period. For a certain connection, if the terminal device only stores disconnection data but no connection data, then the period between the time when the previous connection is disconnected and the time when the current connection is disconnected can be determined as the invalid connection period. The usage data of the application during the invalid connection period should be deleted.

[0238] S8016: If the connection data and the disconnection data are obtained, it is determined that the connection state of the current connection is a valid connection state.

[0239] The terminal device stores the connection data and disconnection data of the connection, which means that the usage of the external device in this usage scenario is accurately recorded, so the connection status of this connection can be a valid connection status.

[0240] In one implementation, the first threshold includes a first sub-threshold, and a first ratio of application programs in the application recommendation list can be determined by following the steps S7051-S7052:

[0241] S7051: When the number of connections is greater than or equal to the first number threshold and less than or equal to the second number threshold, the first ratio corresponding to the application in the application recommendation list is greater than the first sub-threshold.

[0242] In the embodiment of the present application, based on the calculation method of the first ratio, it can be determined that the larger the first ratio of the application, the more times the user uses the application, and the more attention the user pays to the application. And if the number of connections is greater than or equal to the first number threshold, and less than or equal to the second number threshold, then it means that the application usage data used to determine the user's usage habits is still relatively small at this time, and the user's application usage behavior is still unstable at this time, so it can be determined that the user prefers to use applications with a large first ratio, and the user's usage habits for applications with a small first ratio cannot be determined. Therefore, a larger first sub-threshold can be selected at this time so that applications with a large first ratio can enter the application recommendation list.

[0243] Preferably, the first number threshold may be 3, the second number threshold may be 5, and the first sub-threshold may be 0.6, so that the application programs in the application recommendation list are application programs whose first ratio is greater than or equal to 0.6.

[0244] Furthermore, the first threshold also includes a second sub-threshold, and the second sub-threshold is smaller than the first sub-threshold.

[0245] S7052: When the number of connections is greater than the second sub-threshold, the first ratio corresponding to the application in the application recommendation list is greater than the second sub-threshold.

[0246] In an embodiment of the present application, if the number of connections is greater than the second sub-threshold, it means that there is a lot of usage data of the application used to determine the user's usage habits, the user's behavior is relatively more stable, the user uses more and more applications, and the user's preference for each application has gradually emerged. At this time, there may be many applications with similar first ratios. In order to make the applications added to the application recommendation list more accurate and more in line with the user's usage needs, a smaller second sub-threshold can be selected to allow more applications to enter the application recommendation list.

[0247] Preferably, the second sub-threshold may be 0.4, so that the application programs in the application recommendation list are application programs whose first ratio is greater than or equal to 0.4.

[0248] Furthermore, in an embodiment of the present application, the screen interface of the terminal device includes an application recommendation card, which can also be called a service card. Fig.16 The example application recommends the card style. Fig.16 In the app recommendation card, it is named "APP Suggestions".

[0249] It is understandable that the number of application recommendation cards and the distribution positions of application recommendation cards on the screen interface can be arbitrarily set by the user, that is, the application recommendation cards can be added to any screen of the terminal device, not limited to Fig.16 The name of the application recommendation card is not limited to Fig.16 The situation shown.

[0250] Furthermore, the step of recommending the application program in the target application recommendation list to the user specifically includes:

[0251] S901: Displaying an icon of at least one application in the target application recommendation list in an application recommendation card.

[0252] In this way, the applications in the target application recommendation list can be displayed in the screen interface. After the user establishes a connection between the external device and the terminal device, the user can quickly enter the application by clicking the application icon in the application recommendation card as needed, and no longer needs to search for the desired application between multiple screens. Since the applications displayed in the application recommendation card are determined based on the user's historical use of the application, and the applications displayed in the application recommendation card are in line with the current usage scenario of the external device, the recommendation success rate is high.

[0253] Furthermore, the step of recommending the application program in the target application recommendation list to the user specifically includes:

[0254] S902: Obtain a quick entry of an application in the target application recommendation list, where the quick entry is used to start a target function of the application or enter a target page of the application.

[0255] S903: Displaying the icon of the quick entry in the application recommendation card.

[0256] For example, the target function of the first music APP may be "recently played". Fig.17 The icon of the quick entry of "Recently Played" is shown in FIG. The target function of the online shopping APP may be "Takeout". The target page of the mobile payment APP may be the "Payment and Collection" page. It is understood that the above contents are exemplary descriptions and do not constitute a specific limitation of the solution.

[0257] Furthermore, the type of quick entry displayed on the application recommendation card can be determined based on the user's usage habits of the application. For example, the ratio of the number of clicks on the control of the target function of the application by the user to the total number of clicks on the user interface of the application by the user is determined. If the ratio is greater than a preset threshold, the target function can be formed into a quick entry, so that the target function can be quickly entered through the application recommendation card. The method for determining the target page can also refer to the above content and will not be repeated here.

[0258] Furthermore, the embodiments of the present application can determine the target function in a specific usage scenario based on the actual situation of the user clicking on the function space of the application in each usage scenario of each external device.

[0259] Fig.18 A schematic flowchart of a method for recommending an application to a user provided in an embodiment of the present application.

[0260] like Fig.18 As shown, in one implementation, the step of displaying the icon of the application in the target application recommendation list in the application recommendation card may include the following steps S9011-S9012:

[0261] S9011: Determine whether the screen interface includes an icon of a first application, where the first application is any application in the target application recommendation list.

[0262] S9012: If the screen interface does not include the icon of the first application, display the icon of the first application in the application recommendation card.

[0263] In this way, the first application program will not appear repeatedly in the screen interface. Moreover, when the user stays on the screen interface where the application recommendation card is located, the first application program can still be quickly found and clicked.

[0264] Fig.19 A schematic diagram of an application recommendation card provided in an embodiment of the present application. Fig.19 As shown, taking the external device as a car-mounted Bluetooth device and the usage scenario as the third scenario as an example, the applications in the target application recommendation list are map navigation APP, phone service, first music APP, second music APP and news APP. Since the phone service is the first application and has been displayed in the dock area of ​​the screen interface, the phone service can be displayed in the application recommendation card.

[0265] Fig. 20 Another schematic flowchart of recommending applications to users provided in an embodiment of the present application.

[0266] like Fig. 20 As shown, in one implementation, the step of displaying the icon of the application in the target application recommendation list in the application recommendation card may include the following steps S9013-S9014:

[0267] S9013: Determine whether the application recommendation card includes an icon of a second application, where the second application is an application other than the application in the target application recommendation list.

[0268] S9014: If the application recommendation card includes the icon of the second application, replace the icon of the second application with the icon of the third application, the third application is an application in the target application recommendation list, and the third application is not an application in the application recommendation card.

[0269] Since the second application is not in the target application recommendation list, the second application should not be displayed in the application recommendation card, and the second application should be replaced by the icon of the application in the target application recommendation list (the icon of the third application).

[0270] Fig.21 Another schematic diagram of an application recommendation card provided in an embodiment of the present application. Fig.21 As shown, the external device is still the vehicle-mounted Bluetooth device, and the usage scenario is the third scenario. The applications in the target application recommendation list are map navigation APP, telephone service, first music APP, second music APP and news APP. Before the vehicle-mounted Bluetooth device establishes a connection with the terminal device, Fig.21As shown in a, the application icons displayed in the application recommendation card include the first music APP, the news APP, the third music APP and the second music APP. The third music APP, as the second application, should not be displayed in the application recommendation card. The map navigation APP in the target application recommendation list is not displayed in the application recommendation card, so the third music APP can be replaced with the map navigation APP. The replaced application recommendation card is as follows Fig.21 As shown in b.

[0271] In one implementation, after step S706, the method further includes:

[0272] S707: When the target external device is a car-mounted Bluetooth device, if the external device is disconnected, stop recommending the application in the target application recommendation list to the user.

[0273] Since in-vehicle Bluetooth devices are generally used while users are driving a car, users may need to continuously use applications related to the current usage scenario of the in-vehicle Bluetooth device (applications corresponding to the icons in the application recommendation card) during the connection of the in-vehicle Bluetooth device, and it is inconvenient for users to operate terminal devices while driving. Therefore, before the in-vehicle Bluetooth device is disconnected, applications in the target application recommendation list can be continuously recommended to users.

[0274] In some implementations, after the user uses an application in the target application recommendation list, the application that the user has used in the target application recommendation list may stop being recommended to the user. At this time, the terminal device may also use other application recommendation mechanisms, for example, recommending the most recently used application to the user.

[0275] S708: When the target external device is a device other than the vehicle-mounted Bluetooth device, if the external device is disconnected, or if the connection duration of the target external device is greater than the second time threshold, stop recommending the application in the target application recommendation list to the user; or, when the target external device is a device other than the vehicle-mounted Bluetooth device, if the connection duration of the external device is less than or equal to the second time threshold, stop recommending the application in the target application recommendation list that has been used by the user to the user.

[0276] Among them, other devices besides the vehicle-mounted Bluetooth device may be, for example, Bluetooth headsets, Bluetooth speakers, wired headsets or other external devices. On the one hand, after the external device is disconnected, the application in the target application recommendation list may no longer be recommended to the user, but other recommendation mechanisms may be adopted. On the other hand, after the user uses the application in the target application recommendation list, the application in the target application recommendation list may stop being recommended to the user. At this time, the terminal device may adopt other application recommendation mechanisms, for example, recommending the most recently used application to the user.

[0277] On the other hand, a second time threshold can be set for the connection time of the target external device. If the user does not click on the image in the application recommendation card within the second time threshold, the user may have found the application that he wants to click through other locations outside the application recommendation card. Therefore, if the connection time of the target external device is greater than the second time threshold, the application in the target application recommendation list can no longer be recommended to the user, but other recommendation mechanisms can be used. The second time threshold is preferably 10 minutes, and the specific value can be determined according to actual conditions, and this application does not make specific restrictions on this.

[0278] In some implementations, the embodiments of the present application may also include the step of keeping the application alive or preloading the application in the application recommendation card. Keeping the application alive can prevent the application that the user is about to use from being killed by the system, and preloading the application can complete the loading of the application in the system in advance. After the user clicks the icon corresponding to the application that has been kept alive and preloaded, the application can be quickly started.

[0279] In the embodiment of the present application, the step of keeping the application alive is for the case where the application has been started and the icon of the started application is located in the application recommendation card. Specifically, the keeping alive process is the process of keeping the application corresponding to the icon in the application recommendation card in the background process. In this way, after the user clicks the icon in the application recommendation card, the application corresponding to the icon can be quickly switched to the foreground process, shortening the waiting time of the user.

[0280] The step of preloading the application is to start the application in the background in advance, and the starting step may include loading a splash screen advertisement, loading a UI interface in advance, etc. In this way, after the user clicks the icon in the application recommendation card, the user can directly enter the UI interface of the application corresponding to the icon, shortening the user's waiting time and improving the user experience.

[0281] The embodiments provided in the present application described above introduce the various schemes of the application recommendation method provided in the present application. It is understandable that in order to implement the above functions, the terminal device includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present application.

[0282] Fig. 22 A schematic diagram of the structure of an application recommendation device provided in an embodiment of the present application. In one embodiment, a terminal device can Fig. 22 The hardware shown implements the corresponding functions, such as Fig. 22 As shown, the application recommendation device may include: a display screen 1001 , a memory 1002 , a processor 1003 and a communication module 1004 . The above components may be connected via one or more communication buses 1005 .

[0283] In one embodiment, the display screen 1001 may include a display panel 10011 and a touch sensor 10012, wherein the display panel 10011 is used to display an image, and the touch sensor 10012 may pass the detected touch operation to the application processor to determine the type of touch event, and provide a visual output related to the touch operation through the display panel 10011. The processor 1003 may include one or more processing units, for example: the processor 1003 may include an application processor, a modem processor, a graphics processor, an image signal processor, a controller, a video codec, a digital signal processor, a baseband processor, and / or a neural network processor, etc. Among them, different processing units may be independent devices or integrated in one or more processors. The memory 1002 is coupled to the processor 1003 and is used to store various software programs and / or multiple sets of instructions. The memory 1002 may include a volatile memory and / or a non-volatile memory.

[0284] When the software program and / or the plurality of groups of instructions in the memory 1002 are executed by the processor 1003, the terminal device implements the following method steps: obtaining usage data of each application during the period when the terminal device is connected to an external device, the external device including at least one of a Bluetooth headset, a wired headset, a car Bluetooth device, a Bluetooth speaker, and other external devices; the application usage data includes at least the number of times each application is used, and / or the number of times the user clicks on each application; for any target application installed on the terminal device, the number of times the user uses the target application during the period when the terminal device is connected to the external device for m times, m ≥ 1, wherein, in During each connection of the terminal device to the external device, if the user clicks the icon of the target application at least once, so that the terminal device enters the user interface of the target application, the number of uses is increased by 1, and the number of clicks is the total number of times the user clicks the icon of the target application; based on the usage time periods of various external devices and / or the usage locations of various external devices, multiple usage scenarios corresponding to each external device are determined; wherein different scenarios correspond to different usage time periods and / or different usage locations, and each usage scenario of each external device corresponds to an application recommendation list; the number of connections of each external device in each usage scenario is obtained respectively; for each usage scenario of each external device, a recommended application list is generated. For each usage scenario of each external device, the first ratio of the number of times each application is used corresponding to the usage scenario to the total number of connections of the external device corresponding to the usage scenario is calculated, and / or the second ratio of the number of times the user clicks on each application to the total number of times the user clicks on all applications; for each usage scenario of each external device, the applications are sorted according to the order of the first ratio from high to low, and / or the order of the second ratio from high to low, and at least one or more applications with the highest sorting are added to the corresponding application recommendation list; wherein the first ratio corresponding to the application in the application recommendation list is greater than or equal to the first threshold, and / or the application in the application recommendation list The second ratio corresponding to the application is greater than or equal to the second threshold; when it is detected that the target external device is connected to the terminal device, the corresponding target application recommendation list is determined according to the current usage scenario of the target external device, and the application in the target application recommendation list is recommended to the user; wherein, when the target external device is a Bluetooth headset or a wired headset, the application recommended to the user includes at least one of film and television applications, music applications, and game applications; when the target external device is a car-mounted Bluetooth device, the application recommended to the user includes map applications, and / or radio applications; when the target external device is a Bluetooth speaker, the application recommended to the user includes music applications.

[0285] The application recommendation device provided in the embodiment of the present application can sort each application separately in a specific external device usage scenario according to the usage data of each application during the connection of the terminal device to the external device to obtain an application recommendation list. Then, the application recommendation list for recommendation is determined based on the specific usage scenario of the external device access. In this way, the recommended application has a high correlation with the external device and is more in line with the user's intention to use the application in the specific scenario, and the recommendation success rate is high. In addition, the application recommendation device provided in the embodiment of the present application can only rely on the terminal side for recommendation, without the need for resources such as the network or cloud server, and has low resource dependence.

[0286] In one implementation, the screen interface of the terminal device includes an application recommendation card. When the software program and / or multiple groups of instructions in the memory 1002 are executed by the processor 1003, the terminal device specifically implements the following method steps: recommending the application in the target application recommendation list to the user: displaying the icon of at least one application in the target application recommendation list in the application recommendation card. In this way, the user can quickly enter the application by clicking the application icon in the application recommendation card as needed, and no longer needs to search for the application they want to click on between multiple screens. Since the applications displayed in the application recommendation card are determined based on the user's historical use of the applications, and the applications displayed in the application recommendation card are in line with the current usage scenario of the external device, the recommendation success rate is high.

[0287] In one implementation, when the software program and / or multiple groups of instructions in the memory 1002 are executed by the processor 1003, the terminal device specifically implements the following method steps: displaying the icon of the application in the target application recommendation list in the application recommendation card: determining whether the screen interface includes the icon of the first application, the first application is any application in the target application recommendation list; if the screen interface does not include the icon of the first application, displaying the icon of the first application in the application recommendation card. In this way, the first application will not appear repeatedly in the screen interface. Moreover, when the user stays on the screen interface where the application recommendation card is located, the first application can still be quickly found and clicked.

[0288] In one implementation, when the software program and / or multiple groups of instructions in the memory 1002 are executed by the processor 1003, the terminal device specifically implements the following method steps: displaying the icon of the application in the target application recommendation list in the application recommendation card: determining whether the application recommendation card includes the icon of the second application, the second application is an application other than the application in the target application recommendation list; if the application recommendation card includes the icon of the second application, replacing the icon of the second application with the icon of the third application, the third application is an application in the target application recommendation list, and the third application is not an application in the application recommendation card. In this way, the first application will not appear repeatedly in the screen interface. In addition, when the user stays on the screen interface where the application recommendation card is located, the first application can still be quickly found and clicked, which can improve the recommendation success rate.

[0289] In one implementation, when the software program and / or multiple groups of instructions in the memory 1002 are executed by the processor 1003, the terminal device specifically implements the following method steps: recommending an application in the target application recommendation list to the user; obtaining a shortcut entry for the application in the target application recommendation list, the shortcut entry being used to start the target function of the application or enter the target page of the application; and displaying the icon of the shortcut entry in the application recommendation card.

[0290] In one implementation, when the software program and / or the plurality of groups of instructions in the memory 1002 are executed by the processor 1003, the terminal device specifically implements the following method steps: before respectively obtaining the number of connections of each external device in each usage scenario: respectively obtaining the connection status of each connection of each external device in each usage scenario, the connection status includes a valid connection status and an invalid connection status; deleting the usage data of each application during the invalid connection status of each external device. In this way, the usage data of each application during the invalid connection status can be avoided, which affects the terminal device's learning of the user's habits during the period of connecting the external device.

[0291] In one implementation, when the software program and / or multiple groups of instructions in the memory 1002 are executed by the processor 1003, the terminal device specifically implements the following method steps: respectively obtain the number of connections of each external device in each usage scenario: respectively obtain the number of connections corresponding to the effective connection state of each external device in each usage scenario.

[0292] In one implementation, when the software program and / or multiple groups of instructions in the memory 1002 are executed by the processor 1003, the terminal device specifically implements the following method steps: respectively obtain the connection status of each connection of each external device in each usage scenario; respectively obtain the duration of each connection of each external device in each usage scenario; if the duration is less than a first time threshold, determine that the connection status of the current connection is an invalid connection status; if the duration is greater than or equal to the first time threshold, determine that the connection status of the current connection is a valid connection status.

[0293] In one implementation, when the software program and / or multiple groups of instructions in the memory 1002 are executed by the processor 1003, the terminal device specifically implements the following method steps: respectively obtaining the connection status of each external device for each connection in each usage scenario; respectively obtaining the connection data and disconnection data of each external device for each connection in each usage scenario; the connection data is used to record the data that the external device has established a connection with the terminal device, and the disconnection data is used to record the data that the external device has been disconnected from the terminal device; if the connection data and / or disconnection data are not obtained, it is determined that the connection status of the current connection is an invalid connection status; if the connection data and disconnection data are obtained, it is determined that the connection status of the current connection is a valid connection status.

[0294] In this way, the connection status of each external device in each usage scenario can be determined, and how to recommend an application program can be determined based on the connection status.

[0295] In one implementation, the first threshold includes a first sub-threshold; when the number of connections is greater than or equal to the first number threshold and less than or equal to the second number threshold, the first ratio corresponding to the application in the application recommendation list is greater than the first sub-threshold. In this way, the success rate of recommending the application in the application recommendation list can be improved.

[0296] In one implementation, the first threshold includes a second sub-threshold, and the second sub-threshold is smaller than the first sub-threshold; when the number of connections is greater than the second number threshold, the first ratio corresponding to the application in the application recommendation list is greater than the second sub-threshold. In this way, the success rate of recommending the application in the application recommendation list can be improved.

[0297] In one implementation, when the software program and / or multiple groups of instructions in the memory 1002 are executed by the processor 1003, the terminal device specifically implements the following method steps: when it is detected that the target external device is connected to the terminal device, the corresponding target application recommendation list is determined according to the current usage scenario of the target external device, and the application programs in the target application recommendation list are recommended to the user: when the target external device is a car-mounted Bluetooth device, if the external device is disconnected, the application programs in the target application recommendation list are stopped from being recommended to the user. In this way, the application programs recommended to the user can be more in line with the user's intention to use the application programs.

[0298] In one implementation, when the software program and / or multiple groups of instructions in the memory 1002 are executed by the processor 1003, the terminal device specifically implements the following method steps: when it is detected that the target external device is connected to the terminal device, the corresponding target application recommendation list is determined according to the current usage scenario of the target external device, and the application in the target application recommendation list is recommended to the user: when the target external device is a device other than the vehicle-mounted Bluetooth device, if the external device is disconnected, or if the connection time of the target external device is greater than the second time threshold, stop recommending the application in the target application recommendation list to the user; or when the target external device is a device other than the vehicle-mounted Bluetooth device, if the connection time of the external device is less than or equal to the second time threshold, stop recommending the application in the target application recommendation list that has been used by the user to the user. In this way, the application recommended to the user can be more in line with the user's intention to use the application.

[0299] Fig.23 A schematic diagram of the structure of another application recommendation device provided in an embodiment of the present application.

[0300] like Fig.23 As shown, the embodiment of the present application also provides an application recommendation device, including:

[0301] The first acquisition module 200 is used to acquire usage data of each application during the period when the terminal device is connected to an external device, and the external device includes at least one of a Bluetooth headset, a wired headset, a car Bluetooth device, a Bluetooth speaker, and other external devices; the application usage data includes at least the number of times each application is used, and / or the number of times the user clicks on each application; for any target application installed on the terminal device, the number of times the user uses the target application during the period when the terminal device is connected to the external device m times, m≥1, wherein during each time the terminal device is connected to the external device, if the user clicks the icon of the target application at least once, so that the terminal device enters the user interface of the target application, the number of times the number of times the user clicks on the icon of the target application is increased by 1, and the number of clicks is the total number of times the user clicks on the icon of the target application;

[0302] A usage scenario determination module 300 is used to determine multiple usage scenarios corresponding to each external device based on the usage time periods of various external devices and / or the usage locations of various external devices; wherein different scenarios correspond to different usage time periods and / or different usage locations, and each usage scenario of each external device corresponds to an application recommendation list;

[0303] The second acquisition module 400 is used to respectively acquire the number of connections of each external device in each usage scenario;

[0304] a ratio calculation module 500, for calculating, for each usage scenario of each external device, a first ratio of the number of times each application is used corresponding to the usage scenario to the total number of times the external device is connected corresponding to the usage scenario, and / or a second ratio of the number of times a user clicks each application to the total number of times a user clicks all applications;

[0305] The list determination module 600 is used to sort the applications according to the order of the first ratio from high to low and / or the order of the second ratio from high to low for each usage scenario of each external device, and add at least one or more applications with the highest order to the corresponding application recommendation list; wherein the first ratio corresponding to the application in the application recommendation list is greater than or equal to the first threshold, and / or the second ratio corresponding to the application in the application recommendation list is greater than or equal to the second threshold;

[0306] The first recommendation module 700 is used to determine a corresponding target application recommendation list according to the current usage scenario of the target external device when detecting that the target external device is connected to the terminal device, and recommend the application programs in the target application recommendation list to the user;

[0307] Among them, when the target external device is a Bluetooth headset or a wired headset, the applications recommended to the user include at least one of film and television applications, music applications, and game applications; when the target external device is a car-mounted Bluetooth device, the applications recommended to the user include map applications, and / or radio applications; when the target external device is a Bluetooth speaker, the applications recommended to the user include music applications.

[0308] The application recommendation device provided in the embodiment of the present application can sort each application separately in a specific external device usage scenario according to the usage data of each application during the connection of the terminal device to the external device to obtain an application recommendation list. Then, the application recommendation list for recommendation is determined based on the specific usage scenario of the external device access. In this way, the recommended application has a high correlation with the external device and is more in line with the user's intention to use the application in the specific scenario, and the recommendation success rate is high. In addition, the application recommendation device provided in the embodiment of the present application can only rely on the terminal side for recommendation, without the need for resources such as the network or cloud server, and has low resource dependence.

[0309] In one implementation, the screen interface of the terminal device includes an application recommendation card; the first recommendation module 700 is specifically used to: display the icon of at least one application in the target application recommendation list in the application recommendation card. In this way, the user can quickly enter the application by clicking the application icon in the application recommendation card as needed, and no longer needs to search for the application to be clicked between multiple screens. Since the application displayed in the application recommendation card is determined based on the user's historical use of the application, and the application displayed in the application recommendation card conforms to the current usage scenario of the external device, the recommendation success rate is high.

[0310] In one implementation, the first recommendation module 700 is further used to determine whether the screen interface includes an icon of the first application, where the first application is any application in the target application recommendation list; if the screen interface does not include an icon of the first application, the icon of the first application is displayed in the application recommendation card. In this way, the first application will not appear repeatedly in the screen interface. Moreover, when the user stays on the screen interface where the application recommendation card is located, the first application can still be quickly found and clicked.

[0311] In one implementation, the first recommendation module 700 is also used to determine whether the application recommendation card includes the icon of the second application, where the second application is an application other than the application in the target application recommendation list; if the application recommendation card includes the icon of the second application, the icon of the second application is replaced with the icon of the third application, where the third application is an application in the target application recommendation list, and the third application is not an application in the application recommendation card. In this way, the first application will not appear repeatedly in the screen interface. Moreover, when the user stays on the screen interface where the application recommendation card is located, the first application can still be quickly found and clicked, which can improve the recommendation success rate.

[0312] In one implementation, the first recommendation module 700 is also used to obtain a shortcut entry for an application in the target application recommendation list, where the shortcut entry is used to start a target function of the application or enter a target page of the application; and the icon of the shortcut entry is displayed in the application recommendation card.

[0313] In one implementation, a third acquisition module and a data deletion module are further included. The third acquisition module is specifically used to obtain the connection status of each external device in each usage scenario, and the connection status includes a valid connection status and an invalid connection status. The data deletion module is specifically used to delete the usage data of each application during the invalid connection state of each external device. In this way, the usage data of each application during the invalid connection state can be avoided, which affects the terminal device to learn the user's habits during the connection of the external device.

[0314] In one implementation, the second acquisition module is specifically used to: respectively acquire the number of connections corresponding to the effective connection state of each external device in each usage scenario.

[0315] In one implementation, the third acquisition module is also used to: obtain the duration of each connection of each external device in each usage scenario; if the duration is less than the first time threshold, determine that the connection state of the current connection is an invalid connection state; if the duration is greater than or equal to the first time threshold, determine that the connection state of the current connection is a valid connection state.

[0316] In one implementation, the third acquisition module is also used to: separately acquire connection data and disconnection data for each connection of each external device in each usage scenario; the connection data is used to record data that a connection has been established between the external device and the terminal device, and the disconnection data is used to record data that the external device and the terminal device have been disconnected; if the connection data and / or disconnection data are not acquired, it is determined that the connection state of the current connection is an invalid connection state; if the connection data and disconnection data are acquired, it is determined that the connection state of the current connection is a valid connection state.

[0317] In this way, the connection status of each external device in each usage scenario can be determined, and how to recommend an application program can be determined based on the connection status.

[0318] In one implementation, the first threshold includes a first sub-threshold; when the number of connections is greater than or equal to the first number threshold and less than or equal to the second number threshold, the first ratio corresponding to the application in the application recommendation list is greater than the first sub-threshold. In this way, the success rate of recommending the application in the application recommendation list can be improved.

[0319] In one implementation, the first threshold includes a second sub-threshold, and the second sub-threshold is smaller than the first sub-threshold; when the number of connections is greater than the second number threshold, the first ratio corresponding to the application in the application recommendation list is greater than the second sub-threshold. In this way, the success rate of recommending the application in the application recommendation list can be improved.

[0320] In one implementation, a second recommendation module is further included, and the second recommendation module is used to stop recommending the application in the target application recommendation list to the user if the target external device is a car-mounted Bluetooth device and the external device is disconnected. In this way, the application recommended to the user can be more in line with the user's intention to use the application.

[0321] In one implementation, a third recommendation module is further included, and the third recommendation module is used to stop recommending the application in the target application recommendation list to the user if the target external device is a device other than the vehicle-mounted Bluetooth device and the external device is disconnected, or if the connection time of the target external device is greater than the second time threshold; or, when the target external device is a device other than the vehicle-mounted Bluetooth device and the connection time of the external device is less than or equal to the second time threshold, stop recommending the application in the target application recommendation list that has been used by the user to the user. In this way, the application recommended to the user can be more in line with the user's intention to use the application.

[0322] The embodiment of the present application also provides a computer-readable storage medium, in which instructions are stored. When the computer-readable storage medium is run on a computer, the computer executes the above-mentioned methods.

[0323] The embodiment of the present application also provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the above-mentioned methods.

[0324] The embodiment of the present application also provides a chip system, which includes a processor for supporting the above-mentioned device to implement the functions involved in the above-mentioned aspects, for example, generating or processing the information involved in the above-mentioned method. In one possible design, the chip system also includes a memory for storing computer instructions and data necessary for the multi-device collaborative device. The chip system can be composed of a chip, or it can include a chip and other discrete devices.

[0325] The above specific implementation methods further explain in detail the purpose, technical solutions and beneficial effects of the embodiments of the present application. It should be understood that the above are only specific implementation methods of the embodiments of the present application and are not used to limit the protection scope of the embodiments of the present application. Any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solutions of the embodiments of the present application should be included in the protection scope of the embodiments of the present application.

Claims

1. An application recommendation method, It is characterized in that include: Obtaining usage data of various applications during the period when the terminal device is connected to an external device, the external device including at least one of a Bluetooth headset, a wired headset, a car-mounted Bluetooth device, a Bluetooth speaker, and other external devices; the application usage data includes at least the number of times each application is used, and / or the number of times a user clicks on each application; for any target application installed on the terminal device, the number of uses is the total number of times the user uses the target application during the period when the terminal device is connected to the external device m times, m≥1; wherein, during each time the terminal device is connected to the external device, if the user clicks on the icon of the target application at least once, so that the terminal device enters the user interface of the target application, the number of uses is increased by 1, and the number of clicks is the total number of times the user clicks on the icon of the target application; Get the total number of connections for each external device respectively; For each external device, calculating a first ratio of the number of times each application is used to the total number of times the external device is connected, and / or a second ratio of the number of times a user clicks each application to the total number of times the user clicks all applications; For each external device, sort the applications according to the order of the first ratio from high to low, and / or the order of the second ratio from high to low, and add at least one or more applications with the highest sorting to the corresponding application recommendation list; wherein the first ratio corresponding to the application in the application recommendation list is greater than or equal to a first threshold, and / or the second ratio corresponding to the application in the application recommendation list is greater than or equal to a second threshold; When it is detected that the target external device is connected to the terminal device, a target application recommendation list corresponding to the target external device is determined, and an application program in the target application recommendation list is recommended to the user; Among them, when the target external device is a Bluetooth headset or a wired headset, the applications recommended to the user include at least one of film and television applications, music applications, and game applications; when the target external device is a car-mounted Bluetooth device, the applications recommended to the user include map applications, and / or radio applications; when the target external device is a Bluetooth speaker, the applications recommended to the user include music applications.

2. The application recommendation method according to claim 1, It is characterized in that Before respectively obtaining the total number of connections of each external device, the method further includes: Based on the usage time periods of various external devices and / or the usage locations of various external devices, multiple usage scenarios corresponding to each external device are determined; wherein different scenarios correspond to different usage time periods and / or different usage locations, and each usage scenario of each external device corresponds to an application recommendation list; For each external device, calculating a first ratio of the number of times each application is used to the total number of times the external device is connected, and / or a second ratio of the number of times a user clicks each application to the total number of times a user clicks all applications includes: For each usage scenario of each external device, respectively calculate a first ratio of the number of times each application program corresponding to the usage scenario is used to the total number of times the external device is connected to the usage scenario, and / or a second ratio of the number of times a user clicks each application program to the total number of times a user clicks all applications program; For each external device, sorting the applications according to the order of the first ratio from high to low and / or the order of the second ratio from high to low, and adding at least one or more applications with the highest sorting to the corresponding application recommendation list includes: For each usage scenario of each external device, sort the applications according to the order of the first ratio from high to low and / or the order of the second ratio from high to low, and add at least one or more applications with the highest ranking to the corresponding application recommendation list; Determining a target application recommendation list corresponding to the target external device, and recommending an application program in the target application recommendation list to the user includes: The target application list corresponding to the target external device is determined according to the current usage scenario of the target external device, and the application programs in the target application recommendation list are recommended to the user.

3. The application recommendation method according to claim 1, It is characterized in that The screen interface of the terminal device includes an application recommendation card; The step of recommending the application program in the target application recommendation list to the user comprises: The icon of at least one application in the target application recommendation list is displayed in the application recommendation card.

4. The application recommendation method according to claim 3, It is characterized in that The step of displaying the icon of the application in the target application recommendation list in the application recommendation card includes: Determining whether the screen interface includes an icon of a first application, where the first application is any one of the application in the target application recommendation list; If the screen interface does not include the icon of the first application, the icon of the first application is displayed in the application recommendation card.

5. The application recommendation method according to claim 3, It is characterized in that The step of displaying the icon of the application in the target application recommendation list in the application recommendation card includes: Determining whether the application recommendation card includes an icon of a second application, where the second application is an application other than the application in the target application recommendation list; If the application recommendation card includes an icon of a second application, the icon of the second application is replaced with an icon of a third application, the third application is an application in the target application recommendation list, and the third application is not an application in the application recommendation card.

6. The application recommendation method according to claim 3, It is characterized in that The step of recommending the application program in the target application recommendation list to the user further includes: Obtaining a quick entry for an application in the target application recommendation list, wherein the quick entry is used to start a target function of the application or enter a target page of the application; The icon of the quick entry is displayed in the application recommendation card.

7. The application recommendation method according to claim 1, It is characterized in that Before respectively obtaining the total number of connections of each external device, the method further includes: Respectively obtain the connection status of each external device for each connection, wherein the connection status includes a valid connection status and an invalid connection status; Deletes usage data of each application for each external device during the inactive connection state.

8. The application recommendation method according to claim 7, It is characterized in that The method of obtaining the total number of connections of each external device includes: The total number of connections corresponding to the valid connection status of each external device is obtained respectively.

9. The application recommendation method according to claim 7, It is characterized in that The step of respectively obtaining the connection status of each external device at each connection includes: Get the duration of each connection of each external device respectively; If the duration is less than the first time threshold, determining that the connection state of the current connection is an invalid connection state; If the duration is greater than or equal to the first time threshold, it is determined that the connection state of the current connection is a valid connection state.

10. The application recommendation method according to claim 7, It is characterized in that The step of respectively obtaining the connection status of each external device at each connection includes: Respectively obtain connection data and disconnection data of each external device for each connection; the connection data is used to record the data that the external device has established a connection with the terminal device, and the disconnection data is used to record the data that the external device has been disconnected from the terminal device; If the connection data and / or the disconnection data are not obtained, determining that the connection state of the current connection is an invalid connection state; If the connection data and the disconnection data are acquired, it is determined that the connection state of the current connection is a valid connection state.

11. The application recommendation method according to any one of claims 1 to 10, It is characterized in that The first threshold includes a first sub-threshold; When the total number of connections is greater than or equal to the first number threshold and less than or equal to the second number threshold, the first ratio corresponding to the application in the application recommendation list is greater than the first sub-threshold.

12. The application recommendation method according to claim 11, It is characterized in that The first threshold includes a second sub-threshold, and the second sub-threshold is smaller than the first sub-threshold; When the total number of connections is greater than the second number threshold, the first ratio corresponding to the application program in the application recommendation list is greater than the second sub-threshold.

13. The application recommendation method according to claim 1, It is characterized in that After the target external device is detected to be connected to the terminal device, a target application recommendation list corresponding to the target external device is determined, and the application program in the target application recommendation list is recommended to the user, the method further includes: When the target external device is a car-mounted Bluetooth device, if the external device is disconnected, the application programs in the target application recommendation list are stopped from being recommended to the user.

14. The application recommendation method according to claim 1, It is characterized in that After the target external device is detected to be connected to the terminal device, a target application recommendation list corresponding to the target external device is determined, and the application program in the target application recommendation list is recommended to the user, the method further includes: When the target external device is a device other than the vehicle-mounted Bluetooth device, if the external device is disconnected, or if the connection time of the target external device is longer than a second time threshold, stop recommending the application in the target application recommendation list to the user; Alternatively, when the target external device is a device other than the vehicle-mounted Bluetooth device, if the connection duration of the external device is less than or equal to the second time threshold, stop recommending the application programs in the target application recommendation list that have been used by the user to the user.

15. An application recommendation device, It is characterized in that include: A first acquisition module is used to acquire usage data of each application during the period when the terminal device is connected to an external device, wherein the external device includes at least one of a Bluetooth headset, a wired headset, a car Bluetooth device, a Bluetooth speaker, and other external devices; the usage data of the application includes at least the number of times each application is used, and / or the number of times a user clicks on each application; for any target application installed on the terminal device, the number of times the user uses the target application during the period when the terminal device is connected to the external device m times, m≥1, wherein during each time the terminal device is connected to the external device, if the user clicks on the icon of the target application at least once, so that the terminal device enters the user interface of the target application, the number of times the number of times the user clicks on the icon of the target application is increased by 1, and the number of clicks is the total number of times the user clicks on the icon of the target application; The second acquisition module is used to respectively acquire the total connection times of each external device; a ratio calculation module, configured to calculate, for each external device, a first ratio of the number of times each application is used to the total number of times the external device is connected, and / or a second ratio of the number of times a user clicks each application to the total number of times the user clicks all applications; a list determination module, configured to sort the applications for each external device according to the order of the first ratio from high to low, and / or the order of the second ratio from high to low, and add at least one or more applications with the highest sorting to the corresponding application recommendation list; wherein the first ratio corresponding to the application in the application recommendation list is greater than or equal to a first threshold, and / or the second ratio corresponding to the application in the application recommendation list is greater than or equal to a second threshold; A first recommendation module, configured to determine a target application recommendation list corresponding to the target external device when detecting that the target external device is connected to the terminal device, and recommend application programs in the target application recommendation list to the user; Among them, when the target external device is a Bluetooth headset or a wired headset, the applications recommended to the user include at least one of film and television applications, music applications, and game applications; when the target external device is a car-mounted Bluetooth device, the applications recommended to the user include map applications, and / or radio applications; when the target external device is a Bluetooth speaker, the applications recommended to the user include music applications.

16. A user device, It is characterized in that include: A processor and a memory; the memory stores program instructions, and when the program instructions are executed by the processor, the user equipment executes the method according to any one of claims 1 to 14.

17. A chip system, It is characterized in that include: Memory and processor; The memory stores program instructions, and when the program instructions are executed by the processor, the chip system executes the method according to any one of claims 1 to 14.

18. A computer storage medium, It is characterized in that The computer-readable storage medium stores program instructions, and when the program instructions are executed on a computer, the computer executes the method according to any one of claims 1 to 14.