Method and device for calling third-party lock screen service

By monitoring the operating status of third-party applications and determining priority, and choosing the appropriate triggering method, the problem that third-party lock screen services are susceptible to the operating status of applications is solved, stability and efficiency are improved, and users' personalized needs are met.

CN114020338BActive Publication Date: 2024-12-27ZHENGZHOU APUS DIGITAL CLOUD INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111276973.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-29
Publication Date
2024-12-27
Estimated Expiration
2041-10-29

AI Technical Summary

Technical Problem

Third-party lock screen services are susceptible to the operation status of the application, resulting in low usage efficiency and poor stability, and cannot meet users' personalized needs.

Method used

By monitoring the operating status of third-party applications, the priority of triggering methods for lock screen services is determined, and based on power consumption, triggering time, triggering accuracy and memory occupancy, the appropriate triggering methods are selected to ensure the stable and efficient use of lock screen services.

Benefits of technology

It improves the stability and efficiency of third-party lock screen services, reduces the impact on terminal equipment performance, and meets the personalized needs of users.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114020338B_ABST
    Figure CN114020338B_ABST
Patent Text Reader

Abstract

The present application discloses a method and device for calling a third-party lock screen service, which is used to solve the problem that the third-party lock screen service is easily affected by the running state of the application, resulting in the instability of the lock screen service and low efficiency. It includes: when the terminal device uses the lock screen service in the third-party application, monitoring the running state of the third-party application; when the running state of the third-party application is monitored to be a preset running state, determining the priority of at least one triggering method corresponding to the lock screen service; the priority is determined based on at least one of the power consumption, triggering duration, triggering accuracy, and memory occupied corresponding to each triggering method; according to the priority corresponding to each triggering method, executing the target triggering method in at least one triggering method; triggering the call of the lock screen service through the target triggering method. This technical solution can avoid the influence of the running state of the third-party application on the use of the lock screen service, and ensure the efficient use of the third-party lock screen service by the terminal device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method and device for calling a third-party lock screen service. Background Art

[0002] At present, the lock screen service in the terminal device is generally provided by the operating system installed on the terminal device. According to the user's triggering operation on the lock screen service, the operating system will push the lock screen interface. The service content contained in this type of lock screen interface is relatively simple, generally only time, weather, power, etc. As the pace of life continues to accelerate, personal time is constantly compressed, and users pay more attention to efficiency when using terminal devices. The lock screen interface provided by the operating system gradually cannot meet the user's personalized usage needs. Therefore, third-party applications with personalized lock screen services have emerged. Users can use the personalized lock screen services provided by such third-party applications when running them in terminal devices.

[0003] However, in the prior art, the lock screen service of the third-party application is easily affected by the running state of the third-party application, which not only reduces the use efficiency of the lock screen service, but also seriously affects the use stability of the lock screen service of the third-party application, resulting in a very bad user experience. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a method and device for calling a third-party lock screen service, so as to solve the problem that the third-party lock screen service is easily affected by the running state of the application, resulting in unstable lock screen service and low usage efficiency.

[0005] To solve the above technical problems, the embodiments of the present application are implemented as follows:

[0006] On the one hand, an embodiment of the present application provides a method for calling a third-party lock screen service, including:

[0007] When the terminal device uses the lock screen service in a third-party application, monitoring the running status of the third-party application;

[0008] When it is monitored that the running state of the third-party application is a preset running state, determining the priority of at least one triggering mode corresponding to the lock screen service; the priority is determined based on at least one of the power consumption, triggering duration, triggering accuracy, and memory usage corresponding to each of the triggering modes; the preset running state includes running in the background or exiting the running; the triggering mode includes calling the system function in the terminal device and / or the function in the third-party application;

[0009] According to the priority corresponding to each of the triggering modes, executing a target triggering mode in the at least one triggering mode; each of the triggering modes is used to trigger the calling of the lock screen service;

[0010] The lock screen service is called by triggering the target triggering method, so that the terminal device continues to use the lock screen service when the third-party application is in the preset running state.

[0011] On the other hand, an embodiment of the present application provides a device for calling a third-party lock screen service, including:

[0012] A monitoring module, used to monitor the running status of a third-party application when the terminal device uses a lock screen service in the third-party application;

[0013] A first determination module is used to determine the priority of at least one triggering mode corresponding to the lock screen service when it is monitored that the running state of the third-party application is a preset running state; the priority is determined based on at least one of the power consumption, triggering duration, triggering accuracy, and memory usage corresponding to each of the triggering modes; the preset running state includes running in the background or exiting the running; the triggering mode includes calling the system function in the terminal device and / or the function in the third-party application;

[0014] A first execution module, configured to execute a target trigger mode in the at least one trigger mode according to the priority corresponding to each trigger mode; each trigger mode is respectively used to trigger the call of the lock screen service;

[0015] The trigger calling module is used to trigger and call the lock screen service through the target triggering method, so that the terminal device continues to use the lock screen service when the third-party application is in the preset running state.

[0016] On the other hand, an embodiment of the present application provides a device for calling a third-party lock screen service, including a processor and a memory electrically connected to the processor, the memory storing a computer program, and the processor being configured to call and execute the computer program from the memory to implement:

[0017] When the terminal device uses the lock screen service in a third-party application, monitoring the running status of the third-party application;

[0018] When it is monitored that the running state of the third-party application is a preset running state, determining the priority of at least one triggering mode corresponding to the lock screen service; the priority is determined based on at least one of the power consumption, triggering duration, triggering accuracy, and memory usage corresponding to each of the triggering modes; the preset running state includes running in the background or exiting the running; the triggering mode includes calling the system function in the terminal device and / or the function in the third-party application;

[0019] According to the priority corresponding to each of the triggering modes, executing a target triggering mode in the at least one triggering mode; each of the triggering modes is used to trigger the calling of the lock screen service;

[0020] The lock screen service is called by triggering the target triggering method, so that the terminal device continues to use the lock screen service when the third-party application is in the preset running state.

[0021] On the other hand, an embodiment of the present application provides a storage medium for storing a computer program, wherein the computer program can be executed by a processor to implement the following process:

[0022] When the terminal device uses the lock screen service in a third-party application, monitoring the running status of the third-party application;

[0023] When it is monitored that the running state of the third-party application is a preset running state, determining the priority of at least one triggering mode corresponding to the lock screen service; the priority is determined based on at least one of the power consumption, triggering duration, triggering accuracy, and memory usage corresponding to each of the triggering modes; the preset running state includes running in the background or exiting the running; the triggering mode includes calling the system function in the terminal device and / or the function in the third-party application;

[0024] According to the priority corresponding to each of the triggering modes, executing a target triggering mode in the at least one triggering mode; each of the triggering modes is used to trigger the calling of the lock screen service;

[0025] The lock screen service is called by triggering the target triggering method, so that the terminal device continues to use the lock screen service when the third-party application is in the preset running state.

