Handwriting function starting method and device, electronic equipment and storage medium

By detecting the hovering of a stylus or simultaneous touch operation on an electronic device, the handwriting function can be directly activated, solving the problem of cumbersome activation of the handwriting function in existing technologies and achieving an efficient and smooth user experience.

CN121742741APending Publication Date: 2026-03-27HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-25
Publication Date
2026-03-27

AI Technical Summary

Technical Problem

In existing technologies, enabling handwriting functions on electronic devices requires cumbersome steps, resulting in high time costs and a poor user experience.

Method used

By detecting when the stylus is hovering over the electronic device's display screen or simultaneously detecting touch operation and stylus writing preparation, the handwriting function can be directly activated, simplifying the operation process.

Benefits of technology

It improves the efficiency of enabling handwriting functions, enhances user experience and writing fluency, and reduces the possibility of accidental operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121742741A_ABST
    Figure CN121742741A_ABST
Patent Text Reader

Abstract

The invention provides a handwriting function starting method and device, electronic equipment and a storage medium, and relates to the technical field of terminals. The problem of low handwriting function starting efficiency in the prior art can be effectively solved. The method can be applied to the electronic equipment, the electronic equipment is in communication connection with a handwriting pen, and the method comprises the steps that a writing interface is displayed; if it is determined that the handwriting pen is suspended above the display screen of the electronic equipment, a handwriting function is started, and the handwriting function is used for receiving operation information input by the handwriting pen in the writing interface.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of terminals, and in particular to a handwriting function starting method and device, an electronic device, and a storage medium. BACKGROUND

[0002] The wide application of handwriting function has obviously improved the flexibility and individuality of user input. However, in the prior art, when a user wants to enable the handwriting function on an electronic device (such as a smart phone or a tablet computer), the user needs to activate the function through a series of cumbersome steps on the interface of the electronic device by using a finger or a stylus, and then the user can use the finger or the stylus to perform a writing operation in the handwriting interface. Such a complex multi-step operation process consumes a lot of time, increases the time cost of the user using the handwriting function, and the operation process can also cause user confusion and even inconvenience in use, which greatly reduces the user's satisfaction with the handwriting function and the overall operation experience. SUMMARY

[0003] The present application provides a handwriting function starting method and device, an electronic device, and a storage medium, which effectively solves the problem of low handwriting function starting efficiency in the prior art.

[0004] To achieve the above-mentioned purpose, the present application adopts the following technical solutions:

[0005] In a first aspect, the present application provides a handwriting function starting method, which is applied to an electronic device having a communication connection with a stylus. The method comprises the following steps:

[0006] displaying a writing interface;

[0007] if it is determined that the stylus is hovering above the display screen of the electronic device, starting the handwriting function, wherein the handwriting function is used to receive operation information input by the stylus in the writing interface.

[0008] Based on the handwriting function starting method provided by the present application, after the electronic device determines that the stylus is hovering above the display screen of the electronic device in the writing interface, the handwriting function can be directly started, which effectively avoids the situation that a long operation step is needed to start the handwriting function, simplifies the operation step of starting the handwriting function, and improves the efficiency of starting the handwriting function. In this way, the writing operation can be quickly realized by the stylus in the writing interface, the interaction between the stylus and the electronic device is more natural and efficient, and the user experience is improved.

[0009] In some embodiments, the determination that the stylus is hovering above the display screen of the electronic device comprises: determining that the distance between the stylus and the display screen of the electronic device is less than or equal to a first preset distance.

[0010] Optionally, the first preset distance can include 0-12 millimeters, for example, the distance between the stylus and the display screen of the electronic device can be 3 millimeters, 4 millimeters, 6 millimeters, 8 millimeters or 9 millimeters, etc.

[0011] Optionally, the determination that the stylus is hovering above the display screen of the electronic device can also include determining that the stylus and the display screen of the electronic device are spaced apart by a first preset distance. It should be understood that when the first preset distance is 0 millimeters, it means that the stylus is in contact with the display screen of the electronic device, which can indicate that the stylus has the intention to write in the writing interface. In this case, the handwriting function can be enabled to facilitate the user to use the stylus to write in the writing interface.

[0012] In some embodiments, the determination that the stylus is hovering above the display screen of the electronic device can also include determining that the distance between the stylus and the display screen of the electronic device is less than or equal to the first preset distance for a first preset time length.

[0013] In some embodiments, the distance between the stylus and the display screen of the electronic device is the distance between the tip of the stylus and the display screen of the electronic device.

[0014] In some embodiments, enabling the handwriting function includes automatically lighting up a handwriting icon and / or automatically expanding a handwriting toolbar.

[0015] In a second aspect, the embodiments of the present application provide another handwriting function starting method, which is applied to an electronic device, and the method includes:

[0016] displaying an interface of a first application;

[0017] if the touch operation and the writing preparation operation of the stylus are simultaneously detected, enabling a handwriting function, the handwriting function being used to receive operation information input by the stylus in the interface of the first application.

[0018] Based on the above possible embodiments, when the electronic device simultaneously detects the touch operation and the writing preparation operation of the stylus, the handwriting function can be directly enabled. Based on this, the user can directly enter the writing mode in the interface of the first application quickly without searching for the writing interface, further reducing the operation steps of displaying the writing interface, further improving the smoothness of writing and the efficiency of writing operation, and improving the user experience.

[0019] In addition, since the handwriting function is enabled by the simultaneously detected touch operation and the writing preparation operation of the stylus, it can further effectively avoid the misoperation (or mis-triggering) caused by the first operation being too simple or common.

[0020] Optionally, the handwriting function can also be started after detecting three or more operations, which can include touch operations and a stylus writing preparation operation.

[0021] It should be understood that "at the same time" herein does not necessarily refer to a completely accurate same time in a mathematical sense, and an error is allowed. In some embodiments, the simultaneous detection of the touch operation and the stylus writing preparation operation includes detecting that a time interval between the touch operation and the stylus writing preparation operation is less than or equal to a second preset time length.

[0022] In some embodiments, the touch operation is an operation in which a user touches a display screen of the electronic device.

[0023] In some embodiments, the touch operation is an operation in which a user touches a display screen of the electronic device.

[0024] In some embodiments, the touch operation is an operation in which a user touches a display screen of the electronic device.

[0025] In some embodiments, the operation in which the stylus hovers over the display screen of the electronic device includes an operation in which a distance between the stylus and the display screen of the electronic device is less than or equal to a first preset distance.

[0026] In some embodiments, the operation in which the stylus hovers over the display screen of the electronic device includes an operation in which a distance between the stylus and the display screen of the electronic device is less than or equal to the first preset distance for a first preset time length.

[0027] In some embodiments, the distance between the stylus and the display screen of the electronic device is a distance between a stylus tip of the stylus and the display screen of the electronic device.

[0028] In some embodiments, starting the handwriting function includes automatically lighting up a handwriting icon and / or automatically unfolding a handwriting toolbar.

[0029] In some embodiments, the interface of the first application does not support a modification operation before the handwriting function is started. The modification operation herein refers to an operation other than an operation supported by the first application itself, such as an operation of taking a screenshot, writing, or revising on a video interface if the first application is a video application.

[0030] In a third aspect, an embodiment of the present application provides a handwriting function starting device, which includes:

[0031] A first display module is configured to display a writing interface.

[0032] The first determining module is configured to start a handwriting function if it is determined that the stylus is hovering over the display screen of the electronic device, wherein the handwriting function is configured to receive operation information input by the stylus in the writing interface.

[0033] In some embodiments, the determining that the stylus is hovering over the display screen of the electronic device comprises determining that a distance between the stylus and the display screen of the electronic device is less than or equal to a first preset distance.

[0034] In some embodiments, the determining that the stylus is hovering over the display screen of the electronic device further comprises determining that the distance between the stylus and the display screen of the electronic device is less than or equal to the first preset distance for a time period reaching a first preset time period.

[0035] In some embodiments, the distance between the stylus and the display screen of the electronic device is a distance between a stylus tip of the stylus and the display screen of the electronic device.

[0036] In some embodiments, the starting the handwriting function comprises automatically lighting up a handwriting icon and / or automatically unfolding a handwriting toolbar.

[0037] In a fourth aspect, an embodiment of the present application provides another handwriting function starting apparatus, which comprises:

[0038] The second display module is configured to display an interface of a first application.

[0039] The second determining module is configured to start a handwriting function if it is simultaneously detected that a touch operation and a writing preparation operation of the stylus are performed, wherein the handwriting function is configured to receive operation information input by the stylus in the interface of the first application.

[0040] In some embodiments, the simultaneously detecting that the touch operation and the writing preparation operation of the stylus are performed comprises detecting that a time period between the touch operation and the writing preparation operation is less than or equal to a second preset time period.

[0041] In some embodiments, the touch operation is an operation of a user touching the display screen of the electronic device.

[0042] In some embodiments, the touch operation is an operation of the user touching the display screen by three fingers.

[0043] In some embodiments, the writing preparation operation is an operation of the stylus hovering over the display screen of the electronic device.

