Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Heart rate component refreshing control method and device and computer readable storage medium

A control method and heart rate technology, applied in program control design, computing, program control devices, etc., can solve the problems of unresponsive heart rate widgets and poor user experience, achieve an efficient refresh control scheme, and extend the refresh interval. , the effect of reducing the number of rounds of the cycle

Pending Publication Date: 2022-06-21
NUBIA TECHNOLOGY CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, the heart rate widget will frequently do time-consuming work after receiving the broadcast. Too frequent time-consuming work may cause the heart rate widget to become unresponsive, therefore, it will bring a bad experience to the user

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Heart rate component refreshing control method and device and computer readable storage medium
  • Heart rate component refreshing control method and device and computer readable storage medium
  • Heart rate component refreshing control method and device and computer readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0071] image 3 It is a flow chart of the first embodiment of the heart rate component refresh control method of the present invention. A heart rate component refresh control method, the method comprising:

[0072] S1. When the heart rate component on the desktop receives the broadcast sent by the heart rate activity component, acquire the layout type of the heart rate component, and determine whether the refresh type of the notification component is the completion of the heart rate detection or the change of the desktop layout.

[0073] S2. When the refresh type of the notification component is the completion of heart rate detection, reset the layout variable of the heart rate component, initialize the heart rate component, and edit the animation picture of the heart rate component according to the preset animation rounds to refresh.

[0074] S3. When the refresh type of the notification component is desktop layout change, reset the layout variable, call component update to...

Embodiment 2

[0079] Figure 4 It is a flow chart of the second embodiment of the heart rate component refresh control method of the present invention. Based on the above embodiment, when the heart rate component on the desktop receives the broadcast sent by the heart rate activity component, acquire the layout type of the heart rate component, and determine The type of notification component refresh is the completion of the heart rate detection, or the change of the desktop layout, including:

[0080] S11. Acquire the layout type when the heart rate component receives the broadcast sent by the heart rate activity component.

[0081] S12. Assign the layout file corresponding to the layout type to the layout ID.

[0082] Optionally, in this embodiment, the broadcast sent by the heart rate Activity is received in the onReceive() of heartWidget; the layout type of the heart rate widget is obtained by using Settings.Global.getString; what kind of layout is judged by this type (4 *5, 4*6, 5*5,...

Embodiment 3

[0085] Figure 5 It is a flow chart of the third embodiment of the heart rate component refresh control method of the present invention. Based on the above embodiment, when the heart rate component on the desktop receives the broadcast sent by the heart rate activity component, acquire the layout type of the heart rate component, and determine The refresh type of the notification component is the completion of the heart rate detection, or the change of the desktop layout, and also includes:

[0086] S13. Judging whether the notification component is refreshed when the heart rate detection is completed according to a preset specific value.

[0087] S14. When the notification component is not refreshed when the heart rate detection is completed, it is determined whether the notification component is refreshed when the desktop layout is changed.

[0088] Optionally, in this embodiment, determine the refresh type: obtain a specific value through getSharedPreference to determine w...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a heart rate component refresh control method and device and a computer readable storage medium, and the method comprises the steps: judging whether the refresh type of a notification component is heart rate detection completion or desktop layout change; when the refresh type of the notification component is that the heart rate detection is finished, resetting a layout variable of the heart rate component, initializing the heart rate component, and refreshing an animation picture of the heart rate component according to a preset animation round; and when the refreshing type of the notification component is desktop layout change, resetting the layout variable, calling component update to determine the current component layout and notify the change, and obtaining and displaying heart rate data sent by the heart rate activity component. A more efficient heart rate part refresh control scheme is realized, invalid asynchronous tasks are removed, invariable variables are created during initialization, only changed contents are updated each time, the refresh interval time is prolonged, and the cycle turns are reduced.

Description

technical field [0001] The invention relates to the field of mobile communication, in particular to a heart rate component refresh control method, device and computer-readable storage medium. Background technique [0002] In the prior art, with the continuous development of smart terminal devices, some current mobile phones and other devices begin to support off-screen heart rate detection. For the convenience of users, a heart rate widget is placed on the desktop by default as the entrance of heart rate detection; the usual way of use is to enter the heart rate activity component by clicking the heart rate widget on the desktop, for example, press the finger on the fingerprint area for 15 seconds to detect heart rate; heart rate detection After the completion, the heart rate widget on the desktop will be notified by broadcast to refresh the data and animation. [0003] However, the heart rate widget will frequently do time-consuming work after receiving the broadcast, and ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/54G06F9/451A61B5/024
CPCG06F9/542G06F9/451A61B5/024A61B5/6898
Inventor 张少展
Owner NUBIA TECHNOLOGY CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products