[0026] According to the technical solution of the embodiment of the present application, when the terminal device uses the lock screen service in the third-party application, the running state of the third-party application is monitored. When the running state of the third-party application is monitored to be the preset running state, the priority of at least one triggering mode corresponding to the lock screen service is determined, and according to the priority corresponding to each triggering mode, the target triggering mode in at least one triggering mode is executed, and the lock screen service is called by the target triggering mode, so that the terminal device continues to use the lock screen service when the third-party application is in the preset running state. It can be seen that the technical solution can avoid the influence of the running state of the third-party application on the use of the lock screen service, ensure the efficient use of the third-party lock screen service by the terminal device, and improve the stability of the use of the third-party lock screen service. In addition, since the priority of the triggering mode is determined based on at least one of the power consumption, triggering duration, triggering accuracy, and memory occupied corresponding to each triggering mode, therefore, based on the priority of the triggering mode, the appropriate triggering mode is selected in a targeted manner to trigger the third-party lock screen service, which can greatly improve the calling efficiency of the third-party lock screen service and reduce the influence on the performance of the terminal device (such as memory, power, etc.) when calling the third-party lock screen service. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0028] Figure 1 is a schematic flow chart of a method for calling a third-party lock screen service according to an embodiment of the present application;

[0029] Figure 2 is a schematic flow chart of a method for calling a third-party lock screen service according to another embodiment of the present application;

[0030] Figure 3 is a schematic flow chart of a method for calling a third-party lock screen service according to another embodiment of the present application;

[0031] Figure 4 is a schematic flow chart of a method for calling a third-party lock screen service according to another embodiment of the present application;

[0032] Figure 5 is a schematic block diagram of a device for invoking a third-party lock screen service according to an embodiment of the present application;

[0033] Figure 6This is a schematic diagram of the hardware structure of a device for calling a third-party lock screen service according to an embodiment of the present application. DETAILED DESCRIPTION

[0034] The embodiments of the present application provide a method and device for calling a third-party lock screen service, so as to solve the problem that the third-party lock screen service is easily affected by the running state of the application, resulting in instability and low efficiency of the lock screen service.

[0035] In order to enable those skilled in the art to better understand the technical solutions in this application, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.

[0036] Figure 1 is a schematic flow chart of a method for calling a third-party lock screen service according to an embodiment of the present application, such as Figure 1 As shown, the method includes:

[0037] S102, when the terminal device uses the lock screen service in the third-party application, monitor the running status of the third-party application.

[0038] The terminal device may be a smart phone, smart watch, computer or other device that can download and install third-party applications. The third-party application may be a wallpaper application, a system optimization application (such as a security center, a cleaning application, etc.), an office application or other application that can provide lock screen services. The running status of the third-party application may include running in the foreground, running in the background, not running or exiting.

[0039] S104: When it is monitored that the running state of the third-party application is a preset running state, determine the priority of at least one triggering method corresponding to the lock screen service.

[0040] The preset running state may include running in the background or exiting the running. The priority of the triggering mode is determined based on at least one of the power consumption, triggering duration, triggering accuracy, and memory occupied corresponding to each triggering mode.

[0041] The triggering method may include calling a system function in the terminal device and / or a function in a third-party application. Optionally, the system function may be a system alarm clock, a system keyboard, a network connection function with other devices, a system player, etc. The function in the third-party application may be a notification bar information sending function in the third-party application.

[0042] Of course, the above-mentioned several system functions and functions in third-party applications are only examples, and this application does not limit this. In actual applications, other system functions or other functions in third-party applications can also be called to trigger the lock screen service in the third-party application.

[0043] S106: Execute a target triggering method in at least one triggering method according to the priority corresponding to each triggering method.

[0044] Among them, each triggering method is used to trigger the call of the lock screen service in the third-party application (hereinafter referred to as the third-party lock screen service).

[0045] S108, triggering the call of the lock screen service through a target triggering method, so that the terminal device continues to use the lock screen service when the third-party application is in a preset running state.

[0046] According to the technical solution of the embodiment of the present application, when the terminal device uses the lock screen service in the third-party application, the running state of the third-party application is monitored. When the running state of the third-party application is monitored to be the preset running state, the priority of at least one triggering mode corresponding to the lock screen service is determined, and according to the priority corresponding to each triggering mode, the target triggering mode in at least one triggering mode is executed, and the lock screen service is called by the target triggering mode, so that the terminal device continues to use the lock screen service when the third-party application is in the preset running state. It can be seen that the technical solution can avoid the influence of the running state of the third-party application on the use of the lock screen service, ensure the efficient use of the third-party lock screen service by the terminal device, and improve the stability of the use of the third-party lock screen service. In addition, since the priority of the triggering mode is determined based on at least one of the power consumption, triggering duration, triggering accuracy, and memory occupied corresponding to each triggering mode, therefore, based on the priority of the triggering mode, the appropriate triggering mode is selected in a targeted manner to trigger the third-party lock screen service, which can greatly improve the calling efficiency of the third-party lock screen service and reduce the influence on the performance of the terminal device (such as memory, power, etc.) when calling the third-party lock screen service.

[0047] In one embodiment, before determining the priority of at least one triggering method corresponding to the third-party lock screen service, the device information of the terminal device can be determined first, and then the at least one triggering method corresponding to the third-party lock screen service can be determined according to the device information.

[0048] Among them, the device information may include the operating system and / or the system version of the operating system installed on the terminal device. Taking the terminal device as a smart phone as an example, the operating system may be an Android operating system or an iOS operating system. And for the same operating system, due to different manufacturers, the operating system is also customized to a certain extent. For example, some manufacturers will customize the system functions of the Android operating system so that the Android operating systems installed in smart phones of different manufacturers are personalized. Therefore, in the case where the operating system installed in the smart phone is the Android operating system, the operating system can be subdivided into a first-class Android operating system, a second-class Android operating system, etc. according to different manufacturers. The system version of the operating system is the system version of the Android operating system or the system version of the iOS operating system.

[0049] Taking the terminal device as a computer as an example, the operating system may be the Windows operating system, and the system version of the operating system is the system version of the Windows operating system.

[0050] In this embodiment, when it is monitored that the running state of the third-party application is a preset running state (i.e., running in the background or exited), at least one triggering method corresponding to the third-party lock screen service is determined according to the device information of the terminal device, so that terminal devices with different device information can use their respective corresponding triggering methods to trigger the third-party lock screen service, thereby realizing the personalization and targeting of the triggering method of the third-party lock screen service, and providing a basis for the successful calling of the third-party lock screen service.

[0051] In one embodiment, when the device information includes the system version of the operating system, determining at least one triggering method corresponding to the third-party lock screen service according to the device information can be specifically performed as follows: A1, A2 or A3:

[0052] Method A1: If the operating system is a first type operating system, determine that the triggering method corresponding to the third-party lock screen service is to call the notification bar information sending function in the third-party application.

[0053] The first type of operating system is an operating system with customized system functions. Calling the notification bar information sending function in a third-party application can be understood as: calling the notification bar information sending function of the third-party application through the operating system to trigger the third-party application to send a notification bar message to the terminal device.

[0054] Optionally, the message content of the notification bar message may be a pre-set fixed content, or may be randomly generated when the notification bar message sending function of the third-party application is called.

[0055] In addition, when the notification bar information sending function of the third-party application is called, the third-party application can also generate the message content of the notification bar message in combination with the current usage of the terminal device. Assume that the terminal device is a smart phone, and the third-party application is a mobile phone cleaning application, which has garbage cleaning and memory optimization functions. Based on this, when the notification bar information sending function of the application is called, a notification bar message about garbage cleaning can be randomly generated, or a notification bar message about memory optimization can be generated. Furthermore, if the message content of the notification bar message is generated in combination with the current usage of the smart phone, if there are currently many junk files on the smart phone, a notification bar message about garbage cleaning is generated; if the smart phone currently occupies a lot of memory, a notification bar message about memory optimization is generated.

[0056] Method A2: If the operating system is a second-category operating system and the system version of the second-category operating system is higher than or equal to the preset version, determine that the triggering method corresponding to the third-party lock screen service is at least one of calling the system alarm and calling the system player.

[0057] The second type of operating system may be an operating system with customized system functions, but the customized content is different from that of the first type of operating system. The system player may be a music player or a video player.

[0058] Method A3: If the operating system is a second-category operating system and the system version of the second-category operating system is lower than the preset version, the trigger method corresponding to the third-party lock screen service is determined to be at least one of calling the system keyboard, calling the network connection function between other devices, and calling the system player.

[0059] Among them, calling the network connection function between other devices can be understood as: calling the network connection function between other devices through the operating system to trigger the terminal device to send a connection request to other devices, such as sending a Bluetooth connection request, sending a Wi-Fi (wireless communication technology) connection request, etc.

[0060] In this embodiment, at least one triggering method corresponding to the third-party lock screen service is determined based on the operating system and system version of the terminal device, so that terminal devices with different operating systems and different system versions can use their respective corresponding triggering methods to trigger the third-party lock screen service, thereby realizing the personalization and targeting of the triggering method of the third-party lock screen service, and providing a basis for the successful calling of the third-party lock screen service.

[0061] In one embodiment, the priority of at least one triggering method corresponding to the third-party lock screen service can be determined based on at least one of the power consumption, triggering duration, triggering accuracy, and memory usage corresponding to each triggering method. The following takes the first operating system and the second operating system as Android operating systems, and the preset version is Android 10.0 as an example to explain in detail how to determine the priority of each triggering method in A2 and A3 above.

[0062] Regarding calling the system alarm and calling the system player in A2: Optionally, calling the system alarm can trigger calling the third-party lock screen service only when the system version of the terminal device's operating system is higher than or equal to Android 10.0. Assume that the power consumption of calling the system player is higher than that of calling the system alarm, the triggering duration of calling the system player is more stable than that of calling the system alarm, the triggering accuracy of calling the system player and calling the system alarm is similar, and the memory occupied by calling the system player is higher than that of calling the system alarm. It can be seen that calling the system player is not as good as calling the system alarm in terms of power consumption and memory occupation. Therefore, in A2, the priority order of the triggering methods is: calling the system alarm, calling the system player.

[0063] Regarding calling the system keyboard, calling the network connection function with other devices, and calling the system player in A3: Optionally, calling the system keyboard and calling the network connection function with other devices can trigger the calling of the third-party lock screen service only when the system version of the terminal device's operating system is lower than Android 10.0. Assuming that the power consumption is from high to low, it is called the system player, called the network connection function with other devices, and called the system keyboard. The triggering time of calling the network connection function with other devices is longer than the other two triggering methods. The triggering accuracy of the three triggering methods is similar. The memory occupied is from high to low, it is called the network connection function with other devices, called the system player, and called the system keyboard. Therefore, in A3, the priority order of the triggering methods is: calling the system keyboard, calling the network connection function with other devices, and calling the system player.

[0064] In this embodiment, by determining the priority of at least one trigger method corresponding to the third-party lock screen service, the third-party lock screen service can be triggered by selecting an appropriate trigger method based on the priority of the trigger method. This can greatly improve the efficiency of calling the third-party lock screen service and reduce the impact of calling the third-party lock screen service on the performance of the terminal device (such as memory, power, etc.).

[0065] In one embodiment, if the triggering method corresponding to the third-party lock screen service includes at least one of calling the system alarm and calling the system player, that is, the operating system installed on the terminal device is a second-category operating system, and the system version of the second-category operating system is higher than or equal to the preset version.

[0066] In this embodiment, according to the priority corresponding to each trigger mode, a target trigger mode in at least one trigger mode is executed, and the third-party lock screen service (i.e., S106-S108) is triggered by the target trigger mode, which can be specifically executed as follows: Steps B1-B2:

[0067] Step B1, calling the system alarm, and triggering the calling of the third-party lock screen service through the system alarm.

[0068] Among them, calling the system alarm can be understood as: calling the system alarm through the operating system to trigger the system alarm function page to be displayed on the terminal device. Calling a third-party lock screen service can be understood as: calling the third-party lock screen service through the operating system to trigger the lock screen interface of the third-party lock screen service to be displayed on the terminal device.

[0069] After the system alarm is called through the operating system, the callback function of the operating system can be used to determine whether the system alarm is called successfully. If it is determined that the system alarm is called successfully, the third-party lock screen service is further called through the operating system.

[0070] After calling the third-party lock screen service through the operating system, you can monitor whether the lock screen interface of the third-party lock screen service is displayed on the terminal device; if the lock screen interface of the third-party lock screen service is displayed on the terminal device, it can be determined that the triggering of the call to the third-party lock screen service is successful; if the lock screen interface of the third-party lock screen service is not displayed on the terminal device, it can be determined that the triggering of the call to the third-party lock screen service has failed.

[0071] Step B2: If the system alarm fails to call, or the third-party lock screen service triggered by the system alarm fails to call, the system player is called, and the third-party lock screen service is triggered by the system player.

[0072] Among them, calling the system player can be understood as: calling the system player through the operating system to trigger the function page of the system player to be displayed on the terminal device. After calling the system player through the operating system, the callback function of the operating system can be used to determine whether the system player is successfully called. If it is determined that the system player is successfully called, the third-party lock screen service is further called through the operating system.

[0073] In this embodiment, by determining the priority of at least one trigger method corresponding to the third-party lock screen service, the third-party lock screen service can be triggered by selecting an appropriate trigger method based on the priority of the trigger method. This can greatly improve the efficiency of calling the third-party lock screen service and reduce the impact of calling the third-party lock screen service on the performance of the terminal device (such as memory, power, etc.).