[0044] Optionally, the operation of the stylus hovering over the display screen of the electronic device can comprise an operation of a distance between the stylus and the display screen of the electronic device being less than or equal to a first preset distance.

[0045] Optionally, the operation of hovering the stylus over the display screen of the electronic device can include: the distance between the stylus and the display screen of the electronic device is less than or equal to the first preset distance for a time period reaching a first preset time period.

[0046] In some embodiments, the interface of the first application does not support the modification operation before the handwriting function is enabled.

[0047] In some embodiments, the distance between the stylus and the display screen of the electronic device is the distance between the stylus tip of the stylus and the display screen of the electronic device.

[0048] In some embodiments, enabling the handwriting function includes: automatically lighting up a handwriting icon and / or automatically unfolding a handwriting toolbar.

[0049] In a fifth aspect, an embodiment of the present application provides an electronic device, which includes: one or more processors; one or more memories; and one or more computer programs; wherein the one or more computer programs are stored in the one or more memories, and the one or more computer programs include instructions that, when executed by the electronic device, cause the electronic device to perform the method in any possible implementation manner of the first aspect or any possible implementation manner of the second aspect.

[0050] In a sixth aspect, an embodiment of the present application provides a handwriting function enabling system, which can include the electronic device provided in the fifth aspect.

[0051] Optionally, the handwriting function enabling system can further include a stylus.

[0052] Optionally, the stylus can be communicatively connected with the electronic device.

[0053] Optionally, the stylus can be provided with a first sensing module, and the electronic device can be provided with a second sensing module, and the first sensing module and the second sensing module can cooperate to enable the handwriting function.

[0054] Optionally, the first sensing module can be an electromagnetic transmitter, and the second sensing module can be an electromagnetic receiver or an electromagnetic inductor.

[0055] Optionally, the first sensing module and the second sensing module can both be Hall sensors.

[0056] In a seventh aspect, a computer readable storage medium is provided, which stores a computer program (also referred to as code or instructions), and when the computer program code is run on a computer, the computer performs the method in any aspect or any possible implementation manner of the aspect.

[0057] In an eighth aspect, a computer program product containing instructions is provided, which includes a computer program (which can also be referred to as code or instructions) that, when executed on a computer, causes the computer to perform the method in any one of the aspects above or any possible implementation thereof.

[0058] It should be noted that the computer program code above can be stored in whole or in part on a first storage medium, which can be packaged together with the processor or packaged separately from the processor, and the present application does not make a specific limitation in this regard.

[0059] In a ninth aspect, a chip system is provided, which includes a processor and a memory, the memory being configured to store a computer program (which can also be referred to as code or instructions), and the processor being configured to invoke and run the computer program stored in the memory, so that a device or equipment installed with the chip system performs the method in any one of the aspects above or any possible implementation thereof.

[0060] It can be understood that the beneficial effects of the third aspect to the ninth aspect above can be referred to the related description in the first aspect or the second aspect above, and will not be repeated here. BRIEF DESCRIPTION OF DRAWINGS

[0061] Figures 1 to 5 A scene schematic diagram of using an electronic device to implement a writing operation is provided for an embodiment of the present application.

[0062] Figure 6 A structural schematic diagram of an electronic device is provided for an embodiment of the present application.

[0063] Figure 7 A structural schematic diagram of a stylus is provided for an embodiment of the present application.

[0064] Figure 8 A flow schematic diagram of a handwriting function starting method is provided for an embodiment of the present application.

[0065] Figures 9 to 15 A scene schematic diagram corresponding to a handwriting function starting method is provided for an embodiment of the present application.

[0066] Figure 16 A flow schematic diagram of another handwriting function starting method is provided for an embodiment of the present application.

[0067] Figure 17 A scene schematic diagram of using a touch phone and a stylus to jointly display a writing interface through a writing preparation operation is provided for an embodiment of the present application.

[0068] Figure 18This is a schematic diagram illustrating various touch gestures provided in the embodiments of this application.

[0069] Figure 19 This is a schematic diagram of the structure of a handwriting function activation device provided in an embodiment of this application.

[0070] Figure 20 This is a schematic diagram of another handwriting function activation device provided in an embodiment of this application. Detailed Implementation

[0071] The technical solutions of the embodiments of this application are described below with reference to the accompanying drawings and related embodiments. In the description of the embodiments of this application, unless otherwise specified or logically conflicting, the terminology and / or descriptions between different embodiments are consistent and can be mutually referenced. Technical features in different embodiments can be combined to form new embodiments based on their inherent logical relationships. In the embodiments of this application, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the association relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone, where A and B can be singular or plural. In the textual description of the embodiments of this application, the character " / " generally indicates that the preceding and following related objects are in an "or" relationship; for example, A / B can represent A or B. In this application, "first," "second," and various numerical designations are only for ease of description and are not used to limit the scope of the embodiments of this application. For example, they are used to distinguish different messages, rather than to describe a specific order or sequence.

[0072] The widespread use of handwriting recognition technology has provided users with a more flexible and personalized input experience. However, the existing methods for enabling handwriting recognition are often cumbersome and complex, requiring users to go through multiple steps before they can activate the function and perform handwriting operations.

[0073] In one example, let's assume the electronic device is a tablet computer; see [link to relevant documentation]. Figure 1 On the tablet's desktop 100, multiple pre-installed applications (apps) can be displayed, including a clock app, calendar app, gallery app, memo app 110, smart living app, settings app, file management app, email app, music app, calculator app, voice recorder app, app store app, video playback app, fitness and health app, weather app, browser app, etc. Of course, in... Figure 1 The tablet computer shown may also have other apps pre-installed, such as map apps, but this application does not limit this.

[0074] Assuming that the user wants to record some learning notes using the memo APP 110, the user can touch the application icon corresponding to the memo APP 110 on the desktop 100 of the tablet computer shown in the foregoing Figure 1 to select and start the memo APP 110. After the memo APP 110 is started, the memo APP 110 can display a display interface 200 as shown in the foregoing Figure 2 The display interface 200 shown in the foregoing Figure 2 may include a drop-down list option 210, a search option 220, a memo content 230, and an add button 240. The drop-down list option 210 can be provided with a plurality of different classification options for classifying and arranging the content recorded by the user in the memo. The search option 220 can be used by the user to quickly find the content recorded in the memo. The memo content 230 can be used to directly display the recorded content. The add button 240 can be used to add new memo content.

[0075] In an example, the user can operate the add button 240, so that the tablet computer can display a display interface 300 as shown in the foregoing Figure 3 in response to the operation of the user on the add button 240. The display interface 300 shown in the foregoing Figure 3 may include a toolbar 310, which can include a handwriting icon 311, a font style button 312, a task completion marking button 313, a picture adding button 314, a voice input button 315, and a more button 316.

[0076] Before the user creates new learning notes, the user needs to first touch the handwriting icon 311 in the toolbar 310, so that the tablet computer can display a display interface 400 as shown in the foregoing Figure 4 in response to the operation of the user on the handwriting icon 311. The display interface 400 can include a handwriting tool panel 410 and a content display interface 420. The handwriting tool panel 410 can include a control 411 for returning to the display interface 300, a color selection control 412, a brush selection control 413, an eraser tool 414, a picture adding control 415, a voice input control 416, and a setting control 417.

[0077] Then, the user can operate the brush selection control 413 in the handwriting tool panel 410 to display a brush selection toolbar 4131, which can display brushes of different thicknesses. The user can determine the required brush from the brush selection toolbar 4131 or directly use the default brush.

[0078] Assuming that the user directly uses the default brush, the tablet computer can select the default brush in response to the operation of the brush selection control 413 and displayFigure 5 As shown in the display interface 500, the user can write on the display screen of the tablet computer by using a stylus or a finger. Correspondingly, the tablet computer can display the writing content in a style corresponding to the default brush in response to the writing operation.

[0079] Based on the above example, although the user can enter the display interface 400 by operating the handwriting icon 311 in the prior art, then determine the corresponding brush from the brush selection toolbar 4131 by operating the brush selection button 413 in the handwriting tool panel 410, and then write in the display interface 500. Figure 5 However, such a long interaction operation path consumes a lot of time, increases the time cost of the user using the handwriting function, and such a multi-step operation process can also cause user confusion due to the complex operation path, and cause inconvenience in use, which greatly reduces the user's satisfaction with the handwriting function and the overall operation experience. In addition, such a time-consuming and long operation process can also increase the user's cognitive burden, which can cause the user to miss important information in a situation where quick recording or annotation is required, thereby reducing the use efficiency of the handwriting function.

[0080] Therefore, to solve the above problems, the present application provides a writing function starting method and device, electronic equipment and storage medium. After receiving the writing preparation operation of the stylus that meets the first condition in the writing interface, the handwriting function can be directly started. There is no need to select the handwriting icon in the writing interface, then operate the brush selection control in the handwriting tool panel, and then select the brush in the brush selection toolbar. This effectively avoids the situation that the handwriting function needs to be started through a long operation step, optimizes the starting process of the handwriting function, simplifies the operation steps, improves the writing operation efficiency and writing fluency, and improves the user experience.

[0081] The handwriting function starting method provided by the embodiments of the present application can be applied to electronic equipment. The electronic equipment can include a display screen, which can also be referred to as a touch screen, for receiving user operations on the display screen by a finger or a stylus to control the electronic equipment. For example, the electronic equipment can receive a user operation of sliding input text on the display screen, and display the corresponding text on the display screen of the electronic equipment.

[0082] In some embodiments, the handwriting function starting method provided by the embodiments of the present application can also be applied to electronic equipment and a stylus. The electronic equipment can include a display screen for receiving operations of the stylus on the display screen to control the electronic equipment. The stylus can also be referred to as a stylus pen, and can be used for writing, drawing, signing, and the like on the electronic equipment.

[0083] Optionally, the electronic device can also receive operations of other devices (such as a mouse, a keyboard, etc.) or other methods (such as voice recognition, gesture recognition, etc.) to realize control over the electronic device.

[0084] Optionally, the electronic device can also include a touchpad. The touchpad can be used to receive text, images, colors, etc. input by a user on the touchpad by a finger or a stylus.

[0085] Optionally, the electronic device can include both a display screen and a touchpad. The touchpad can be used to receive text, images, colors, etc. input by a user on the touchpad by a finger or a stylus; and the display screen can be used to display the text, images, colors, etc. input by the user on the touchpad by a finger or a stylus.

[0086] Exemplarily, the electronic device can include, but is not limited to, a personal computer (PC), a mobile phone, a tablet computer, a wearable device (such as a watch, a bracelet, a helmet, smart glasses, etc.), an augmented reality (AR) / virtual reality (VR) device, a mixed reality (MR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), an in-vehicle device, a smart screen, an e-book reader, a smart home device (such as a smart television, a smart speaker, a smart camera, and an electronic door lock, etc.), a server, and a motion sensing game machine in a human-computer interaction scenario, etc. The embodiments of the present application do not make any limitation on the specific type of the electronic device.

[0087] Figure 6 FIG. 1 is a structural schematic diagram of an electronic device provided by an embodiment of the present application. The electronic device includes a processor 610, an external memory interface 620, an internal memory 621, a universal serial bus (USB) interface 630, a charging management module 640, a power management module 641, a battery 642, an antenna 1, an antenna 2, a mobile communication module 650, a wireless communication module 660, an audio module 670, a loudspeaker 670A, a receiver 670B, a microphone 670C, an earphone interface 670D, a sensor module 680, a key 690, a motor 691, an indicator 692, a camera 693, a display screen 694, and a subscriber identification module (SIM) card interface 695, etc.

[0088] It can be understood that the structure shown in the embodiments of the present application does not constitute a specific limitation on the electronic device. In other embodiments of the present application, the electronic device can include more or fewer components than shown, or combine certain components, or split certain components, or different arrangement of components. The components shown can be implemented in hardware, software or a combination of software and hardware.

[0089] The processor 610 can include one or more processing units, for example: the processor 610 can include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units can be independent devices, or can be integrated in one or more processors. Among them, the controller can be the nerve center and command center of the electronic device. The controller can generate operation control signals according to instruction operation codes and timing signals, complete the control of fetching instructions and executing instructions.

[0090] The processor 610 can also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 610 is a cache memory. The memory can save instructions or data that the processor 610 has just used or repeatedly uses. If the processor 610 needs to use the instructions or data again, it can be directly called from the memory. Avoiding repeated access, reducing the waiting time of the processor 610, thus improving the efficiency of the system.

[0091] The charging management module 640 is used to receive charging input from the charger. Among them, the charger can be a wireless charger, or a wired charger. In some wired charging embodiments, the charging management module 640 can receive the charging input of the wired charger through the USB interface 630. In some wireless charging embodiments, the charging management module 640 can receive the wireless charging input through the wireless charging coil of the electronic device. The charging management module 640 charges the battery 642, and at the same time, it can also supply power to the electronic device through the power management module 641.

[0092] The power management module 641 is configured to connect the battery 642 and the charging management module 640 to the processor 610. The power management module 641 receives input from the battery 642 and / or the charging management module 640 to power the processor 610, the internal memory 621, the external memory, the display screen 694, the camera 693, the wireless communication module 660, and the like. The power management module 641 can also be configured to monitor parameters such as the battery capacity, the number of battery cycles, the state of health of the battery (leakage, impedance), and the like.

[0093] The wireless communication function of the electronic device can be implemented by the antenna 1, the antenna 2, the mobile communication module 650, the wireless communication module 660, the modem processor, and the baseband processor, and the like.

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

[0095] The mobile communication module 650 can provide a solution including 2G / 3G / 4G / 5G wireless communication applied to the electronic device. The mobile communication module 650 can include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), and the like. The mobile communication module 650 can receive electromagnetic waves from the antenna 1, and perform filtering, amplification, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 650 can also amplify signals modulated by the modem processor, and convert the amplified signals into electromagnetic waves to be radiated through the antenna 1.

[0096] In some embodiments, at least part of the functional modules of the mobile communication module 650 can be arranged in the processor 610. In some embodiments, at least part of the functional modules of the mobile communication module 650 and at least part of the modules of the processor 610 can be arranged in the same device.

[0097] The modem processor can include a modulator and a demodulator. The modulator is configured to modulate a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is configured to demodulate a received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. The low-frequency baseband signal processed by the baseband processor is transmitted to the application processor. The application processor outputs a sound signal through an audio playing device (not limited to a loudspeaker 670A, a receiver 670B, etc.), or displays an image or a video through the display screen 694. In some embodiments, the modem processor can be a separate device. In other embodiments, the modem processor can be independent of the processor 610 and be arranged in the same device as the mobile communication module 650 or other functional modules.

[0098] The wireless communication module 660 can provide a wireless communication solution applied to the electronic device, including wireless local area networks (WLAN) (such as a wireless fidelity (Wi-Fi) network), Bluetooth (BT), a global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), and the like. The wireless communication module 660 can be one or more devices integrated with at least one communication processing module. The wireless communication module 660 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on the electromagnetic wave signal, and transmits the processed signal to the processor 610. The wireless communication module 660 can also receive a signal to be transmitted from the processor 610, perform frequency modulation, amplification, and convert it into electromagnetic wave radiation via the antenna 2.

[0099] The camera 693 is configured to capture a still image or a video. An object projects an optical image onto the sensor module 680 via the camera 693. The sensor module 680 converts the optical signal into an electrical signal, and then transmits the electrical signal to the processor 610 to convert it into a digital image signal. For example, when taking a photo, the shutter is opened, light is transmitted to the sensor module 680 via the lens, the optical signal is converted into an electrical signal, and the sensor module 680 transmits the electrical signal to the processor 610 for processing to convert it into a visible image. The processor 610 can also optimize the algorithm for noise, brightness, and skin color of the image. The processor 610 can also optimize the exposure, color temperature, and other parameters of the shooting scene.

[0100] The camera 693 captures a video image to form preview image data. The processor 610 pre-processes the preview image data to obtain a preview stream. The pre-processing can include filtering and noise reduction, target enhancement, image segmentation, and the like.

[0101] In some embodiments, the electronic device can include one or N cameras 693, where N is a positive integer greater than 1.

[0102] The display screen 694 is configured to display text, images, videos, and the like. For example, in some embodiments, the display screen 694 can be configured to display operation information input by a user using a stylus. The display screen 694 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flex light-emitting diode (FLED), a Miniled, a MicroLed, a Micro-oLed, a quantum dot light emitting diode (QLED), or the like. In some embodiments, the electronic device can include one or N display screens 694, where N is a positive integer greater than 1.

[0103] In some embodiments, the display screen 694 can also be configured to receive a touch operation or a touch operation on the display panel by a user, and a stylus input operation on the display panel, and the like.

[0104] In some embodiments, the display screen 694 of the electronic device can also be provided with a sensing module. The sensing module can be configured to receive and process an identification signal (e.g., an electromagnetic wave signal) from another device (e.g., a stylus), to identify or determine the state of the other device according to the received identification signal.

[0105] Optionally, the sensing module can be an electromagnetic sensor (or electromagnetic receiver) configured to receive and process an electromagnetic wave from another device (e.g., a stylus), to identify or determine the state of the other device according to the received electromagnetic wave. Specifically, the electromagnetic sensor can convert the received electromagnetic wave into an electrical signal, and analyze and identify the electrical signal through an internal signal processing circuit, so that the electronic device can determine the state (e.g., position) of the other device according to the signal characteristics of the electromagnetic wave.

[0106] Of course, in other examples, the sensing module can also be directly provided in the electronic device, or provided in other modules of the electronic device. The embodiments of the present application do not make any limitation in this regard.

[0107] Optionally, the sensing module can also be a Hall sensor. For example, the electronic device can detect the state of other electronic devices (such as the approach and adsorption of a stylus) through the Hall sensor provided.

[0108] The external memory interface 620 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device. The external memory card communicates with the processor 610 through the external memory interface 620 to realize the data storage function. For example, files such as music and videos are saved in the external memory card.