[0074] In one embodiment, if the triggering method corresponding to the third-party lock screen service includes calling the system keyboard, calling the network connection function between other devices, and calling at least one of the system player, that is, the operating system installed on the terminal device is a second-category operating system, and the system version of the second-category operating system is lower than the preset version.

[0075] In this embodiment, according to the priority corresponding to each trigger mode, a target trigger mode in at least one trigger mode is executed, and the third-party lock screen service (i.e., S106-S108) is triggered by the target trigger mode, which can be specifically executed as follows: Steps C1-C3:

[0076] Step C1, calling the system keyboard, and triggering the calling of the third-party lock screen service through the system keyboard.

[0077] Among them, calling the system keyboard can be understood as: calling the system keyboard through the operating system to trigger the function page of the system keyboard to be displayed on the terminal device. After calling the system keyboard through the operating system, the callback function of the operating system can be used to determine whether the system keyboard is successfully called. If it is determined that the system keyboard is successfully called, the third-party lock screen service is further called through the operating system.

[0078] Step C2: If the system keyboard call fails, or the system keyboard fails to trigger the call of the third-party lock screen service, the network connection function between other devices is called, and the network connection function is used to trigger the call of the third-party lock screen service.

[0079] Among them, calling the network connection function between other devices can be understood as: calling the network connection function between other devices through the operating system to trigger the terminal device to send a connection request to other devices. Optionally, after the terminal device is triggered to send a connection request to other devices through the operating system, the third-party lock screen service can be called directly through the operating system. Whether the network connection between the terminal device and other devices is successful or not will not affect the operating system's call to the third-party lock screen service.

[0080] Step C3, if the network connection function fails to be called, or the third-party lock screen service triggered by the network connection function fails to be called, the system player is called, and the third-party lock screen service is triggered by the system player.

[0081] The failure of calling the network connection function can be understood as: the operating system fails to trigger the terminal device to send a connection request to other devices. The specific method of calling the system player can refer to the relevant description in step B2, which will not be repeated here.

[0082] In this embodiment, by determining the priority of at least one trigger method corresponding to the third-party lock screen service, the third-party lock screen service can be triggered by selecting an appropriate trigger method based on the priority of the trigger method. This can greatly improve the efficiency of calling the third-party lock screen service and reduce the impact of calling the third-party lock screen service on the performance of the terminal device (such as memory, power, etc.).

[0083] In one embodiment, when executing a target trigger mode in at least one trigger mode, a function page of a system function in a terminal device and / or a function in a third-party application can be obtained, and the page parameter information of the function page can be adjusted to display the processed function page so that the function page does not block the lock screen interface of the third-party lock screen service.

[0084] The page parameter information may include at least one of page transparency, page display size, and page display position. Optionally, the page parameter information of the adjustment function page may be to adjust the page transparency to transparent, adjust the page display size to 1 pixel×1 pixel, place the page display position at the bottom layer of the display layer, etc.

[0085] Optionally, the page parameter information may include the page display time. The page parameter information of the adjustment function page may be to adjust the page display time to 300 milliseconds, 200 milliseconds, 50 milliseconds, etc.

[0086] In this embodiment, by processing the function page of the target trigger method when executing the target trigger method for triggering the call of the third-party lock screen service, and then displaying the processed function page, the effect of the lock screen interface of calling the third-party lock screen service can be achieved without the user's perception.

[0087] In addition, by processing the function page of the target trigger method when executing the target trigger method for triggering the call of the third-party lock screen service, it can be ensured that after the function page is displayed and before the third-party lock screen service is triggered, when the operating system receives a trigger operation to display the lock screen interface (such as the screen of the terminal device is lit up), the function page does not block the lock screen interface of the operating system, thereby achieving a user-unaware effect.

[0088] In one embodiment, after the third-party lock screen service is called by the target trigger method (ie, S108), if the third-party lock screen service is successfully called, the target trigger method is stopped and / or the system resources occupied by the target trigger method are released.

[0089] In this embodiment, by stopping the execution of the target trigger method and / or releasing the system resources occupied by the target trigger method when the third-party lock screen service is successfully called, the system resources of the terminal device can be saved and the impact on the performance (such as power) of the terminal device can be reduced.

[0090] The following describes in detail the calling method of the third-party lock screen service provided by the embodiment of the present application in conjunction with the accompanying drawings.

[0091] Figure 2 This is a schematic flow chart of a method for calling a third-party lock screen service according to another embodiment of the present application. In this embodiment, the terminal device is a smart phone, and is installed with a first-class operating system with customized system functions. The triggering methods corresponding to the third-party lock screen service in the smart phone are, in order of priority: calling the notification bar information sending function in the third-party application, calling the system player. Figure 2 As shown, the method includes:

[0092] S201, when the smart phone uses a third-party lock screen service, monitor the running status of the third-party application.

[0093] S202, when it is monitored that the running state of the third-party application is a preset running state, calling the notification bar information sending function in the third-party application, and triggering the calling of the lock screen service through the notification bar information sending function in the third-party application.

[0094] The preset running status includes running in the background or exiting the running state.

[0095] S203, determine whether the lock screen service is successfully triggered by the notification bar information sending function in the third-party application; if so, execute S204; if not, execute S205.

[0096] S204, stop executing the calling system player, and release the system resources occupied by calling the notification bar information sending function in the third-party application.

[0097] S205, calling the system player, and triggering the call of the lock screen service through the system player.

[0098] S206, determine whether the lock screen service is successfully triggered by the system player; if so, execute S207; if not, execute S208.

[0099] S207, releasing the system resources occupied by the calling system player.

[0100] S208: Determine that the call to the third-party lock screen service fails.

[0101] The specific process of S201-S208 has been described in detail in the above embodiment and will not be repeated here.

[0102] By adopting the technical solution of the embodiment of the present application, when a smartphone uses a third-party lock screen service, the running status of the third-party application is monitored. When the running status of the third-party application is monitored to be a preset running status, the priority of at least one triggering method corresponding to the lock screen service is determined. According to the priority corresponding to each triggering method, a target triggering method in at least one triggering method is executed, and the lock screen service is called by the target triggering method, so that the smartphone continues to use the lock screen service when the third-party application is in the preset running state. It can be seen that this technical solution can avoid the impact of the running status of the third-party application on the use of the lock screen service, ensure the efficient use of the third-party lock screen service by the smartphone, and improve the stability of the use of the third-party lock screen service. Moreover, based on the priority of the triggering method, the appropriate triggering method is selected in a targeted manner to trigger the third-party lock screen service, which can greatly improve the efficiency of calling the third-party lock screen service and reduce the impact on the performance of the smartphone (such as memory, power, etc.) when calling the third-party lock screen service.