[0109] The internal memory 621 can be used to store computer executable program codes, and the executable program codes include instructions. The processor 610 executes various functions of the electronic device and data processing by running the instructions stored in the internal memory 621. The internal memory 621 can include a program storage area and a data storage area. The program storage area can store an operating system and at least one application program required by a function (such as a sound playing function, an image playing function, etc.). The data storage area can store data created during the use of the electronic device (such as audio data, a phone book, etc.).

[0110] In addition, the internal memory 621 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), etc.

[0111] The electronic device can realize audio functions through the audio module 670, the speaker 670A, the receiver 670B, the microphone 670C, the earphone interface 670D, and the application processor, etc.

[0112] The audio module 670 is used to convert digital audio signals into analog audio signals for output, and is also used to convert analog audio input into digital audio signals. The audio module 670 can also be used to encode and decode audio signals. In some embodiments, the audio module 670 can be provided in the processor 610, or some functional modules of the audio module 670 can be provided in the processor 610.

[0113] The speaker 670A, also known as a "loudspeaker", is used to convert audio electrical signals into sound signals. The electronic device can listen to music through the speaker 670A, or listen to a hands-free call, for example, the speaker can play the comparison and analysis result provided by the embodiments of the present application.

[0114] The receiver 670B, also known as the "earpiece", is used to convert an audio electrical signal into a sound signal. When the electronic device answers a phone call or a voice message, the receiver 670B can be placed close to the human ear to answer the voice.

[0115] The microphone 670C, also known as the "microphone", "sound collector", is used to convert a sound signal into an electrical signal. When making a phone call or sending a voice message, the user can make a sound through the human mouth close to the microphone 670C, and input the sound signal into the microphone 670C. The electronic device can be provided with at least one microphone 670C. In other embodiments, the electronic device can be provided with two microphones 670C, in addition to collecting sound signals, it can also realize the function of noise reduction. In other embodiments, the electronic device can also be provided with three, four or more microphones 670C, which can realize the functions of collecting sound signals, noise reduction, identifying sound sources, realizing directional recording, etc.

[0116] In some embodiments, the electronic device can receive ultrasonic signals sent by other electronic devices through the microphone 670C, and identify the frequency and receiving strength of the ultrasonic signals through the processor 610.

[0117] The earphone interface 670D is used to connect a wired earphone. The earphone interface 670D can be a USB interface 630, or a 3.5mm open mobile terminal platform (OMTP) standard interface, a cellular telecommunications industry association of the USA (CTIA) standard interface.

[0118] The sensor module 680 can include a pressure sensor 680A, a gyroscope sensor 680B, an air pressure sensor 680C, a magnetic sensor 680D, an acceleration sensor 680E, a distance sensor 680F, a proximity light sensor 680G, a fingerprint sensor 680H, a temperature sensor 680J, a touch sensor 680K, an ambient light sensor 680L, a bone conduction sensor 680M, etc.

[0119] The key 690 includes a power-on key, a volume key, etc. The key 690 can be a mechanical key. It can also be a touch key. The electronic device can receive a key input and generate a key signal input related to the user settings and function control of the electronic device.

[0120] The motor 691 can generate a vibration prompt. The motor 691 can be used for incoming call vibration prompt, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, playing audio, etc.) can correspond to different vibration feedback effects. The motor 691 can also correspond to different vibration feedback effects for touch operations acting on different regions of the display screen 694.

[0121] The indicator 692 can be an indicator light, which can be used to indicate the charging state of the electronic device, the change of the power, and can also be used to indicate messages, missed calls, notifications, etc.

[0122] The SIM card interface 695 is used to connect a SIM card. The SIM card can be inserted into or pulled out of the SIM card interface 695 to realize contact and separation with the electronic device. The electronic device can support one or N SIM card interfaces, and N is a positive integer greater than 1. The SIM card interface 695 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. The same SIM card interface 695 can simultaneously insert multiple cards. The types of the multiple cards can be the same or different.

[0123] As shown in FIG. 7, the electronic device can further include a hand writing pen 700. Figure 7 A structure schematic diagram of the hand writing pen provided by the embodiment of the present application is shown in FIG. 7. Referring to FIG. 7, the hand writing pen can also be called a touch pen. The hand writing pen can include a processor 710 and a sensing module 720. Figure 7

[0124] It can be understood that the structure shown in the embodiment of the present application does not constitute a specific limitation on the hand writing pen. In other embodiments, the hand writing pen can include more or fewer components than shown in the figure, or combine certain components, or split certain components, or different component arrangements. The components shown in the figure can be implemented in hardware, software or a combination of software and hardware.

[0125] The processor 710 can be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory can save instructions or data that the processor 110 has just used or repeatedly uses. If the processor 110 needs to use the instructions or data again, it can be directly called from the memory. This avoids repeated access and reduces the waiting time of the processor 110, thereby improving the efficiency of the system.

[0126] The sensing module 720 can be built-in in the hand writing pen, and can be used to send a recognition signal, so that the electronic device (such as a mobile phone) can recognize or judge the state (such as position or posture) of the hand writing pen according to the recognition signal.

[0127] ​Optionally, the induction module 720 can further include an electromagnetic transmitter. The electromagnetic transmitter can be built in the stylus, and can be used to transmit electromagnetic wave signals. When the stylus is within a preset distance (e.g., 12 mm) from the screen of the electronic device, the electromagnetic transmitter can transmit electromagnetic wave signals of a specific frequency, so that the electronic device can identify the three-dimensional position of the stylus, and provide corresponding functions accordingly.

[0128] Optionally, the induction module 720 can further include a Hall sensor. The Hall sensor can be provided in the stylus and the electronic device, and can be used to detect the approach and adsorption state of the stylus. When the stylus approaches the electronic device, the Hall sensor can detect the change of the magnetic field, so as to trigger the corresponding operation of the electronic device, such as displaying a writing interface, so that the electronic device can receive the operation information input by the stylus in the writing interface.

[0129] Optionally, as an implementation manner, the stylus can further include a communication module 730, which can be used to support the communication between the stylus and the electronic device (e.g., a tablet computer).

[0130] Optionally, as an implementation manner, the stylus can further include a sensor module 740, which can be used to assist the electronic device to identify and determine the state or position of the stylus, so as to effectively identify the writing intention of the user (including writing, drawing, signing, etc.). The sensor module 740 can be provided with at least one sensor, such as an acceleration sensor or a gyroscope, etc.

[0131] Optionally, as an implementation manner, the stylus can further include a display module 750, which can be used to support the display function of the stylus.

[0132] As shown in FIG. 8, a flowchart of a handwriting function starting method 800 provided by an embodiment of the present application is shown. The handwriting function starting method 800 can be executed by an electronic device. The electronic device can establish a communication connection with a stylus. The handwriting function starting method 800 can include the following steps: Figure 8 Figure 8 In step 801, the electronic device displays a writing interface.

[0133] In step 801, the electronic device displays a writing interface.

[0134] It should be understood that the writing interface is used to receive the handwriting information input by the user, and can include any interface (or page) in a writing application or other application. For example, the writing application can be the writing application described above. Figure 1 ​The writing interface can be a memo APP 110, a note APP, a drawing APP, or a sketch APP, etc. as shown in the examples; or any APP that allows a user to input handwriting information by handwriting, where the handwriting information can include text and / or images.

[0135] It is understandable that the writing interface is usually used for writing and drawing, and can have handwriting capability and / or be adapted to specific handwriting tools (e.g. a handwriting pen, etc.).

[0136] In the embodiments of the present application, the writing interface can be Figure 3 the display interface 300 as shown in the examples; or the display interface 400 as shown in the foregoing Figure 4 the display interface 400 as shown in the foregoing Figure 5 the display interface 500 as shown in the foregoing.

[0137] In some embodiments, the writing interface can be displayed on the desktop of the electronic device in a full-screen display, a floating display, or a half-screen display, etc.

[0138] In some embodiments, the electronic device can display the writing interface in response to a triggering operation on the writing application.

[0139] It should be understood that the triggering operation can be any operation for displaying the writing interface. The triggering operation can specifically include, but is not limited to, clicking, touching, single-clicking, double-clicking, double-finger sliding, or long-pressing any control or application icon for a preset time length, etc.

[0140] In this embodiment, the triggering operation on the writing application can be one or more operations. For example, in the case where the first application is a note APP, the user can operate the application icon corresponding to the note APP to select and start the note APP, and after the note APP is started, the writing interface can be directly displayed. Based on this, the triggering operation is the operation of the user operating the application icon corresponding to the note APP. For another example, in the case where the first application is a memo APP, based on the foregoing examples, the triggering operation can include touching the application icon corresponding to the memo APP 110 and the operation of the user touching the new button 240, etc.

[0141] In some embodiments, the electronic device can also display the writing interface in response to a triggering operation on the first control.

[0142] For example, the first control can be a control for quickly starting the writing interface, which can be displayed as a desktop icon on the desktop of the electronic device or as a corner mark of the application icon of the writing application, etc.

[0143] In other embodiments, the electronic device can also display the writing interface in response to a triggering operation on the first service, where the first service can be any system service provided by the operating system, such as a voice assistant, etc.