[0103] Figure 3 This is a schematic flow chart of a method for calling a third-party lock screen service according to another embodiment of the present application. In this embodiment, the terminal device is a smart phone, and is installed with a second-type operating system whose system version is higher than or equal to the preset version. The triggering methods corresponding to the third-party lock screen service in the smart phone are in the order of priority: calling the system alarm clock, calling the system player. Figure 3 As shown, the method includes:

[0104] S301, when the smart phone uses a third-party lock screen service, monitoring the running status of a third-party application.

[0105] S302, when it is monitored that the running state of the third-party application is a preset running state, the system alarm is called, and the lock screen service is called by triggering the system alarm.

[0106] The preset running status includes running in the background or exiting the running state.

[0107] S303, determine whether the lock screen service is successfully called through the system alarm trigger; if so, execute S304; if not, execute S305.

[0108] S304, stop executing the calling system player and release the system resources occupied by calling the system alarm clock.

[0109] S305, calling the system player, and triggering the call of the lock screen service through the system player.

[0110] S306, determine whether the lock screen service is successfully triggered by the system player; if so, execute S307; if not, execute S308.

[0111] S307, releasing the system resources occupied by the calling system player.

[0112] S308: Determine that the call to the third-party lock screen service fails.

[0113] The specific process of S301-S308 has been described in detail in the above embodiment and will not be repeated here.

[0114] By adopting the technical solution of the embodiment of the present application, when a smartphone uses a third-party lock screen service, the running status of the third-party application is monitored. When the running status of the third-party application is monitored to be a preset running status, the priority of at least one triggering method corresponding to the lock screen service is determined. According to the priority corresponding to each triggering method, a target triggering method in at least one triggering method is executed, and the lock screen service is called by the target triggering method, so that the smartphone continues to use the lock screen service when the third-party application is in the preset running state. It can be seen that this technical solution can avoid the impact of the running status of the third-party application on the use of the lock screen service, ensure the efficient use of the third-party lock screen service by the smartphone, and improve the stability of the use of the third-party lock screen service. Moreover, based on the priority of the triggering method, the appropriate triggering method is selected in a targeted manner to trigger the third-party lock screen service, which can greatly improve the efficiency of calling the third-party lock screen service and reduce the impact on the performance of the smartphone (such as memory, power, etc.) when calling the third-party lock screen service.

[0115] Figure 4 This is a schematic flow chart of a method for calling a third-party lock screen service according to another embodiment of the present application. In this embodiment, the terminal device is a smart phone, and is installed with a second-type operating system whose system version is lower than the preset version. The triggering methods corresponding to the third-party lock screen service in the smart phone are in the following order of priority: calling the system keyboard, calling the network connection function between other devices, and calling the system player. Figure 4 As shown, the method includes:

[0116] S401, when the smart phone uses a third-party lock screen service, monitoring the running status of a third-party application.

[0117] S402, when it is monitored that the running state of the third-party application is a preset running state, the system keyboard is called, and the lock screen service is triggered by the system keyboard.

[0118] The preset running status includes running in the background or exiting the running state.

[0119] S403, determine whether the lock screen service is successfully called by the system keyboard trigger; if so, execute S404; if not, execute S405.

[0120] S404, stop executing the calling network connection function with other devices, and release the system resources occupied by calling the system keyboard.

[0121] S405, calling the network connection function between other devices, and triggering the call of the lock screen service through the network connection function between other devices.

[0122] S406, determine whether the lock screen service is successfully triggered by the network connection function between other devices; if so, execute S407; if not, execute S408.

[0123] S407, stop executing the calling system player and release the system resources occupied by the calling network connection function with other devices.

[0124] S408, calling the system player, and triggering the call of the lock screen service through the system player.

[0125] S409, determine whether the lock screen service is successfully triggered by the system player; if so, execute S410; if not, execute S411.

[0126] S410, releasing the system resources occupied by the calling system player.

[0127] S411, determining that the call to the third-party lock screen service fails.

[0128] The specific process of S401-S411 has been described in detail in the above embodiment and will not be repeated here.

[0129] By adopting the technical solution of the embodiment of the present application, when a smartphone uses a third-party lock screen service, the running status of the third-party application is monitored. When the running status of the third-party application is monitored to be a preset running status, the priority of at least one triggering method corresponding to the lock screen service is determined. According to the priority corresponding to each triggering method, a target triggering method in at least one triggering method is executed, and the lock screen service is called by the target triggering method, so that the smartphone continues to use the lock screen service when the third-party application is in the preset running state. It can be seen that this technical solution can avoid the impact of the running status of the third-party application on the use of the lock screen service, ensure the efficient use of the third-party lock screen service by the smartphone, and improve the stability of the use of the third-party lock screen service. Moreover, based on the priority of the triggering method, the appropriate triggering method is selected in a targeted manner to trigger the third-party lock screen service, which can greatly improve the efficiency of calling the third-party lock screen service and reduce the impact on the performance of the smartphone (such as memory, power, etc.) when calling the third-party lock screen service.

[0130] In summary, specific embodiments of the present subject matter have been described. Other embodiments are within the scope of the appended claims. In some cases, the actions recorded in the claims can be performed in a different order and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or sequential order shown to achieve the desired results. In some embodiments, multitasking and parallel processing can be advantageous.

[0131] The above is a method for calling a third-party lock screen service provided in an embodiment of the present application. Based on the same idea, an embodiment of the present application also provides a device for calling a third-party lock screen service.

[0132] Figure 5 is a schematic block diagram of a device for invoking a third-party lock screen service according to an embodiment of the present application, such as Figure 5 As shown, the calling device of the third-party lock screen service includes:

[0133] The monitoring module 510 is used to monitor the running status of the third-party application when the terminal device uses the lock screen service in the third-party application;

[0134] The first determination module 520 is used to determine the priority of at least one triggering mode corresponding to the lock screen service when the running state of the third-party application is monitored to be a preset running state; the priority is determined based on at least one of the power consumption, triggering duration, triggering accuracy, and memory usage corresponding to each triggering mode; the preset running state includes running in the background or exiting the running; the triggering mode includes calling the system function in the terminal device and / or the function in the third-party application;

[0135] The first execution module 530 is used to execute a target trigger mode in at least one trigger mode according to the priority corresponding to each trigger mode; each trigger mode is used to trigger the call of the lock screen service;

[0136] The trigger calling module 540 is used to trigger the calling of the lock screen service through a target triggering method, so that the terminal device continues to use the lock screen service when the third-party application is in a preset running state.

[0137] In one embodiment, the invoking device of the third-party lock screen service further includes:

[0138] A second determination module is used to determine device information of the terminal device; the device information includes an operating system and / or a system version of the operating system installed on the terminal device;

[0139] The third determination module is used to determine at least one triggering method corresponding to the lock screen service according to the device information.