[0144] Based on the above several possible embodiments, it is not difficult to understand that the triggering operation is used to trigger any control, application icon or service, so that the electronic device can perform the corresponding function in response to the above triggering operation. Therefore, in actual design, the specific operation of triggering any control, application icon or service can also be one or more of key input, gesture recognition, body language recognition, speech recognition, expression recognition, eye movement recognition, and face recognition. The present application does not make specific limitations here.

[0145] At step 802, if the electronic device determines that the stylus is hovering above the display screen of the electronic device, the electronic device starts the handwriting function. The handwriting function is used to receive operation information input by the stylus in the writing interface.

[0146] It should be understood that if the stylus is hovering above the display screen of the electronic device, the electronic device can determine that the stylus has the intention to write on the electronic device, that is, the stylus wants to perform a writing operation such as text input, drawing, signature, etc. on the electronic device. That is, after the stylus hovers above the display screen of the electronic device, the electronic device can determine that the stylus has performed a writing preparation operation. At this time, the electronic device can directly start the handwriting function to enable the electronic device to receive operation information input by the stylus in the writing interface. Wherein, the writing preparation operation of the stylus can be understood as the writing operation before the stylus writes.

[0147] In some embodiments, the electronic device can determine that the stylus is hovering above the display screen of the electronic device by the distance between the stylus and the display screen of the electronic device being less than or equal to a first preset distance.

[0148] It should be understood that, referring to Figure 9 , the distance between the stylus and the display screen of the electronic device can represent the distance L between the tip of the stylus 910 and the display screen of the electronic device 920.

[0149] Optionally, the first preset distance can include 0-15 millimeters. For example, the distance between the stylus and the display screen of the electronic device can be 3 millimeters, 4 millimeters, 6 millimeters, 8 millimeters, 10 millimeters, or 12 millimeters, etc. Of course, the first preset distance can also be set to different values according to different actual application scenarios, and the embodiments of the present application do not make limitations here.

[0150] Based on the above embodiments, if the distance between the stylus and the display screen of the electronic device does not exceed the first preset distance, the electronic device can determine that the stylus is hovering above the display screen of the electronic device, that is, the stylus has the intention to write in the writing interface. The electronic device can directly start the handwriting function to realize the function of writing as soon as the stylus is lifted, and improve the fluency of writing.

[0151] In other embodiments, the electronic device can also determine that the stylus is hovering above the display screen of the electronic device when the distance between the stylus and the display screen of the electronic device is less than or equal to the first preset distance for a time period reaching the first preset time period.

[0152] It should be noted that the time period for which the distance between the stylus and the display screen of the electronic device is less than or equal to the first preset distance reaching the first preset time period can be understood as that the stylus is hovering within the first preset distance from the display screen of the electronic device, and the hovering action lasts for more than the first preset time period.

[0153] Based on this, when the stylus is hovering within the first preset distance from the display screen of the electronic device, and the stylus stays within the first preset distance for more than the first preset time period, the electronic device can determine that the stylus is hovering above the display screen of the electronic device, and the stylus has the intention of writing in the writing interface. The electronic device can directly open the handwriting function to quickly enter the writing mode.

[0154] In some embodiments, the electronic device can also determine that the stylus is hovering above the display screen of the electronic device when the stylus is spaced apart from the display screen of the electronic device by the first preset distance.

[0155] For example, referring to Figure 10 , the tip of the stylus 1001 is spaced apart from the display screen of the electronic device 1002 by the first preset distance d, that is, the stylus 1001 is hovering at a position that is the first preset distance d away from the display screen of the electronic device 1002, which indicates that the stylus has the intention of writing in the writing interface, and the electronic device can open the handwriting function.

[0156] In some embodiments, the electronic device can also determine that the stylus is hovering above the display screen of the electronic device when the time period for which the stylus is spaced apart from the display screen of the electronic device by the first preset distance reaches the first preset time period.

[0157] For example, Figure 10 , the tip of the stylus 1001 is spaced apart from the display screen of the electronic device 1002 by the first preset distance d for a time period reaching the first preset time period, which indicates that the stylus has the intention of writing in the writing interface, and the electronic device can open the handwriting function.

[0158] In other embodiments, the electronic device can also directly open the handwriting function by directly contacting the stylus and the display screen of the electronic device.

[0159] For example, referring to Figure 11For example, as shown in FIG. 11, when the stylus 1101 is in contact with the display screen of the electronic device 1102, the user can perform a writing preparation operation on the display screen of the electronic device 1102. In this case, the stylus 1101 can be in contact with the display screen of the electronic device 1102. In this case, it can be considered that the user holds the stylus to have the intention of writing on the electronic device 1102, and the electronic device can quickly open the handwriting function.

[0160] It should be noted that if the stylus is in direct contact with the display screen of the electronic device, the first preset distance between the stylus and the display screen of the electronic device can be considered to be 0 mm. Based on this, it can be indicated that the stylus has the intention of writing in the writing interface, and the electronic device can directly open the handwriting function, which is convenient for the user to use the stylus to quickly perform the writing operation in the writing interface.

[0161] In other embodiments, the electronic device can also open the handwriting function by the time length of the contact between the stylus and the display screen of the electronic device reaching a first preset time length.

[0162] It should be understood that the time length of the contact between the stylus and the display screen of the electronic device reaching the first preset time length can be understood as the stylus and the display screen of the electronic device being in contact within the first preset time length. The first preset time length can be between 0.1 seconds and 15 seconds. For example, the first preset time length can be 0.1 seconds, 0.5 seconds, 1 second, 1.5 seconds, 2 seconds, 5 seconds, 7 seconds, 10 seconds, etc. In actual application, the preset time length can be preconfigured or customized by the user. The embodiments of the present application do not limit this.

[0163] Based on this, when the writing preparation operation of the stylus satisfies that the contact time length between the stylus and the display screen of the electronic device reaches the first preset time length, the electronic device opens the handwriting function to quickly enter the writing mode.

[0164] Optionally, the electronic device can also directly open the handwriting function according to the preset trigger operation performed by the stylus in the preset area in the writing interface.

[0165] The preset trigger operation can include but is not limited to touch, single click, double click, double finger sliding, long press for a preset time length, etc. As an example but not limited, assuming that the writing interface is the display interface 400 in the example shown in FIG. 4, the preset area can be the content display interface 420 in the display interface 400, and the preset trigger operation is a double click operation. When the stylus performs a double click operation in the content display interface 420, the handwriting function can be directly opened to quickly enter the writing mode. Figure 4

[0166] ​Optionally, any two or more of the above-mentioned possible embodiments of the operation mode for triggering the electronic device to start the handwriting function can also be pre-set in the electronic device, so that the electronic device starts the handwriting function immediately after detecting any one of the operation modes. In this way, the flexibility of starting the handwriting function can be improved by increasing the triggering operation for starting the handwriting function. In actual applications, the use habits of different users in different scenarios can also be met, and the individuality of user experience can be improved.

[0167] For example, the pre-set operation mode for triggering the electronic device to start the handwriting function in the electronic device can include, but is not limited to, the following: the distance between the stylus and the display screen of the electronic device is less than or equal to a first preset distance, the stylus is spaced apart from the display screen of the electronic device by a first preset distance, the stylus is spaced apart from the display screen of the electronic device by the first preset distance for a first preset time length, the stylus directly contacts the display screen of the electronic device, the stylus contacts the display screen of the electronic device for a first preset time length, the distance between the stylus and the display screen of the electronic device is less than or equal to the first preset distance for the first preset time length, the stylus performs a preset triggering operation in a preset area of the writing interface, and the like.

[0168] It can be understood that the specific values of the first preset time length and the first preset distance in the above-mentioned possible examples can be the same or different.

[0169] In the embodiments of the present application, the handwriting function can refer to the function of writing characters or drawing graphics on the display screen (or touch screen) of the electronic device using a stylus or a finger. In actual applications, when writing on the display screen (or touch screen) of the electronic device using a stylus or a finger, the recognition system built in the electronic device can recognize the written content and display the recognized written content on the display screen of the electronic device. The written content can be the handwriting corresponding to the sliding track of the user on the display screen of the electronic device, or the various fonts written by the user on the display screen of the electronic device can be converted into standard fonts recognizable by the electronic device.

[0170] In some embodiments, the operation of starting the handwriting function of the electronic device can specifically include an icon automatic lighting operation.

[0171] In one example, assuming that the display interface 300 shown in Figure 3 is a handwriting interface, see Figure 12If the electronic device determines that the stylus is hovering over the display screen of the electronic device, the electronic device can display a handwriting function opening interface 1200, which can include a first toolbar 1200a, a handwriting input interface 1200b, and a second toolbar 1200c.

[0172] The first toolbar 1200a can display a bold control 1211, an italic control 1212, an underline control 1213, a strike-through control 1214, a superscript / subscript button 1215, a font color button 1216, a handwriting icon 1217, a previous step control 1218, a next step control 1219, and a confirmation control 1220, and the like. The handwriting input interface 1200b is used to display the writing content input by the user. The second toolbar 1200c can include a control 1221 for returning to the display interface 300, a color selection control 1222, a brush selection control 1223, an eraser tool 1224, a picture adding control 1225, a voice input control 1226, and a setting control 1227, and the like.

[0173] Referring to Figure 12 In the case where the electronic device determines that the stylus is hovering over the display screen of the electronic device, the electronic device can light up the handwriting icon 1217 in the first toolbar 1200a in the handwriting function opening interface 1200, and / or light up the icon corresponding to the brush selection control 1223 in the second toolbar 1200c in the handwriting function opening interface 1200, so that the electronic device can receive the writing operation information input by the stylus in the handwriting input interface 1200b and display the writing content input by the user in the handwriting input interface 1200b.

[0174] In Figure 12 In the example, the operation of lighting up the handwriting icon 1217 in the first toolbar 1200a in the handwriting function opening interface 1200 and / or the operation of lighting up the icon corresponding to the brush selection control 1223 in the second toolbar 1200c in the handwriting function opening interface 1200 can be understood as the operation of the electronic device opening the handwriting function. After the handwriting icon 1217 in the first toolbar 1200a is lit up and / or the icon corresponding to the brush selection control 1223 in the second toolbar 1200c is lit up, it can be considered that the electronic device has started the handwriting function, and the writing operation can be directly performed using the stylus.

[0175] In some embodiments, the operation of the electronic device opening the handwriting function can further include an automatic expansion operation of the handwriting toolbar.

[0176] Still referring to the above Figure 12For example, the operation of displaying the first toolbar 1200a and / or the second toolbar 1200c in the handwriting function opening interface 1200 can be understood as a handwriting toolbar automatic expansion operation. Of course, in a possible example, the first toolbar 1200a and / or the second toolbar 1200c can also be displayed directly in the handwriting function opening interface 1200, and the operation of displaying the first toolbar 1200a and / or the second toolbar 1200c can be understood as a handwriting toolbar automatic expansion operation. Figure 3 The first toolbar 1200a and / or the second toolbar 1200c in the handwriting function opening interface 1200 can be displayed directly in the display interface 300 shown in Figure 12 , and the operation of displaying the first toolbar 1200a and / or the second toolbar 1200c can be understood as a handwriting toolbar automatic expansion operation.

[0177] In some embodiments, the operation of the electronic device to open the handwriting function can specifically include an icon automatic lighting operation and a handwriting toolbar automatic expansion operation.

[0178] In another example, referring to Figure 13 , after determining that the stylus is hovering over the display screen of the electronic device, the electronic device can directly light up the handwriting icon 1311 in the first toolbar 1300a in the handwriting function opening interface 1300, and automatically expand the brush selection toolbar 1312a corresponding to the brush selection control 1312 in the second toolbar 1300c, so as to directly use the default brush in the brush selection toolbar 1312a for writing operation.

[0179] In the above example, the operation of lighting up the handwriting icon 1311 in the first toolbar 1300a in the handwriting function opening interface 1300 can be understood as an icon automatic lighting operation, and the operation of automatically displaying the brush selection toolbar 1312a corresponding to the brush selection control 1312 in the second toolbar 1300c can be understood as a handwriting toolbar automatic expansion operation. Therefore, in the case of lighting up the handwriting icon 1311 in the first toolbar 1300a and automatically displaying the brush selection toolbar 1312a corresponding to the brush selection control 1312 in the second toolbar 1300c, the electronic device can be considered to have started the handwriting function, and the electronic device can directly receive the writing operation information input by the stylus in the writing interface. The above Figure 13 In the example, other contents included in the handwriting function opening interface 1300 can refer to the related description in the foregoing Figure 12 , and will not be described here.

[0180] In other examples, the operation of the electronic device to open the handwriting function can specifically include an icon automatic lighting operation and a handwriting toolbar automatic expansion operation.

[0181] For example, the handwriting interface is the display interface 500 shown in the foregoing Figure 5 , referring to Figure 14If it is determined that the stylus is hovering over the display screen of the electronic device, the electronic device can further add a handwriting icon 1410 in the handwriting function opening interface 1400 to open the handwriting function. It can be understood that, compared to the display interface 500 shown in FIG. 13A, the handwriting function opening interface 1400 has the handwriting icon 1410 added. That is, in this example, the added icon is the handwriting icon 1410, that is, the operation of adding the handwriting icon 1410 in the handwriting function opening interface 1400 can be understood as that the electronic device starts the handwriting function, and the handwriting operation can be directly performed by using the stylus. Figure 5

[0182] It can be understood that the operation of the electronic device opening the handwriting function can further include the adding icon operation and the handwriting toolbar automatic expansion operation.

[0183] For example, if it is determined that the stylus is hovering over the display screen of the electronic device, the electronic device can also add a handwriting icon 1511 in the handwriting function opening interface 1500 shown in FIG. 15A, and display a brush selection toolbar 1531a corresponding to the brush selection control 1531 in the second toolbar 1530 to open the handwriting function. In other words, in this example, the operation of adding the handwriting icon 1511 and displaying the brush selection toolbar 1531a corresponding to the brush selection control 1531 in the second toolbar 1530 can be understood as that the electronic device starts the handwriting function, and the electronic device can directly receive the handwriting operation information input by the stylus in the writing interface. Figure 15

[0184] Of course, in other examples, according to different handwriting interfaces, the interface or the display toolbar of the electronic device when starting the handwriting function after the electronic device determines that the stylus is hovering over the display screen of the electronic device can be different, and the embodiments of the present application are not limited thereto.

[0185] Based on the handwriting function starting method described above, the handwriting function can be directly opened after it is determined that the stylus is hovering over the display screen of the electronic device, which effectively avoids the situation that the handwriting function needs to be opened after a long operation step, simplifies the operation step of opening the handwriting function, and improves the handwriting function opening efficiency. In this way, the pen can be quickly started to write in the writing interface, the interaction between the stylus and the electronic device is more natural and efficient, and the user experience is improved.

[0186] Optionally, when the electronic device opens the handwriting function, the first prompt information can be displayed, and the first prompt information can be used to prompt that the handwriting function has been opened.

[0187] ​​Optionally, after the electronic device displays the writing interface, the electronic device can also display second prompt information on the display screen of the electronic device, which can be used to prompt that the handwriting function is not started.

[0188] It should be understood that the second prompt information can include prompt information about whether to start the writing function. In the case of detecting that the user indicates to start the writing function, the electronic device can directly start the writing function. In the case of detecting that the user indicates not to start the writing function, the electronic device can not start the writing function.

[0189] Optionally, the second prompt information can also include the reason for not starting the handwriting function and / or the operation corresponding to the prompt to start the handwriting function. In this way, the user can correct the writing preparation operation of the handwriting pen to quickly start the writing function with the help of the second prompt information.

[0190] As Figure 16 Fig. 16 shows a flowchart of another handwriting function starting method 1600 provided by an embodiment of the present application. As shown in Fig. 16, the handwriting function starting method 1600 can include the following steps: Figure 16 The handwriting function starting method 1600 can also be executed by an electronic device. The handwriting function starting method 1600 can include the following steps:

[0191] Step 1601: The electronic device displays an interface of a first application.

[0192] It should be understood that in the embodiments of the present application, the first application can be a writing application, for example, the writing application can be the aforementioned Figure 1 memo APP 110, note APP, drawing APP, or sketching APP, etc. The first application can also be any application installed in the electronic device, for example, a video playing application, etc.

[0193] The interface of the first application displayed in the electronic device can be any interface. In one example, assuming that the first application is the aforementioned Figure 1 memo APP 110, the interface of the first application displayed in the electronic device can be the display interface 300 shown in Fig. 3, or the display interface 400 in the example shown in Fig. 4, or the aforementioned display interface 500 shown in Fig. 5. In another example, assuming that the first application is a video playing application, the interface of the first application displayed in the electronic device can be the home page displayed after the video playing application is started, or can be a playing page corresponding to playing any video. Figure 3 Figure 4 Figure 5

[0194] In some examples, the display mode of the interface of the first application includes but is not limited to the following modes: the user touches an application icon corresponding to the first application, starts the first application through a smart voice assistant, or triggers a shortcut key to start the first application, etc. ​​​

[0195] At step 1602, the electronic device starts the handwriting function if the touch operation and the writing preparation operation of the stylus are detected simultaneously. The handwriting function is used to receive operation information input by the stylus in the interface of the first application.

[0196] It is understandable that, in the embodiments of the present application, the touch operation and the writing preparation operation of the stylus jointly constitute the trigger operation for starting the handwriting function. In this way, using two operations as trigger conditions can ensure that the starting of the handwriting function is more accurate and reliable, thereby improving the user experience. In addition, it can also avoid the function conflict caused by the fact that a single operation may have been used to start other functions when the handwriting function is started only by relying on a single user operation or stylus operation.

[0197] In some embodiments, the touch operation can be a touch operation, i.e., an operation in which the user touches the display screen of the electronic device.

[0198] In one example, referring to Figure 17 , the touch operation can be an operation in which the user touches the display screen by three fingers.