[0140] In one embodiment, the device information includes a system version of an operating system;

[0141] The third determination module includes:

[0142] A first determining unit, configured to determine, if the operating system is a first type of operating system, that the triggering mode corresponding to the lock screen service is to call a notification bar information sending function in a third-party application;

[0143] A second determining unit is used to determine that the triggering mode corresponding to the lock screen service is at least one of calling a system alarm clock and calling a system player if the operating system is a second type of operating system and the system version of the second type of operating system is higher than or equal to a preset version;

[0144] The third determination unit is used to determine that the triggering method corresponding to the lock screen service is at least one of calling the system keyboard, calling the network connection function between other devices, and calling the system player if the operating system is a second-type operating system and the system version of the second-type operating system is lower than the preset version.

[0145] In one embodiment, the triggering method includes at least one of calling a system alarm clock and calling a system player;

[0146] The first execution module 530 and the trigger calling module 540 include:

[0147] The first trigger calling unit is used to call the system alarm clock, and trigger the call of the lock screen service through the system alarm clock;

[0148] The second trigger calling unit is used to call the system player and trigger the call of the lock screen service through the system player if the system alarm call fails or the lock screen service call triggered by the system alarm fails.

[0149] In one embodiment, the triggering method includes at least one of calling a system keyboard, calling a network connection function, and calling a system player;

[0150] The first execution module 530 and the trigger calling module 540 include:

[0151] The third trigger calling unit is used to call the system keyboard and trigger the call of the lock screen service through the system keyboard;

[0152] A fourth trigger calling unit, configured to call a network connection function if the system keyboard call fails or the lock screen service call triggered by the system keyboard fails, and trigger the lock screen service call through the network connection function;

[0153] The fifth trigger calling unit is used to call the system player and trigger the lock screen service through the system player if the network connection function fails to be called, or the lock screen service triggered by the network connection function fails to be called.

[0154] In one embodiment, the first execution module 530 includes:

[0155] An acquisition unit, used to acquire a function page of a system function and / or a function in a third-party application;

[0156] An adjustment unit, used to adjust page parameter information of a function page; the page parameter information includes at least one of page transparency, page display size, and page display position;

[0157] The display unit is used to display the processed function page so that the function page does not block the lock screen interface of the lock screen service.

[0158] In one embodiment, the invoking device of the third-party lock screen service further includes:

[0159] The second execution module is used to stop executing the target triggering method if the lock screen service is successfully called, and / or release the system resources occupied by the target triggering method.

[0160] Using the device of the embodiment of the present application, when the terminal device uses the lock screen service in the third-party application, the running state of the third-party application is monitored. When the running state of the third-party application is monitored to be the preset running state, the priority of at least one triggering mode corresponding to the lock screen service is determined, and according to the priority corresponding to each triggering mode, the target triggering mode in at least one triggering mode is executed, and the lock screen service is called by the target triggering mode, so that the terminal device continues to use the lock screen service when the third-party application is in the preset running state. It can be seen that the device can avoid the impact of the running state of the third-party application on the use of the lock screen service, ensure the efficient use of the third-party lock screen service by the terminal device, and improve the stability of the use of the third-party lock screen service. In addition, since the priority of the triggering mode is determined based on at least one of the power consumption, triggering duration, triggering accuracy, and memory occupied corresponding to each triggering mode, therefore, based on the priority of the triggering mode, the appropriate triggering mode is selected in a targeted manner to trigger the third-party lock screen service, which can greatly improve the efficiency of calling the third-party lock screen service and reduce the impact on the performance of the terminal device (such as memory, power, etc.) when calling the third-party lock screen service.

[0161] Those skilled in the art should understand that Figure 5 The calling device of the third-party lock screen service can be used to implement the calling method of the third-party lock screen service described above. The detailed description should be similar to the description of the method part above. To avoid tediousness, it will not be repeated here.

[0162] Based on the same idea, the embodiment of the present application also provides a device for calling a third-party lock screen service, such as Figure 6As shown. The calling device of the third-party lock screen service may have relatively large differences due to different configurations or performances, and may include one or more processors 601 and memory 602, and the memory 602 may store one or more storage applications or data. Among them, the memory 602 can be short-term storage or persistent storage. The application stored in the memory 602 may include one or more modules (not shown in the figure), and each module may include a series of computer executable instructions in the calling device of the third-party lock screen service. Furthermore, the processor 601 can be configured to communicate with the memory 602, and execute a series of computer executable instructions in the memory 602 on the calling device of the third-party lock screen service. The calling device of the third-party lock screen service may also include one or more power supplies 603, one or more wired or wireless network interfaces 604, one or more input and output interfaces 605, and one or more keyboards 606.

[0163] Specifically in this embodiment, the calling device of the third-party lock screen service includes a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer executable instructions in the calling device of the third-party lock screen service, and the one or more programs are configured to be executed by one or more processors, including the following computer executable instructions:

[0164] When the terminal device uses the lock screen service in the third-party application, monitor the running status of the third-party application;

[0165] When the running state of the third-party application is monitored to be a preset running state, determining the priority of at least one triggering mode corresponding to the lock screen service; the priority is determined based on at least one of the power consumption, triggering duration, triggering accuracy, and memory usage corresponding to each triggering mode; the preset running state includes running in the background or exiting the running; the triggering mode includes calling the system function in the terminal device and / or the function in the third-party application;

[0166] According to the priority corresponding to each trigger mode, execute at least one target trigger mode in the trigger mode; each trigger mode is used to trigger the call of the lock screen service;

[0167] The lock screen service is called by triggering the target trigger mode, so that the terminal device continues to use the lock screen service when the third-party application is in a preset running state.

[0168] Optionally, when the computer executable instructions are executed, the processor may also:

[0169] Determine device information of the terminal device; the device information includes the operating system and / or system version of the operating system installed on the terminal device;

[0170] At least one triggering method corresponding to the lock screen service is determined according to the device information.

[0171] Optionally, the device information includes a system version of an operating system;

[0172] Computer-executable instructions, when executed, may also cause the processor to:

[0173] If the operating system is a first type operating system, determining that the triggering method corresponding to the lock screen service is to call a notification bar information sending function in a third-party application;

[0174] If the operating system is a second type operating system and the system version of the second type operating system is higher than or equal to the preset version, determining that the triggering method corresponding to the lock screen service is at least one of calling a system alarm clock and calling a system player;

[0175] If the operating system is a second-category operating system and the system version of the second-category operating system is lower than the preset version, the trigger method corresponding to the lock screen service is determined to be at least one of calling the system keyboard, calling the network connection function between other devices, and calling the system player.

[0176] Optionally, the triggering method includes at least one of calling a system alarm clock and calling a system player;

[0177] Computer-executable instructions, when executed, may also cause the processor to:

[0178] Call the system alarm, and trigger the lock screen service through the system alarm;

[0179] If the system alarm fails to be called, or the lock screen service is called through the system alarm, the system player is called, and the lock screen service is called through the system player.

[0180] Optionally, the triggering method includes at least one of calling a system keyboard, calling a network connection function, and calling a system player;

[0181] Computer-executable instructions, when executed, may also cause the processor to:

[0182] Call the system keyboard and trigger the lock screen service through the system keyboard;

[0183] If the system keyboard call fails, or the lock screen service call triggered by the system keyboard fails, the network connection function is called, and the lock screen service call is triggered by the network connection function;

[0184] If the network connection function fails to be called, or the lock screen service triggered by the network connection function fails to be called, the system player is called, and the lock screen service is triggered by the system player.

[0185] Optionally, when the computer executable instructions are executed, the processor may also:

[0186] Get the function page of system functions and / or functions in third-party applications;

[0187] Adjusting the page parameter information of the function page; the page parameter information includes at least one of page transparency, page display size, and page display position;

[0188] The processed function page is displayed so that the function page does not block the lock screen interface of the lock screen service.

[0189] Optionally, when the computer executable instructions are executed, the processor may also:

[0190] If the lock screen service is successfully called, the target triggering method is stopped and / or the system resources occupied by the target triggering method are released.

[0191] Using the device of the embodiment of the present application, when the terminal device uses the lock screen service in the third-party application, the running state of the third-party application is monitored. When the running state of the third-party application is monitored to be the preset running state, the priority of at least one triggering mode corresponding to the lock screen service is determined, and according to the priority corresponding to each triggering mode, the target triggering mode in at least one triggering mode is executed, and the lock screen service is called by the target triggering mode, so that the terminal device continues to use the lock screen service when the third-party application is in the preset running state. It can be seen that the device can avoid the impact of the running state of the third-party application on the use of the lock screen service, ensure the efficient use of the third-party lock screen service by the terminal device, and improve the stability of the use of the third-party lock screen service. In addition, since the priority of the triggering mode is determined based on at least one of the power consumption, triggering duration, triggering accuracy, and memory occupied corresponding to each triggering mode, therefore, based on the priority of the triggering mode, the appropriate triggering mode is selected in a targeted manner to trigger the third-party lock screen service, which can greatly improve the efficiency of calling the third-party lock screen service and reduce the impact on the performance of the terminal device (such as memory, power, etc.) when calling the third-party lock screen service.

[0192] The embodiment of the present application further proposes a storage medium, which stores one or more computer programs, and the one or more computer programs include instructions. When the instructions are executed by an electronic device including multiple application programs, the electronic device can execute the calling method of the third-party lock screen service, and is specifically used to execute:

[0193] When the terminal device uses the lock screen service in the third-party application, monitor the running status of the third-party application;

[0194] When the running state of the third-party application is monitored to be a preset running state, determining the priority of at least one triggering mode corresponding to the lock screen service; the priority is determined based on at least one of the power consumption, triggering duration, triggering accuracy, and memory usage corresponding to each triggering mode; the preset running state includes running in the background or exiting the running; the triggering mode includes calling the system function in the terminal device and / or the function in the third-party application;

[0195] According to the priority corresponding to each trigger mode, execute at least one target trigger mode in the trigger mode; each trigger mode is used to trigger the call of the lock screen service;

[0196] The lock screen service is called by triggering the target trigger mode, so that the terminal device continues to use the lock screen service when the third-party application is in a preset running state.

[0197] Optionally, before determining the priority of at least one triggering method corresponding to the lock screen service, the method further includes:

[0198] Determine device information of the terminal device; the device information includes the operating system and / or system version of the operating system installed on the terminal device;

[0199] At least one triggering method corresponding to the lock screen service is determined according to the device information.

[0200] Optionally, the device information includes a system version of an operating system;

[0201] Determine at least one triggering method corresponding to the lock screen service based on the device information, including:

[0202] If the operating system is a first type operating system, determining that the triggering method corresponding to the lock screen service is to call a notification bar information sending function in a third-party application;

[0203] If the operating system is a second type operating system and the system version of the second type operating system is higher than or equal to the preset version, determining that the triggering method corresponding to the lock screen service is at least one of calling a system alarm clock and calling a system player;

[0204] If the operating system is a second-category operating system and the system version of the second-category operating system is lower than the preset version, the trigger method corresponding to the lock screen service is determined to be at least one of calling the system keyboard, calling the network connection function between other devices, and calling the system player.

[0205] Optionally, the triggering method includes at least one of calling a system alarm clock and calling a system player;

[0206] According to the priorities corresponding to the trigger modes, a target trigger mode in at least one trigger mode is executed; and the lock screen service is called by triggering the target trigger mode, including:

[0207] Call the system alarm, and trigger the lock screen service through the system alarm;

[0208] If the system alarm fails to be called, or the lock screen service is called through the system alarm, the system player is called, and the lock screen service is called through the system player.

[0209] Optionally, the triggering method includes at least one of calling a system keyboard, calling a network connection function, and calling a system player;

[0210] According to the priorities corresponding to the trigger modes, a target trigger mode in at least one trigger mode is executed; and the lock screen service is called by triggering the target trigger mode, including:

[0211] Call the system keyboard and trigger the lock screen service through the system keyboard;

[0212] If the system keyboard call fails, or the lock screen service call triggered by the system keyboard fails, the network connection function is called, and the lock screen service call is triggered by the network connection function;

[0213] If the network connection function fails to be called, or the lock screen service triggered by the network connection function fails to be called, the system player is called, and the lock screen service is triggered by the system player.

[0214] Optionally, executing a target triggering mode in at least one triggering mode includes:

[0215] Get the function page of system functions and / or functions in third-party applications;

[0216] Adjusting the page parameter information of the function page; the page parameter information includes at least one of page transparency, page display size, and page display position;

[0217] The processed function page is displayed so that the function page does not block the lock screen interface of the lock screen service.

[0218] Optionally, after the lock screen service is triggered by the target trigger mode, the following steps are also included:

[0219] If the lock screen service is successfully called, the target triggering method is stopped and / or the system resources occupied by the target triggering method are released.

[0220] Using the storage medium of the embodiment of the present application, when the terminal device uses the lock screen service in the third-party application, the running state of the third-party application is monitored, and when the running state of the third-party application is monitored to be the preset running state, the priority of at least one triggering mode corresponding to the lock screen service is determined, and according to the priority corresponding to each triggering mode, the target triggering mode in at least one triggering mode is executed, and the lock screen service is called by the target triggering mode, so that the terminal device continues to use the lock screen service when the third-party application is in the preset running state. It can be seen that the storage medium can avoid the impact of the running state of the third-party application on the use of the lock screen service, ensure the efficient use of the third-party lock screen service by the terminal device, and improve the stability of the use of the third-party lock screen service. In addition, since the priority of the triggering mode is determined based on at least one of the power consumption, triggering duration, triggering accuracy, and memory occupied corresponding to each triggering mode, therefore, based on the priority of the triggering mode, the appropriate triggering mode is selected in a targeted manner to trigger the third-party lock screen service, which can greatly improve the efficiency of calling the third-party lock screen service and reduce the impact on the performance of the terminal device (such as memory, power, etc.) when calling the third-party lock screen service.