[0199] In other examples, the touch operation of the user can also be any one of the possible gesture operations in the various gestures (1) to (10) shown in Figure 18 .

[0200] In some embodiments, the touch operation of the user can also be a control operation, i.e., an operation of controlling the display of a writing interface on the display screen of the electronic device and starting the writing function. For example, the control operation can include one or more of key input, gesture recognition, body language recognition, speech recognition, expression recognition, eye movement recognition, and face recognition.

[0201] In some embodiments, the writing preparation operation of the stylus can also be the operation in which the stylus is hovering over the display screen of the electronic device in the handwriting starting method 800 described above.

[0202] In some embodiments, the operation in which the stylus is hovering over the display screen of the electronic device can include an operation in which the distance between the stylus and the display screen of the electronic device is less than or equal to a first preset distance.

[0203] In some embodiments, the operation in which the stylus is hovering over the display screen of the electronic device can also include an operation in which the distance between the stylus and the display screen of the electronic device is less than or equal to a first preset distance for a duration of a first preset duration.

[0204] The writing preparation operation of the stylus in the above embodiments can refer to the related content in the handwriting starting method 800 described above, which will not be repeated here.

[0205] Based on the above possible embodiments, the user's touch operation and the stylus's writing preparation operation can be performed simultaneously; a second preset time interval can also be established between the user's touch operation and the stylus's writing preparation operation. The second preset time interval can be between 0.1 seconds and 30 seconds. For example, the value of the second preset time interval can be 0.1 seconds, 0.5 seconds, 1 second, 2 seconds, 2.4 seconds, 2.7 seconds, 5 seconds, 10 seconds, 15 seconds, 20 seconds, etc.

[0206] It should be noted that, in practical applications, the user's touch operation and the stylus's writing preparation operation can be the same. As an example, and not a limitation, the user's touch operation can be the user touching the display screen with a single finger; the stylus's writing preparation operation can be the stylus tip touching the electronic device's display screen. Therefore, the user's touch operation and the stylus's writing preparation operation can be considered the same. Of course, in practical applications, the user's touch operation and the stylus's writing preparation operation can also be different, and this application does not limit this.

[0207] In some embodiments, the electronic device can detect the touch operation and the writing preparation operation of the stylus within a first preset area.

[0208] It should be understood that the first preset area can be an area corresponding to the display screen of the electronic device. In one possible example, the size of the first preset area is the same as the size of the display screen of the electronic device, that is, the touch operation and the writing preparation operation of the stylus are detected on the display screen of the electronic device.

[0209] In another possible example, the first preset area could also be a portion of the display screen of an electronic device. For example, the first preset area could be... Figure 4 The content display area in the shown display interface 400 corresponds to the area of ​​the display interface 420, etc. This allows for rapid detection of touch operations and stylus writing preparation operations in specific areas, significantly improving the convenience and efficiency of user interaction. It also effectively reduces the processing steps of the display screen and simplifies the display screen manufacturing process.

[0210] Based on the above possible implementation methods, since the detected touch operation and the writing preparation operation of the stylus are detected in the first preset area of ​​the electronic device, the situation of erroneously triggering the display of the writing interface when the stylus is removed from the electronic device due to needs such as charging can be effectively avoided by limiting the area, thus ensuring the accurate matching of the user's intention and the actual operation.

[0211] In other embodiments, the first preset area can also be an area other than the display screen of the electronic device. For example, the other area is an area on the outer frame of the electronic device, which can be used by the electronic device to detect the touch operation and / or the writing preparation operation of the stylus, so as to start the writing function when the electronic device detects the touch operation and the writing preparation operation of the stylus.

[0212] In some embodiments, the interface of the first application does not support the modification operation before the writing function is started.

[0213] It should be understood that the modification operation can include at least one of the adding operation, the updating operation, and the deleting operation performed by the user on the content in the interface of the first application.

[0214] It is not difficult to understand that the electronic device starts the writing function only after detecting the touch operation and the writing preparation operation of the stylus at the same time, that is, the user can perform the writing operation in the interface of the first application by using the stylus, so that the electronic device receives the operation information input by the stylus in the interface of the first application. Therefore, before the electronic device starts the writing function, the user cannot temporarily use the stylus to modify the content displayed in the interface of the first application.

[0215] It should be noted that in the embodiments of the present application, and the embodiments described above Figure 8 The difference between the embodiments shown in the method 800 is mainly that, after the writing interface has been displayed, the electronic device starts the writing function after determining that the stylus is hovering over the display screen of the electronic device, so that the stylus can be directly used to perform the writing operation in the writing interface.

[0216] In the method 1600, it is not limited whether the interface currently displayed by the electronic device is any interface in the writing application, that is, in the method 1600, the electronic device first displays any interface, and then directly starts the writing function in the any interface after detecting the touch operation and the writing preparation operation of the stylus at the same time, that is, the user can perform the writing operation in the any interface.

[0217] Optionally, the electronic device can also display a third prompt information before or after displaying the interface of the first application, and the third prompt information can be used to indicate that the writing function is successfully started.

[0218] Optionally, after the electronic device displays the interface of the first application, the electronic device can also display a fourth prompt information, and the fourth prompt information can be used to indicate that the writing function is not started.

[0219] It should be understood that the fourth prompt information can further include prompt information about whether to start the writing function. In a case where it is detected that the user indicates to start the writing function, the electronic device can directly start the writing function. In a case where it is detected that the user indicates not to start the writing function, the electronic device can not start the writing function.

[0220] In other examples, the fourth prompt information can further include a reason for not starting the handwriting function and / or operation information for guiding the user to start the writing function, and the like. In this way, the user can input correct operations to start the writing function with the aid of the fourth prompt information.

[0221] In addition to the possible implementation manners described above, in other possible implementation manners, the handwriting function starting method can further include that, after the electronic device simultaneously detects the touch operation and the writing preparation operation of the stylus, the electronic device first displays the interface of the first application and then starts the handwriting function. In this way, the effect of writing as soon as the stylus is lifted can be achieved, and the operation path before writing is further reduced on the basis of the method 1600, and the efficiency and fluency of the writing operation are further improved.

[0222] In this possible implementation manner, the touch operation and the writing preparation operation of the stylus detected by the electronic device, the first application, the interface of the first application, and the specific operation of starting the handwriting function can refer to the content in the foregoing related embodiments, and will not be described here again.

[0223] Based on the handwriting function starting method described above, the touch operation and the writing preparation operation of the stylus corresponding to the first application can be preconfigured. For example, the interface currently displayed by the electronic device can be the desktop 100 or the lock screen interface shown in FIG. 1, or the electronic device is in a screen-off state. If the electronic device simultaneously detects the touch operation and the writing preparation operation of the stylus, the electronic device can display any interface in which writing can be performed and start the handwriting function. Figure 1

[0224] Based on the possible implementation manners described above, the user can quickly enter the writing mode, and the operation step of displaying the writing interface is further reduced, the fluency of writing and the efficiency of the writing operation are further improved, and the user experience is improved. In addition, since the operation for triggering the handwriting function to start includes the touch operation and the writing preparation operation of the stylus, that is, the operation is composed of multiple operations, the misoperation (or mis-triggering) caused by the operation being too simple or common can be further effectively avoided.

[0225] It should be understood that the size of the serial number of each step in the foregoing embodiments does not mean the execution sequence, and the execution sequence of each process should be determined according to its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0226] Figure 19 ​is a structural schematic diagram of a handwriting function starting device 1900 provided by an embodiment of the present application. The handwriting function starting device 1900 can be deployed in the electronic device of the foregoing embodiments, see Figure 19 The handwriting function starting device 1900 can include a first display module 1901 and a first judgment module 1902.

[0227] The first display module 1901 is configured to display a writing interface.

[0228] The first judgment module 1902 is configured to start a handwriting function if it is determined that the stylus is hovering over the display screen of the electronic device, and the handwriting function is configured to receive operation information input by the stylus in the writing interface.

[0229] In some embodiments, determining that the stylus is hovering over the display screen of the electronic device includes determining that the distance between the stylus and the display screen of the electronic device is less than or equal to a first preset distance.

[0230] In some embodiments, determining that the stylus is hovering over the display screen of the electronic device further includes determining that the distance between the stylus and the display screen of the electronic device is less than or equal to a first preset distance for a first preset time length.

[0231] In some embodiments, the distance between the stylus and the display screen of the electronic device is the distance between the stylus tip and the display screen of the electronic device.

[0232] In some embodiments, starting the handwriting function includes automatically lighting up a handwriting icon and / or automatically unfolding a handwriting toolbar.

[0233] Figure 20 is a structural schematic diagram of a handwriting function starting device 2000 provided by an embodiment of the present application. The handwriting function starting device 2000 can be deployed in the electronic device of the foregoing embodiments, see Figure 20 The handwriting function starting device 2000 can include a second display module 2001 and a second judgment module 2002.

[0234] The second display module 2001 is configured to display an interface of a first application.

[0235] The second judgment module 2002 is configured to start a handwriting function if a touch operation and a writing preparation operation of a stylus are simultaneously detected, and the handwriting function is configured to receive operation information input by the stylus in the interface of the first application.