[0221] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0222] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0223] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0224] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0225] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0226] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0227] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0228] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0229] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0230] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0231] The present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0232] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0233] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. A method for calling a third-party lock screen service, characterized in that: include: When the terminal device uses the lock screen service in a third-party application, monitoring the running status of the third-party application; When it is monitored that the running state of the third-party application is a preset running state, determining the priority of at least one triggering mode corresponding to the lock screen service; The priority is determined based on at least one of the power consumption, trigger duration, trigger accuracy, and memory usage corresponding to each of the trigger modes; the preset running state includes running in the background or exiting the running; the trigger mode includes calling the system function in the terminal device and / or the function in the third-party application; According to the priority corresponding to each of the triggering modes, executing a target triggering mode in the at least one triggering mode; each of the triggering modes is used to trigger the calling of the lock screen service; The lock screen service is called by triggering the target triggering method, so that the terminal device continues to use the lock screen service when the third-party application is in the preset running state.

2. The method according to claim 1, characterized in that Before determining the priority of at least one triggering method corresponding to the lock screen service, the method further includes: Determine device information of the terminal device; the device information includes an operating system installed on the terminal device and / or a system version of the operating system; Determine, according to the device information, at least one triggering method corresponding to the lock screen service.

3. The method according to claim 2, characterized in that The device information includes the system version of the operating system; The determining, according to the device information, the at least one triggering mode corresponding to the lock screen service includes: If the operating system is a first type operating system, determining that the triggering method corresponding to the lock screen service is to call the notification bar information sending function in the third-party application; the first type operating system is an operating system with customized system functions; If the operating system is a second-category operating system, and the system version of the second-category operating system is higher than or equal to a preset version, then determining that the triggering method corresponding to the lock screen service is at least one of calling a system alarm clock and calling a system player; the second-category operating system is an operating system with customized system functions, and there is a difference in the customized content corresponding to the second-category operating system and the first-category operating system; If the operating system is the second type of operating system and the system version of the second type of operating system is lower than the preset version, the trigger method corresponding to the lock screen service is determined to be at least one of calling the system keyboard, calling the network connection function between other devices, and calling the system player.

4. The method according to claim 3, characterized in that The triggering method includes calling at least one of the system alarm clock and the system player; executing a target triggering mode in the at least one triggering mode according to the priority corresponding to each triggering mode; Triggering and calling the lock screen service by the target triggering method includes: Calling the system alarm, and triggering calling the lock screen service through the system alarm; If the system alarm fails to call, or the lock screen service triggered by the system alarm fails to call, the system player is called, and the lock screen service is triggered by the system player.

5. The method according to claim 3, characterized in that: The triggering method includes at least one of calling the system keyboard, calling the network connection function, and calling the system player; executing a target triggering mode in the at least one triggering mode according to the priority corresponding to each triggering mode; Triggering and calling the lock screen service by the target triggering method includes: Calling the system keyboard, and triggering calling the lock screen service through the system keyboard; If the system keyboard call fails, or the lock screen service is called by the system keyboard, the network connection function is called, and the lock screen service is called by the network connection function; If the network connection function fails to be called, or the lock screen service triggered by the network connection function fails to be called, the system player is called, and the lock screen service is triggered by the system player.

6. The method according to claim 1, characterized in that The executing a target triggering mode in the at least one triggering mode includes: Obtaining a function page of the system function and / or the function in the third-party application; Adjusting the page parameter information of the function page; the page parameter information includes at least one of page transparency, page display size, and page display position; The processed function page is displayed so that the function page does not block the lock screen interface of the lock screen service.

7. The method according to claim 1, characterized in that After the lock screen service is triggered and called by the target triggering method, the method further includes: If the lock screen service is successfully called, the target triggering method is stopped and / or the system resources occupied by the target triggering method are released.

8. A device for invoking a third-party lock screen service, characterized in that: include: A monitoring module, used to monitor the running status of a third-party application when the terminal device uses a lock screen service in the third-party application; A first determination module, configured to determine a priority of at least one triggering mode corresponding to the lock screen service when it is detected that the running state of the third-party application is a preset running state; The priority is determined based on at least one of the power consumption, trigger duration, trigger accuracy, and memory usage corresponding to each of the trigger modes; the preset running state includes running in the background or exiting the running; the trigger mode includes calling the system function in the terminal device and / or the function in the third-party application; A first execution module, configured to execute a target trigger mode in the at least one trigger mode according to the priority corresponding to each trigger mode; each trigger mode is respectively used to trigger the call of the lock screen service; The trigger calling module is used to trigger and call the lock screen service through the target triggering method, so that the terminal device continues to use the lock screen service when the third-party application is in the preset running state.

9. A device for calling a third-party lock screen service, characterized in that: The invention comprises a processor and a memory electrically connected to the processor, the memory storing a computer program, and the processor being used to call and execute the computer program from the memory to implement: When the terminal device uses the lock screen service in a third-party application, monitoring the running status of the third-party application; When it is monitored that the running state of the third-party application is a preset running state, determining the priority of at least one triggering mode corresponding to the lock screen service; The priority is determined based on at least one of the power consumption, trigger duration, trigger accuracy, and memory usage corresponding to each of the trigger modes; the preset running state includes running in the background or exiting the running; the trigger mode includes calling the system function in the terminal device and / or the function in the third-party application; According to the priority corresponding to each of the triggering modes, executing a target triggering mode in the at least one triggering mode; each of the triggering modes is used to trigger the calling of the lock screen service; The lock screen service is called by triggering the target triggering method, so that the terminal device continues to use the lock screen service when the third-party application is in the preset running state.

10. A storage medium, characterized in that: The storage medium is used to store a computer program, and when the computer program is executed by the processor, the following process is implemented: When the terminal device uses the lock screen service in a third-party application, monitoring the running status of the third-party application; When it is monitored that the running state of the third-party application is a preset running state, determining the priority of at least one triggering mode corresponding to the lock screen service; The priority is determined based on at least one of the power consumption, trigger duration, trigger accuracy, and memory usage corresponding to each of the trigger modes; the preset running state includes running in the background or exiting the running; the trigger mode includes calling the system function in the terminal device and / or the function in the third-party application; According to the priority corresponding to each of the triggering modes, executing a target triggering mode in the at least one triggering mode; each of the triggering modes is used to trigger the calling of the lock screen service; The lock screen service is called by triggering the target triggering method, so that the terminal device continues to use the lock screen service when the third-party application is in the preset running state.