[0236] In some embodiments, the simultaneous detection of the touch operation and the writing preparation operation of the stylus includes: detecting that a time interval between the touch operation and the writing preparation operation is less than or equal to a second preset time length.

[0237] In some embodiments, the touch operation is an operation of a user touching a display screen of the electronic device.

[0238] In some embodiments, the touch operation is an operation of a user touching a display screen of the electronic device.

[0239] In some embodiments, the writing preparation operation is an operation of the stylus hovering over a display screen of the electronic device.

[0240] Optionally, the operation of the stylus hovering over the display screen of the electronic device can include: an operation of a distance between the stylus and the display screen of the electronic device being less than or equal to a first preset distance.

[0241] Optionally, the operation of the stylus hovering over the display screen of the electronic device can include: an operation of a distance between the stylus and the display screen of the electronic device being less than or equal to the first preset distance for a time length reaching a first preset time length.

[0242] In some embodiments, the interface of the first application does not support a modification operation before the handwriting function is enabled.

[0243] In some embodiments, the distance between the stylus and the display screen of the electronic device is a distance between a stylus tip of the stylus and the display screen of the electronic device.

[0244] In some embodiments, enabling the handwriting function includes: automatically lighting up a handwriting icon and / or automatically unfolding a handwriting toolbar.

[0245] It should be noted that the division of the modules in the handwriting function starting device provided in the above embodiments is illustrative, and is merely a logical function division. In actual implementation, another division manner can be used. In addition, the function modules in each of the embodiments of the present application can be integrated in one processor, or can be physically separated, or two or more modules can be integrated into one module. The integrated module can be implemented in the form of hardware or in the form of a software function module.

[0246] The integrated module, if implemented in the form of a software function module and sold or used as an independent product, can be stored in a readable storage medium. Based on such an understanding, the technical solutions of the embodiments of the present application essentially or say the parts that make contributions to the prior art or the whole or part of the technical solutions can be embodied in the form of a software product. The software product is stored in a storage medium and includes several instructions to make a device or a processor execute all or part of the steps of the methods of the embodiments of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various media that can store program codes.

[0247] In addition, the handwriting function starting device and the handwriting function starting method provided by the above embodiments belong to the same concept, and the specific implementation process is detailed in the method embodiments. For easy reading, the device embodiments will not repeat the details of the foregoing method embodiments one by one, but it should be clear that the device in the embodiments can correspondingly implement all the contents in the foregoing method embodiments.

[0248] Based on the same inventive concept, the embodiments of the present application also provide an electronic device, including one or more processors; one or more memories and one or more computer programs; wherein the one or more computer programs are stored in the one or more memories, and the one or more computer programs include instructions, when the instructions are executed by the electronic device, the electronic device executes the method shown in the above various embodiments.

[0249] The embodiments of the present application also provide a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement the method shown in the above various embodiments.

[0250] The embodiments of the present application also provide a computer program product, which stores a computer program, and the computer program is executed by an electronic device to enable the electronic device to execute the method shown in the above various embodiments.

[0251] The embodiments of the present application also provide a chip system, which includes a processor and a memory, and the memory stores a computer program, and the computer program is executed by the processor to implement the method shown in the above various embodiments.

[0252] It should be appreciated that the processor referred to in the embodiments of the present application can be a central processing unit (CPU), and can also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic components, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor.

[0253] It should also be understood that the memory referred to in the embodiments of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a ROM, a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically EPROM (EEPROM) or a flash memory. The volatile memory can be a RAM used as an external cache. By way of example but not limitation, many forms of RAM can be used, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced SDRAM (ESDRAM), synchlink DRAM (SLDRAM) and direct rambus RAM (DR RAM).

[0254] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system, device and unit described above can refer to the corresponding process in the foregoing method embodiments, which will not be described here.

[0255] In the embodiments described above, all or part of the embodiments can be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be transferred from one website, computer, server or data center to another website, computer, server or data center through wired (for example: coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (for example: infrared, wireless, microwave, etc.) mode. The computer readable storage medium can be any available medium accessible by a computer or a data storage device such as a server, data center, etc. integrated with one or more available media. The available media can be magnetic media (for example: floppy disk, hard disk, magnetic tape), optical media (for example: digital versatile disc (DVD)), or semiconductor media (for example: solid state disk (SSD)) and the like.

[0256] It can be understood that various numerical numbers involved in the embodiments of the present application are only distinguished for convenience of description, and do not limit the scope of the embodiments of the present application. The size of the serial number of each process does not mean the order of execution, and the execution order of each process should be determined by its function and inherent logic.

[0257] In the present application, the reference to "one embodiment" or "some embodiments" and the like means that the specific features, structures or characteristics described in connection with the embodiment are included in one or more embodiments of the present application. Therefore, the statements "in one embodiment", "in some embodiments", "in other some embodiments", "in other some embodiments" and the like appearing in different places in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized. The terms "include", "contain", "have" and their variants mean "include but not limited to", unless otherwise specifically emphasized.

[0258] In the embodiments of the present application, the words "exemplary" or "for example" are used to mean "serving as an example, instance, or illustration," in any aspect. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of the present application should not be construed as preferred or advantageous over other embodiments or design schemes. Rather, the use of the words "exemplary" or "for example" is intended to present concepts in a particular manner.

[0259] Finally, it should be noted that the above-described embodiments are merely used to illustrate the technical solutions of the present application, rather than limit the technical solutions thereof. Even though the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that the technical solutions recorded in the foregoing embodiments can be modified, or some technical features thereof can be replaced equivalently, and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application.

Claims

1. A method for activating a handwriting function, characterized in that, The method is applied to an electronic device, which has a communication connection with a stylus, and the method includes: Display the writing interface; If it is determined that the stylus is hovering above the display screen of the electronic device, the handwriting function is activated. The handwriting function is used to receive operation information input by the stylus within the writing interface.

2. The handwriting function activation method according to claim 1, characterized in that, The step of determining that the stylus is suspended above the display screen of the electronic device includes: determining that the distance between the stylus and the display screen of the electronic device is less than or equal to a first preset distance.

3. The handwriting function activation method according to claim 2, characterized in that, The step of determining that the stylus is suspended above the display screen of the electronic device further includes: determining that the time for which the distance between the stylus and the display screen of the electronic device is less than or equal to the first preset distance reaches the first preset time.

4. The handwriting function activation method according to claim 2 or 3, characterized in that, The distance between the stylus and the display screen of the electronic device is the distance between the tip of the stylus and the display screen of the electronic device.

5. The handwriting function activation method according to any one of claims 1-3, characterized in that, Enabling the handwriting function includes: automatically lighting up the handwriting icon and / or automatically expanding the handwriting toolbar.

6. A method for activating a handwriting function, characterized in that, The method is applied to an electronic device, and the method includes: Display the interface of the first application; If both touch operation and stylus writing preparation operation are detected simultaneously, the handwriting function is activated. The handwriting function is used to receive operation information input by the stylus within the interface of the first application.

7. The handwriting function activation method according to claim 6, characterized in that, The simultaneous detection of touch operation and writing preparation operation of stylus includes: detecting that the time interval between the touch operation and the writing preparation operation is less than or equal to a second preset time.

8. The handwriting function activation method according to claim 6 or 7, characterized in that, The touch operation refers to the user touching the display screen of the electronic device.

9. The handwriting function activation method according to claim 8, characterized in that, The touch operation is performed by the user touching the display screen with three fingers.

10. The handwriting function activation method according to any one of claims 6-9, characterized in that, The writing preparation operation is the operation of suspending the stylus on the display screen of the electronic device.

11. The handwriting function activation method according to claim 10, characterized in that, The operation of the stylus suspending on the display screen of the electronic device includes the operation of the distance between the stylus and the display screen of the electronic device being less than or equal to a first preset distance.

12. The handwriting function activation method according to claim 11, characterized in that, The operation of the stylus hovering over the display screen of the electronic device also includes the operation of the distance between the stylus and the display screen of the electronic device being less than or equal to the first preset distance for a duration of a first preset duration.

13. The handwriting function activation method according to any one of claims 6-12, characterized in that, The interface of the first application does not support modification before the handwriting function is enabled.

14. A handwriting function activation device, characterized in that, The device includes: The first display module is used to display the writing interface; The first judgment module is used to activate the handwriting function if it is determined that the stylus is suspended above the display screen of the electronic device. The handwriting function is used to receive operation information input by the stylus in the writing interface.

15. A handwriting function activation device, characterized in that, The device includes: The second display module is used to display the interface of the first application; The second judgment module is used to enable the handwriting function if both touch operation and stylus writing preparation operation are detected simultaneously. The handwriting function is used to receive operation information input by the stylus within the interface of the first application.

16. An electronic device, characterized in that, The electronic device includes a processor for running a computer program stored in a memory to implement the method as claimed in any one of claims 1 to 13.

17. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the method as described in any one of claims 1 to 13.

18. A chip system, characterized in that, The chip system includes a processor and a memory, the memory storing a computer program that, when executed by the processor, implements the method as described in any one of claims 1 to 13.