Device operation method and apparatus, electronic device, and computer readable medium
Patent Information
- Application Number
- PCT/CN2026/077974
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2025-02-20
- Filing Date
- 2026-02-09
- Publication Date
- 2026-08-27
Smart Images

Figure CN2026077974_27082026_PF_FP_ABST
Abstract
Description
Equipment operation methods, devices, electronic equipment and computer-readable media
[0001] Cross-reference of related applications
[0002] This application claims priority to Chinese application No. CN 202510191753.3, filed on February 20, 2025, the entire contents of which are incorporated herein by reference for all purposes. Technical Field
[0003] This application relates to the field of mobile terminal technology, and more specifically, to a device operation method, apparatus, electronic device, and computer-readable medium. Background Technology
[0004] Currently, users often need to quickly record information when using their mobile phones, such as jotting down inspirations, making voice memos, or scheduling events. However, current mobile phones lack a convenient way to quickly trigger this recording function. Typically, users need to open specific applications (such as voice memos, notepad, calendar, etc.), manually enter the information, and this process is not only time-consuming but also easily interrupts the user experience. This multi-step operation is particularly cumbersome when users need to quickly capture information. Therefore, there is an urgent need for a recording function that can be triggered quickly and easily at any time. Summary of the Invention
[0005] This application proposes a method of operating a device, an apparatus, an electronic device, and a computer-readable medium to improve the above-mentioned deficiencies.
[0006] In a first aspect, this application provides a device operation method applied to an electronic device, wherein a target button is provided on the casing of the electronic device, and the method includes: detecting a trigger operation acting on the target button; and triggering a content memory function based on the trigger operation, wherein the content memory function is used to analyze and store information.
[0007] Secondly, this application also provides a device operating apparatus for an electronic device, wherein a target button is provided on the housing of the electronic device, and the apparatus includes a detection unit and a triggering unit. The detection unit is used to detect a trigger operation applied to the target button. The triggering unit is used to trigger a content memory function based on the trigger operation, wherein the content memory function is used to analyze and store information.
[0008] Thirdly, this application also provides an electronic device, including: a target button disposed on the housing of the electronic device; one or more processors; a memory; one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, and the one or more application programs are configured to perform the above-described method.
[0009] Fourthly, this application also provides a computer-readable medium storing processor-executable program code that, when executed by the processor, causes the processor to perform the above-described method. Attached Figure Description
[0010] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0011] Figure 1 shows a schematic diagram of an electronic device provided in an embodiment of this application;
[0012] Figure 2 shows a flowchart of a device operation method provided in an embodiment of this application;
[0013] Figure 3 shows a flowchart of a device operation method provided in another embodiment of this application;
[0014] Figure 4 shows a flowchart of a device operation method provided in another embodiment of this application;
[0015] Figure 5 shows a schematic diagram of the operation of a target button according to an embodiment of this application;
[0016] Figure 6 shows an operation diagram of a target button provided in another embodiment of this application;
[0017] Figure 7 shows an operation diagram of a target button according to another embodiment of this application;
[0018] Figure 8 shows an operation diagram of a target button provided in another embodiment of this application;
[0019] Figure 9 shows a flowchart of a device operation method provided in another embodiment of this application;
[0020] Figure 10 shows a schematic diagram of an interface of an electronic device provided in an embodiment of this application;
[0021] Figure 11 shows a flowchart of a device operation method provided in yet another embodiment of this application;
[0022] Figure 12 shows another schematic diagram of the interface of the electronic device provided in an embodiment of this application;
[0023] Figure 13 shows a block diagram of a device operation apparatus provided in an embodiment of this application;
[0024] Figure 14 shows a structural block diagram of the electronic device provided in an embodiment of this application;
[0025] Figure 15 illustrates a storage unit according to an embodiment of the present application for storing or carrying program code implementing the method according to an embodiment of the present application. Detailed Implementation
[0026] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, and not all of them. The components of the embodiments of the present application described and shown in the accompanying drawings can generally be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely represents selected embodiments of the present application. All other embodiments obtained by those skilled in the art based on the embodiments of the present application without inventive effort are within the scope of protection of the present application.
[0027] It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. Furthermore, in the description of this application, terms such as "first," "second," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0028] Currently, when using mobile phones, users often encounter the need to quickly record content, such as jotting down inspirations, voice memos, or schedules. For example, after purchasing a train or plane ticket for a specific trip within an application, a user might need to record that trip. Alternatively, a user might need to quickly jot down voice messages, such as inspirations, voicemails, or meeting minutes. Another example is when browsing an article on a webpage, where the user might want to download and save it, or when the page they are browsing contains content that interests them.
[0029] However, the inventors discovered during their research that current mobile phones lack a convenient way to quickly trigger the recording function. Typically, users need to open specific applications (such as voice memos, notepad, calendar, etc.), and then manually enter the information. This process is not only time-consuming but also easily interrupts the user experience. This multi-step operation is particularly cumbersome when users need to quickly capture information.
[0030] The embodiments of this application provide a device operation method applied to an electronic device, wherein a target button is provided on the housing of the electronic device, and the method includes: detecting a trigger operation acting on the target button; and triggering a content memory function based on the trigger operation, wherein the content memory function is used to analyze and store information.
[0031] According to an embodiment of this application, triggering the content memory function based on the triggering operation includes: obtaining the operation duration of the triggering operation; and triggering the content memory function based on the operation duration.
[0032] According to the embodiments of this application, the content memory includes multiple types of memory functions, and triggering the content memory function based on the operation duration includes: determining a target memory function corresponding to the operation duration among the multiple types of memory functions; and triggering the target memory function.
[0033] According to an embodiment of this application, the multiple types of memory functions include a first memory function and a second memory function. Determining the target memory function corresponding to the operation duration among the multiple types of memory functions includes: if the operation duration is between a first duration threshold and a second duration threshold and the triggering operation ends, then the first memory function is determined as the target memory function, wherein the first duration threshold is less than the second duration threshold; if the operation duration is greater than the second duration threshold, then the second memory function is determined as the target memory function.
[0034] According to an embodiment of this application, the first memory function is a screen memory function, used to determine and store relevant content based on the content displayed on the screen of the electronic device.
[0035] According to an embodiment of this application, triggering the target memory function includes: identifying the content currently displayed on the screen; if specified content is identified, determining the source content corresponding to the specified content based on the specified content; and storing the source content as related content corresponding to the specified content.
[0036] According to an embodiment of this application, the second memory function is a voice memory function, and triggering the target memory function includes: if the target memory function is a voice memory function, performing a voice acquisition operation during the time period when the target button is continuously input to trigger the operation; and storing the voice content obtained by the voice acquisition operation and the corresponding text content when the trigger operation on the target button is detected to have ended.
[0037] According to an embodiment of this application, after performing the voice acquisition operation, the method further includes: when the voice memory function is enabled, displaying preset content on the screen, wherein the preset content is the waveform pattern of the voice data currently acquired by the electronic device.
[0038] According to an embodiment of this application, after performing the voice acquisition operation, the method further includes: when the voice memory function is enabled, displaying the text content corresponding to the voice acquired by the electronic device on the screen.
[0039] According to an embodiment of this application, it further includes: triggering a first prompt message when the operation duration is detected to have reached a second duration threshold, wherein the first prompt message is used to indicate that the operation duration has reached the trigger duration range of the second memory function.
[0040] According to an embodiment of this application, after triggering the content memory function based on the triggering operation, the method further includes: displaying an information editing interface of the target application, wherein the information editing interface includes memory information obtained through the content memory function; and storing the memory information in the target application upon receiving a confirmation operation in the information editing interface.
[0041] According to an embodiment of this application, before storing the memory information into the target application upon receiving a confirmation operation in the information editing interface, the method further includes: if the memory information does not contain at least some of the information to be filled in the information editing interface, displaying a second prompt in the information editing interface, the second prompt being used to prompt for supplementation of the memory information; upon receiving an information input operation in the information editing interface, displaying the memory information after supplementation in the information editing interface; and storing the memory information into the target application upon receiving a confirmation operation in the information editing interface, which includes: upon receiving a confirmation operation in the information editing interface, storing the memory information after supplementation into the target application.
[0042] According to the embodiments of this application, after triggering the content memory function based on the triggering operation, the method further includes: displaying an information input interface; if there is a keyword in the information input interface that matches the memory information obtained through the content memory function, then a third prompt message is displayed in the information input interface, the third prompt message being used to prompt the memory information to be filled into the information input interface; upon receiving a confirmation operation for the third prompt message, the memory information is filled into the information input interface.
[0043] According to an embodiment of this application, detecting a trigger operation applied to the target button includes: detecting a trigger operation applied to the target button when the electronic device meets the target condition.
[0044] According to an embodiment of this application, detecting a trigger operation applied to the target button when the electronic device meets the target condition includes: acquiring the device state of the electronic device; if the device state is a specified state, detecting a trigger operation applied to the target button, wherein the specified state includes at least one of an unlocked state, a non-screen-off state, an authorized state, and a working state.
[0045] According to an embodiment of this application, detecting a trigger operation applied to the target button when the electronic device meets the target condition includes: acquiring the system resources of the electronic device, wherein the system resources include at least one of storage space and data processing capability; and detecting a trigger operation applied to the target button if the system resources meet the usage conditions.
[0046] According to an embodiment of this application, detecting the trigger operation applied to the target button when the electronic device meets the target condition includes: if the current usage scenario of the electronic device is not a preset scenario, detecting the trigger operation applied to the target button.
[0047] Therefore, in order to overcome the above-mentioned defects and provide a recording function that can be triggered quickly and at any time, this application provides a device operation method. This method is applied to an electronic device, which may be a smartphone, tablet computer, laptop computer, or other such device. As shown in Figure 1, the electronic device 100 includes an electronic body, which includes a housing 102 and a screen 103 disposed on the housing 102. The housing 102 includes a front panel, a back cover, and a frame. The frame is used to connect the front panel and the back cover. The screen 103 is disposed on the front panel.
[0048] The electronic device also includes a target button 101, which is disposed on the housing 102 of the electronic device. Exemplarily, the target button 101 can be disposed on the back cover or the edge of the electronic device; there is no limitation in this regard. As one implementation, the target button 101 can be disposed on the side edge of the housing of the electronic device. Specifically, the edge of the housing may include a bottom frame, a top frame, a first side frame, and a second side frame. Typically, the camera of the electronic device is located near the top frame, and the device interface of the electronic device is located on the bottom frame. This device interface can be used for charging the electronic device and transmitting data, etc. In this embodiment, the target button 101 can be disposed on the first side frame or the second side frame.
[0049] In one implementation, the target button can detect touch gestures input by the user, which may include at least one of pressing gestures and swiping gestures, wherein pressing gestures include single-click gestures and long-press gestures.
[0050] For example, the target button can be equipped with a pressure sensor (such as a force-sensitive resistor) to sense the force applied when the button is pressed. Based on the change in pressure, the operating system of the electronic device can determine whether the user is pressing the target button lightly (single-click) or pressing it firmly (continuous, greater pressure).
[0051] Additionally, if it's necessary to detect the user's swipe gestures input to the target button, the target button also needs to have touch sensing capabilities. For example, the target button can be a physical button or sensor with integrated touch sensing, such as a capacitive touch sensor. Of course, the capacitive touch sensor can also detect the user's single-click and long-press operations. Specifically, the capacitive touch sensor can detect touch events, such as touch start, sustained touch, and touch end. Therefore, single-click and long-press operations can be distinguished by combining the duration of the touch event. When the touch sensor detects a touch event (such as sensing a change in electric field), the system starts a timer. If the touch duration is very short (usually less than 0.5 seconds), this operation can be identified as a single click. When the sensor detects a touch and the touch duration exceeds a certain threshold (such as 2 seconds), it can be considered a long-press operation. The system can determine whether the long-press condition is met by detecting the touch start time and comparing the touch end time.
[0052] It should be noted that the target button can be the volume button or power button of an electronic device, or it can be a physical button other than the volume button and power button; there is no limitation on this.
[0053] Please refer to Figure 2, which illustrates a device operation method provided by an embodiment of this application. The method is applied to the above-mentioned electronic device and includes S201 and S202.
[0054] S201: A trigger operation applied to the target button is detected.
[0055] As one implementation method, the electronic device can detect trigger operations on a target button in real time. Alternatively, target conditions can be set; the electronic device detects trigger operations on the target button only when these conditions are met. In other words, if the target conditions are not met, the electronic device cannot detect the trigger operation on the target button, meaning the user cannot trigger the content memory function by pressing the target button. The memory function is used to analyze and store information. Specifically, when the content memory function is activated, the electronic device can perform in-depth analysis of the information to be remembered and store it for later retrieval. In other words, the content memory function not only stores information but, more importantly, analyzes and understands it before storing it. This process ensures the validity and retrieval of the information, enabling quick and accurate retrieval when needed. Optionally, the information to be remembered may include user-inputted voice information, user-inputted text information, interface information, etc., without limitation.
[0056] As one implementation, the electronic device satisfying the target condition may include:
[0057] (1) Obtain the device status of the electronic device. If the device status is a specified status, the electronic device is determined to meet the target conditions. The specified status may include at least one of the following: unlocked status, non-screen-off status, authorized status, and working status. In the unlocked status, the user is allowed to operate the target button. The purpose is that the user needs to unlock the device to start the recording function, avoiding accidental operation when the device is locked. The non-screen-off status means that the screen of the electronic device is not black. The device screen needs to be in a non-black screen state to perform screen recording. If the device is in a sleep or screen-off state, the screen needs to be woken up first. The authorized status means that the electronic device currently has the service corresponding to the content memory. For example, for screen memory, the corresponding service is the screenshot or screen recording function, and for voice memory, the corresponding service is the microphone service. The working status means that the electronic device is in a normal working state. The electronic device is not in low power mode or the system is not faulty, ensuring that the recording function can be started smoothly.
[0058] (2) Obtain the system resources of the electronic device. If the system resources meet the usage conditions, the electronic device is determined to meet the target conditions. System resources may include at least one of the electronic device's storage space and data processing capabilities. Regarding storage space, the electronic device needs sufficient storage space to store screen and voice recording data. If the storage space is insufficient, a prompt should be given and the user should be asked to release space. Sufficient storage space can be determined by ensuring that the remaining storage space of the electronic device is greater than a specified threshold. The specified threshold can be set based on actual usage needs and is not limited thereto. Data processing capabilities may include processor and memory resources. Specifically, processor resources may include at least one of CPU utilization, processor frequency, and information on available cores. Information on available cores may include the type of core currently not executing tasks, where the processing power of large cores is higher than that of small cores. Therefore, the processor resources of the electronic device can be determined through information on CPU utilization, processor frequency, and available cores, thereby determining the data processing capabilities of the electronic device. The implementation method for ensuring that system resources meet the usage conditions is that the system resources are greater than a preset lower limit.
[0059] (3) Obtain the current usage scenario of the electronic device. If the usage scenario is not a preset scenario, the electronic device is deemed to meet the target conditions. The preset scenario can be a pre-defined scenario unsuitable for content memory execution. If the content memory is screen memory, i.e., recording the content displayed on the screen, the preset scenario can include scenarios where private data is displayed on the screen. Specifically, determine the application running on the screen of the electronic device. If the application is a preset application, the usage scenario is determined to be a preset scenario. The preset application can be a pre-defined application that needs to prevent privacy leaks, such as security, banking, or payment applications. Additionally, the preset scenario can also include a preset time period. That is, if the electronic device is currently within a preset time period, the usage scenario of the electronic device is determined to be a preset scenario. The preset time period can be a user's rest period. Content memory is not executed during the user's rest period to avoid accidental operation. The user's rest period can be obtained based on statistics of the user's usage operations, for example, by monitoring the type, duration, and frequency of the user's mobile phone applications. If the user does not open any applications or perform other operations within a certain time period, this time period can generally be considered a rest period. For example, if users don't interact with their phones for an extended period, don't browse social media, play games, or watch videos, it might indicate they are taking a break. Another example is tracking user unlocking behavior. If a user doesn't unlock their phone for a period of time, it can often be inferred that this period is a rest period.
[0060] S202: Based on the aforementioned triggering operation, the content memory function is triggered.
[0061] As one implementation, the content memory function may include at least one of screen memory and voice memory. Screen memory refers to determining and storing relevant content based on the content displayed on the screen of the electronic device. Specifically, it may include recognizing the content displayed on the screen, extracting key information, storing the key information, and further, obtaining and storing the corresponding content based on the key information.
[0062] For example, image recognition, OCR technology, or natural language processing techniques are used to analyze and recognize the content currently displayed on the screen. This recognition process can identify images, text, videos, or multimedia content; for example, it can identify text, images, videos, or audio displayed on the screen. Text extraction refers to using OCR technology to extract text information from the text content displayed on the screen. This text information may include key information such as contact information, dates, prices, and addresses. Image recognition refers to using image recognition technology to extract key information such as objects, logos, and expressions from images. For example, if a product image is displayed on the screen, the system can identify the product, obtain its detailed information (such as brand, price, etc.), and store it. Video recognition refers to the ability of an electronic device to extract key video frames, analyze the content within the frames, and extract specific objects or scenes when video clips or multimedia content are displayed on the screen. It can also identify the video file through high-resolution video frames, for example, determining the video file's name and other relevant information to facilitate downloading the video file. Audio recognition refers to the ability of an electronic device to extract key information corresponding to audio content (e.g., the audio playback interface, audio name, etc.) if the screen displays audio content. This key information can include the audio name and other relevant information to facilitate downloading the audio content. Alternatively, the key information can be determined by recognizing audio data played through a speaker.
[0063] Furthermore, the identified information can be used to further determine the relevant content to be processed. Specifically, after identifying specified content, the corresponding source content can be determined based on that specified content. This source content serves as the relevant content corresponding to the specified content. The specified content can include video screenshots, audio descriptions, and text fragments. For example, the source content corresponding to a video screenshot can be a video file; the audio description can be the cover art or name of an audio file, and its corresponding source content can be the audio file; and the text fragment can be a portion of the displayed text, and its corresponding source content is the text file. For instance, if the screen displays a video screenshot, the electronic device can analyze the screenshot's information, such as the video's playback time, source, or title. Based on this information, the system can automatically retrieve and download the video file, storing it on the device or in cloud storage. If the screen displays audio-related content (such as song covers or podcast episodes), the electronic device can access an audio platform based on the displayed content (such as song titles or podcast titles), download the audio file or program recording, and store it locally or in the cloud. If the current screen displays a webpage, the electronic device can extract text, images, videos, and other information from the webpage and store the webpage content or save it as a PDF, image, or HTML format. In addition, electronic devices can also crawl the metadata of a webpage based on its URL, or extract keywords, titles, and paragraph information for storage and classification.
[0064] It should be noted that the screen memory can be stored by analyzing all the content displayed on the screen, or it can be stored based on the content displayed in a certain area of the screen. That is, it can be the overall memory of the entire screen display area or the memory of a part of the screen display area, and there is no limitation on this.
[0065] In addition to screen memory, content memory can also include voice memory. The function of voice memory is to acquire the voice collected by the electronic device, perform a storage operation on the voice, which may include storing the voice data or recognizing the text corresponding to the voice and storing the text and voice data accordingly.
[0066] It is understood that the triggering operation can include short press, long press, double tap, swipe, etc. Based on this triggering operation, the implementation method for triggering the content memory function can be to determine whether the triggering operation is a specified operation; if it is, then the content memory function is triggered. In this implementation, the content memory can be a pre-set memory method, such as screen memory or voice memory. When it is determined that the user's triggering operation for the target key is a specified operation, the content memory function is executed. If there are multiple content memory functions, they can refer to different specified operations, each corresponding to one content memory function. The specified operation to which the triggering operation belongs is determined, the content memory corresponding to that specified operation is taken as the target content memory, and then the target content memory function is triggered.
[0067] As another implementation method, the content memory function can also be triggered based on the duration of the triggering operation. For details, please refer to the following embodiments.
[0068] It should be noted that triggering the content memory function can be understood as starting the corresponding process for content memory. That is, if the corresponding process is closed or in a low-power state, waking it up allows the content memory function to be activated within the electronic device, enabling the execution of the corresponding operation. It can be understood that after the content memory function is activated, it can be executed directly, or it can be executed only after the electronic device meets the execution conditions. Specifically, if the content memory function is a screen memory function, triggering it can be understood as executing the screen memory function. That is, upon detecting a trigger operation on the target button, and if the trigger operation meets the conditions for triggering the screen memory function, the screen memory operation is executed directly, i.e., acquiring the screen display content and performing the screen memory operation based on the displayed content. Alternatively, the screen memory operation can be executed only after the electronic device meets the corresponding execution conditions. These conditions may include the electronic device's screen being on and the displayed content meeting the memory requirements, for example, not being private or other content unsuitable for memory.
[0069] If the content memory function activated based on the trigger operation is a voice memory function, then the voice memory function is woken up. Then, it is checked whether the voice content input by the user is obtained. If the voice input by the user is detected, the voice memory operation is executed. That is, if the voice content is detected, it is determined that the electronic device meets the execution conditions.
[0070] In other words, triggering the content memory function can be understood as at least activating the content memory function of the electronic device, and then, under the condition that the execution conditions are met, performing the corresponding content memory operation.
[0071] Therefore, in this embodiment of the application, the user can quickly activate the content memory function by triggering the target button, so as to perform the corresponding content memory operation, which improves the convenience of the content memory triggering process and reduces the user's operation complexity.
[0072] Please refer to Figure 3, which illustrates a device operation method provided by an embodiment of this application. The method is applied to the above-mentioned electronic device and includes S301 and S302.
[0073] S301: A trigger operation applied to the target button was detected.
[0074] S302: Obtain the operation duration of the triggering operation.
[0075] After detecting a user input trigger action, the duration of the trigger action is recorded. In one implementation, the trigger action may include touch, press, or swipe; therefore, the duration of the trigger action may include touch duration, press duration, or swipe duration, without limitation.
[0076] In the embodiments of this application, the triggering operation can be a pressing operation, that is, the user can press the target button to input the triggering operation. Based on the different pressing durations, the pressing operation can be divided into short press and long press operations, and the long press operation can be determined into long press operations of different durations based on different durations.
[0077] S303: Based on the operation duration, trigger the content memory function.
[0078] As one implementation method, if the content memory is a type of memory function, then based on the operation duration, the implementation method for triggering the content memory function can be that if the operation duration is greater than a specified duration or within a preset duration range, the content memory function is triggered.
[0079] As another implementation, if the content memory includes multiple types of memory functions, then the implementation method for triggering the content memory function based on the operation duration may be to determine the target memory function corresponding to the operation duration among the multiple types of memory functions; and trigger the target memory function.
[0080] For example, the preset duration range corresponding to different content can be determined in advance, as shown in Table 1.
[0081] Table 1
[0082] In Table 1, Memory 1, Memory 2, and Memory 3 represent different types of memory functions. For example, Memory 1 is camera memory, Memory 2 is screen memory, and Memory 3 is voice memory. The meanings of screen memory and voice memory are explained above and will not be repeated here. Camera memory functions by allowing the user to take a picture of a target object. The electronic device automatically identifies the photographed object, retrieves its corresponding content, and stores it. For example, if a user takes a picture of a poster, the electronic device can automatically identify the poster's content and may or may not store the image.
[0083] It can be seen that different types of content memory correspond to different preset duration ranges. When a press operation is detected on the target button, the duration of the press operation is accumulated. When the press operation disappears, the accumulated duration of the press operation is obtained as the operation duration. The preset duration range that the operation duration matches is determined, that is, the preset duration range into which the operation duration falls is determined. The content memory function corresponding to the preset duration range is taken as the target memory function, and then the target memory function is triggered.
[0084] As one implementation, the multiple types of memory functions include a first memory function and a second memory function. In this embodiment, the trigger operation on the target button can be used to trigger either the first memory function or the second memory function; that is, different operation durations can trigger either the first memory function or the second memory function. Therefore, among the multiple types of memory functions, the implementation of determining the target memory function corresponding to the operation duration may include: if the operation duration is between a first duration threshold and a second duration threshold and the trigger operation ends, then the first memory function is taken as the target memory function, wherein the first duration threshold is less than the second duration threshold; if the operation duration is greater than the second duration threshold, then the second memory function is taken as the target memory function.
[0085] In other words, two duration ranges can be set, namely the first duration range and the second duration range. The first duration range is between the first duration threshold and the second duration threshold, that is, greater than or equal to the first duration threshold and less than or equal to the second duration threshold. The second duration range is greater than the second duration threshold.
[0086] As can be seen, if we want the operation duration to fall within the first duration range, the operation must be canceled if its duration exceeds the first duration threshold but is less than the second duration threshold. Taking a press operation as an example, if the user presses the target button, the press is canceled if the user releases the button before exceeding the first duration threshold and reaching the second duration threshold. However, if we want the operation duration to fall within the second duration range, we can determine that the operation duration exceeds the second duration threshold regardless of whether the user releases the button.
[0087] Therefore, in this embodiment, a press operation with a duration between the first and second duration thresholds can be named a short press, and a press operation with a duration greater than the second duration threshold can be named a long press. Thus, a short press can trigger the first memory function, and a long press can trigger the second memory function. This allows users to trigger content memory functions not only by pressing the target button, but also by using press operations of different durations to trigger different content memory functions.
[0088] In other words, the second duration threshold can be seen as the switching threshold between the first and second memory functions. If the triggering operation ends and the statistical operation duration is less than the second duration threshold, the first memory function is triggered. If the second duration threshold is exceeded, the second memory function can be triggered regardless of whether the triggering operation has ended. In this embodiment, the first duration threshold can be 500ms, meaning that the first memory function can be triggered if the short press lasts for 500ms or if the short press duration exceeds 500ms but does not exceed the second duration threshold.
[0089] As one implementation method, to facilitate user awareness of whether the operation duration has reached a second duration threshold, allowing the user to determine whether the current operation duration triggers the first memory function or the second memory function, in this embodiment, a first prompt message can be triggered when the operation duration reaches the second duration threshold. That is, the first prompt message indicates that the operation duration has reached the trigger duration range of the second memory function. After receiving the first prompt message, the user can determine that the operation duration has reached the second duration threshold, and can then trigger the second memory function. Conversely, if the user does not receive the first prompt message, but the operation duration exceeds the first duration threshold, it can be determined that the first memory function can be triggered. The purpose of this first duration threshold is to serve as the minimum duration for triggering the first memory function.
[0090] In this embodiment, the first prompt information can be at least one of voice prompt, vibration prompt, and content prompt on the screen. As one implementation, the first prompt information can include vibration prompt and content prompt. That is, when the operation duration is detected to have reached a second duration threshold, the electronic device vibrates and displays preset content on the screen. This preset content informs the user that the current press operation can trigger a second memory function. For example, the preset content can include preset text, such as "Approaching XXXX," where XXXX is a name determined based on the second memory function.
[0091] Therefore, when a user presses and holds the target button, they can determine whether the current operation duration has reached the second duration threshold based on the first prompt message. It can be understood that reaching the second duration threshold can mean that the operation duration is equal to the second duration threshold, or that the operation duration is close to the second duration threshold. For example, it could mean that the difference between the operation duration and the second duration threshold is less than a specified value, which can be a very small value and is not limited here.
[0092] As one implementation method, as shown in FIG4, this application embodiment provides a device operation method, which is applied to the above-mentioned electronic device, and the method includes: S401 to S408.
[0093] S401: A trigger operation applied to the target button was detected.
[0094] S402: Obtain the operation duration of the triggering operation.
[0095] S403: Determine whether the operation duration is greater than or equal to the first duration threshold.
[0096] If the operation duration is greater than or equal to the first duration threshold, then execute S404. If the operation duration is not greater than or equal to the first duration threshold, that is, the operation duration is less than the first duration threshold, then return to execute S402 and continue to count the operation duration.
[0097] S404: Determine whether the operation duration is greater than the second duration threshold.
[0098] If the operation duration is greater than or equal to the first duration threshold, it indicates that the operation duration has reached the minimum value that can trigger the first memory function. At this time, it is necessary to determine whether the user wants to trigger the first memory function or the second memory function. Therefore, it is determined whether the operation duration is greater than the second duration threshold. If the operation duration is less than or equal to the second duration threshold, then S406 is executed, that is, it is determined whether the triggering operation has ended. If the operation duration is greater than the second duration threshold, then S405 is executed.
[0099] S405: Take the second memory function as the target memory function.
[0100] If the judgment result of S404 is yes, it means that the operation duration is greater than the second duration threshold, and the second memory function is triggered.
[0101] S406: Determine whether the triggering operation has ended.
[0102] If the operation duration is less than or equal to the second duration threshold, it is necessary to determine whether to trigger the first memory function based on whether the trigger operation has ended. As shown in Figure 4, if the trigger operation has ended, S407 is executed; if the trigger operation has not ended, it returns to S402 and continues to count the operation duration.
[0103] S407: Take the first memory function as the target memory function.
[0104] S408: Trigger the target memory function.
[0105] In one implementation, the triggering operation is a press operation, the first memory function is a screen memory function, and the second memory function is a voice memory function. The first duration threshold is 500ms.
[0106] As shown in Figure 5, the first duration threshold is 500ms, and the second duration threshold is Xms, where X is a preset value greater than 500. This value can be set based on actual usage needs; for example, it could be 1000ms (1 second), in which case X would be 1000. As one implementation, the "press and hold for 500ms-Xms, release" message in Figure 5 can be displayed on the screen of the electronic device when the user presses the target button. For example, the prompt can be displayed in the display area corresponding to the target button. The electronic device detects that the press operation duration is between 500ms and Xms and then disappears. In other words, the electronic device detects that the press operation has ended, and the calculated operation duration is between 500ms and Xms, thus triggering screen memory. For the user, maintaining a press on the target button for a duration between 500ms and Xms triggers screen memory. As another implementation, when screen memory is triggered, the electronic device can prompt the user that a screen memory operation is currently being performed. The prompt can be made via voice, text, etc., without limitation. Therefore, by briefly pressing the target button, the user can trigger screen memory, recording the current screen interface or page. Of course, this prompt can also be hidden; there is no restriction on this.
[0107] As shown in Figure 6, if the user continuously presses the target button, and the press duration reaches Xms, which is the second duration threshold, the electronic device triggers a first prompt message, as shown in Figure 6. This first prompt message includes a vibration alert and a content prompt. The content prompt is displayed on the screen, as shown in Figure 6, stating "Entering voice recording mode soon." This first prompt message informs the user that continuing to press the target button triggers the voice memory function. Similarly, in Figure 6, a prompt message can be displayed on the screen. Compared to Figure 5, this prompt message has changed; it informs the user of the required duration to trigger voice memory. Of course, this prompt message can also be omitted; there is no limitation on this.
[0108] As shown in Figure 7, and in conjunction with Figure 6, when the user continuously presses the target button for a duration of X ms, the electronic device outputs a first prompt message. If the user continues to press the target button, and the operation duration exceeds the second duration threshold, the voice memory function can be triggered. As shown in Figure 7, when the voice memory function is enabled, preset content 701 is displayed on the screen. This preset content can be the waveform pattern of the voice data currently collected by the electronic device. Through this preset content 701, the user can know that the electronic device is performing voice recording. Therefore, the user can input voice content while maintaining the continuous triggering operation of the target button, so that the user can record the voice.
[0109] In one implementation, the display condition for the preset content 701 can be that the duration of the user's trigger operation on the target button exceeds a second duration threshold, and the time difference between the user's operation and the second duration threshold is greater than or equal to a specified value, such as 1 second. That is, when the user's press duration on the target button exceeds X ms and is greater than 1 second, the electronic device starts recording voice, thereby informing the user that voice memory has been activated through the display of the preset content 701. Alternatively, the electronic device can activate voice recording when it determines that the user's press duration on the target button exceeds X ms and is greater than 1 second, but the preset content 701 is not displayed until after the user's voice input is detected; this is not limited.
[0110] Furthermore, if the aforementioned target memory function is a voice memory function, then during the period when the target button is continuously input and triggered, a voice acquisition operation is performed. Upon detection that the trigger operation on the target button has ended, the voice content obtained from the voice acquisition operation and its corresponding text content are stored accordingly. In other words, if the operation duration exceeds a second duration threshold and the trigger operation has not ended—that is, if the user continuously triggers the target button—the electronic device continuously performs the voice acquisition operation and continuously acquires voice data. Then, when the user ends the trigger operation on the target button, all the voice data obtained in this voice acquisition operation is stored as the voice content obtained from the voice acquisition operation, or the voice content and its corresponding text content are stored accordingly.
[0111] As shown in Figure 8, when the user releases their hand, thus canceling the press operation on the target button, the electronic device sends the voice content and its corresponding text content to a designated application. The designated application then records the voice content and its corresponding text content; that is, the designated application completes the storage operation of the voice content and its corresponding text content. The designated application can be a pre-defined application used to store the recorded content.
[0112] It is understandable that the content to be stored obtained from content memory can be stored by a designated application. Of course, the designated application can also perform specific operations of content memory. Specifically, when screen memory is triggered, the designated application performs content memory operations; when voice memory is triggered, the designated application performs voice memory operations. Furthermore, when performing these content memory operations, the designated application can run in the background or in the foreground.
[0113] As one implementation method, referring to Figure 7, when the user inputs voice and the electronic device records the voice, the corresponding text content can be displayed on the screen in real time. When the user cancels the triggering operation of the target button, i.e., when the button is released as shown in Figure 8, the user can confirm the text content corresponding to the voice. After the electronic device detects the user's confirmation command, it sends the voice content and its corresponding text content to the designated application. Of course, the user can also modify the text content during the confirmation process, and this is not limited.
[0114] Therefore, in this embodiment, the user can perform short-press and long-press operations on the target button. A short press triggers screen memory, and a long press triggers voice memory. At the critical point between the two functions, i.e., the second duration threshold, a first prompt informs the user that after entering voice memory, if the user continues to long-press the target button, and the operation duration reaches the third duration threshold, the electronic device executes the voice memory operation. The third duration threshold is greater than the second duration threshold, and the difference between the third and second duration thresholds is greater than or equal to the aforementioned specified value. Therefore, it can be understood that the electronic device activates the voice memory function during the time period from the second to the third duration threshold, and then begins executing the voice memory function at the third duration threshold. This time period not only provides the electronic device with time to prepare for the voice memory function but also allows the user a certain preparation time after perceiving the first prompt.
[0115] For example, by determining whether the user releases the key after 500ms to 1s, the system can distinguish between entering screen memory and voice memory. If the key is released within 1s, it enters screen memory; if it is not released within 1s, it enters voice memory. The voice is converted into text in real time, and the voice memory is automatically sent and stored after a long press and release.
[0116] It should be noted that, in the embodiments of this application, the content memory function triggered by the target button is not limited to the application running on the screen of the electronic device. In other words, the operation of triggering the content memory function by the target button is a system-level operation, which has a higher priority than individual applications.
[0117] Please refer to Figure 9, which illustrates a device operation method provided by an embodiment of this application. The method is applied to the above-mentioned electronic device and includes steps S901 to S904.
[0118] S901: A trigger operation applied to the target button has been detected.
[0119] S902: Based on the aforementioned triggering operation, the content memory function is triggered.
[0120] The implementation methods of S901 and S902 can be referred to the foregoing content, and will not be repeated here.
[0121] S903: Display the information editing interface of the target application, wherein the information editing interface includes the memory information obtained through the content memory function.
[0122] As mentioned above, the content memory function can analyze and store information. This information may include the content displayed on the screen or the voice content input by the user. In other words, the user can trigger the content memory function such as screen memory or voice memory by triggering the target button. As mentioned above, at least one of the key information or related content corresponding to the key information extracted from the content displayed on the screen by the screen memory function is used as the memory information corresponding to the screen memory. Similarly, at least one of the voice content obtained by the voice memory function and the text content corresponding to the voice content can be used as the memory information corresponding to the voice memory. In the embodiments of this application, the specific content of the memory information is not limited. It may be the content obtained by analyzing and extracting information (e.g., screen display content, voice, etc.) when the content memory function is executed.
[0123] In other words, the memory information can be structured information obtained through memory functions and then processed. Structured information is a form of data organization in which data is organized into a predefined format. Structured information can include explicit fields or columns, as well as corresponding data types. This data organization method makes data storage, retrieval, and analysis more efficient and accurate. Optionally, this memory information can be obtained by processing user-inputted voice information, user-inputted text information, or interface information corresponding to the interface through memory functions, etc., without limitation.
[0124] As one implementation, after acquiring the memory information, the electronic device can also display the information editing interface of the target application, and this information editing interface includes the acquired memory information. That is, the electronic device can switch the displayed interface to the information editing interface of the target application, and can fill in the memory information into the application's information editing interface according to the format in which the memory information is stored in the target application. This allows the user to further confirm, modify, and perform other operations on the memory information stored in the target application. Here, the target application is the application that matches the memory information and is used to record and apply the memory information.
[0125] For example, as shown in Figure 10, the memory information is to-do information. For instance, when the electronic device displays specified content, the specified content is related to the to-do information and can be a detailed description of the to-do information. For example, the specified content may include reminders, notifications, and task information (e.g., travel information, meeting information, project plans, etc.). The user triggers the screen memory function by performing a short press on the target button (i.e., a press duration between a first and a second duration threshold). The electronic device then uses the screen memory function to retrieve the displayed content and analyzes the specified content to extract the to-do information. Alternatively, the user can also input the specified content via voice by performing a long press on the target button (i.e., a press duration greater than the second duration threshold). The electronic device can then use its semantic memory function to recognize the voice and obtain the to-do information.
[0126] If the target application mentioned above is a memo application that matches the to-do information, then after obtaining the to-do information, the electronic device can switch the currently displayed interface on the screen to display the memo editing interface, and display the to-do information that needs to be recorded in the memo editing interface.
[0127] S904: Upon receiving a confirmation operation in the information editing interface, the memory information is stored in the target application.
[0128] In this embodiment, after displaying the information editing interface, user input can be received. Upon receiving confirmation from the information editing interface, the stored information can be stored in a target application matching the stored information. This allows the user to confirm the stored information in the target application.
[0129] In some implementations, when the electronic device displays the information editing interface, it can match the stored information with the information to be filled in the information editing interface. If the stored information does not contain at least part of the information to be filled in the information editing interface, i.e., the stored information does not include the information to be filled in the information editing interface, the electronic device can display a second prompt in the information editing interface to prompt for supplementation of the stored information. After displaying the second prompt, the device can detect the operation in the interface and, based on the received information input operation in the information editing interface, display the supplemented information in the information editing interface, thereby displaying the stored information after supplementation. After receiving a confirmation operation in the information editing interface, the stored information after supplementation can be stored in the target application.
[0130] It should be noted that if the memory information is obtained through the voice memory function, and the electronic device determines that the memory information does not contain at least part of the information to be filled in the information editing interface, a second prompt message will be displayed to prompt the user to supplement the memory information. The user can supplement the information by operating the interface, that is, supplement the missing information. Of course, the user can also trigger the voice memory function to supplement the information. In this case, the user does not need to go through a long press to trigger it, but can trigger the voice memory function by a short press. The explanation of long press and short press can be referred to the above content, and will not be repeated here.
[0131] Understandably, the scenario where a short press triggers voice memory is as follows: The user triggers the voice memory function by long-pressing. Under the semantic memory function, the electronic device acquires the user's voice input and extracts the memory information. It determines that the memory information does not contain at least part of the information to be filled in the information editing interface, and the electronic device outputs a second prompt. At this point, the user can trigger the voice memory function by short-pressing. In other words, in this case, detecting a short press of the target button does not trigger the screen memory function but rather the voice memory function. This is to allow for quick triggering of voice memory when the user needs to add content, and to quickly complete the addition of that information. Clearly, voice addition is faster and more convenient than screen memory.
[0132] In some implementations, the electronic device can also edit the memory information displayed in the information editing interface when it receives an editing operation on the above-mentioned memory information, such as a modification operation; and when it receives a confirmation operation in the information editing interface, it can store the edited memory information in the target application.
[0133] Therefore, in this embodiment, users can not only quickly activate the content memory function by operating the target button, but also display the information editing interface of the application before storing the memory information in the interface into the corresponding application, and display the memory information to be stored in the information editing interface. This allows users to further confirm, modify, and perform other operations on the memory information stored in the target application, thereby better meeting the user's needs.
[0134] Please refer to Figure 11, which illustrates a device operation method provided in an embodiment of this application. This method is applied to the aforementioned electronic device and includes steps S1101 to S1105:
[0135] S1101: A trigger operation applied to the target button is detected.
[0136] S1102: Based on the triggering operation, trigger the content memory function.
[0137] The implementation methods of S901 and S902 can be referred to the foregoing content, and will not be repeated here.
[0138] S1103: Display information input interface.
[0139] S1104: If there are keywords in the information input interface that match the memory information obtained through the content memory function, then a third prompt message is displayed in the information input interface. The third prompt message is used to prompt the user to fill in the memory information into the information input interface.
[0140] It should be noted that the explanation of the memory information can be found in the foregoing content and will not be repeated here. In the embodiments of this application, after obtaining the memory information through the memory function, an information input interface of any application can be displayed. If there are keywords matching the above memory information in the information input interface, a third prompt message can be displayed in the information input interface to prompt the user to fill in the above memory information.
[0141] In some implementations, when an electronic device displays the aforementioned third prompt information on an information input interface, it may do so by displaying the third prompt information in a notification bar; or it may display the third prompt information in a fluid cloud manner. Of course, the specific method by which the electronic device displays the aforementioned third prompt information is not limited.
[0142] S1105: Upon receiving a confirmation operation for the third prompt information, the memory information is filled into the information input interface.
[0143] In this embodiment of the application, after the electronic device displays the above third prompt information in the information input interface, it can receive the operation input by the user. When the confirmation operation for the above third prompt information is received, the memory information can be filled into the above information input interface, thereby enabling the device to actively identify the scenario in which the user needs to call the stored memory information and to quickly trigger the use of the stored memory information.
[0144] For example, please refer to Figure 12. The stored memory information is the ID card information of "User A". When the electronic device displays the passenger addition interface of the ticketing software, if the user enters "User A" in the interface, then the third prompt message "Auto-fill 'User A's' ID card information" can be displayed in the passenger addition interface. After receiving a click operation on the third prompt message, the stored memory information can be called to fill in the ID card information of "User A" into the passenger addition interface.
[0145] An embodiment of this application provides a method for triggering a memory function. If a sliding operation on the interface is detected to meet the multi-finger sliding condition, the memory function is triggered. The memory function analyzes and stores information, and displays an information input interface. If a keyword matching the memory information obtained through the memory function exists in the information input interface, a third prompt is displayed, prompting the user to fill in the memory information. Upon receiving confirmation of the third prompt, the memory information is filled in. Therefore, this embodiment can proactively identify scenarios where the user needs to access stored memory information and quickly trigger its use, achieving the effects of easy memorization, secure storage, and convenient use.
[0146] Please refer to Figure 13, which shows a structural block diagram of a device operation apparatus 1300 provided in an embodiment of this application. The apparatus may include a detection unit 1301 and a triggering unit 1302.
[0147] The detection unit 1301 is used to detect the trigger operation applied to the target button.
[0148] Trigger unit 1302 is used to trigger the content memory function based on the trigger operation.
[0149] Furthermore, the triggering unit 1302 is also used to obtain the operation duration of the triggering operation; based on the operation duration, the content memory function is triggered.
[0150] Furthermore, the triggering unit 1302 is also used to determine the target memory function corresponding to the operation duration among multiple types of memory functions; and to trigger the target memory function.
[0151] Furthermore, the triggering unit 1302 is also configured to, if the operation duration is between a first duration threshold and a second duration threshold and the triggering operation ends, use the first memory function as the target memory function, wherein the first duration threshold is less than the second duration threshold; and if the operation duration is greater than the second duration threshold, use the second memory function as the target memory function.
[0152] Furthermore, the first memory function is a screen memory function, used to determine and store relevant content based on the content displayed on the screen of the electronic device.
[0153] Furthermore, the second memory function is a voice memory function. The trigger unit 1302 is also used to perform a voice acquisition operation during the time period when the target button is continuously input and triggered, if the target memory function is a voice memory function; and to store the voice content obtained by the voice acquisition operation and the corresponding text content when the trigger operation on the target button is detected to have ended.
[0154] Furthermore, the triggering unit 1302 is also used to trigger a preset prompt when the operation duration is detected to have reached a second duration threshold.
[0155] Furthermore, the device operation unit 1300 also includes an editing unit for displaying an information editing interface of the target application, wherein the information editing interface includes memory information obtained through the content memory function; upon receiving a confirmation operation in the information editing interface, the memory information is stored in the target application.
[0156] Furthermore, the editing unit is also configured to display a second prompt message in the information editing interface if the memory information does not contain at least part of the information to be filled in the information editing interface, the second prompt message being used to prompt for supplementation of the memory information; upon receiving an information input operation in the information editing interface, displaying the memory information after supplementation in the information editing interface; and upon receiving a confirmation operation in the information editing interface, storing the memory information after supplementation in the target application.
[0157] Furthermore, the device operation unit 1300 also includes an input unit for displaying an information input interface; if there is a keyword in the information input interface that matches the memory information obtained through the content memory function, a third prompt message is displayed in the information input interface, the third prompt message being used to prompt the memory information to be filled into the information input interface; upon receiving a confirmation operation for the third prompt message, the memory information is filled into the information input interface.
[0158] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the above-described device and module can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0159] In the several embodiments provided in this application, the coupling between modules can be electrical, mechanical, or other forms of coupling.
[0160] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated modules described above can be implemented in hardware or as software functional modules.
[0161] Please refer to Figure 14, which shows a structural block diagram of an electronic device provided in an embodiment of this application. The electronic device 100 can be a smartphone, tablet computer, e-reader, or other electronic device capable of running applications. The electronic device 100 in this application may include one or more of the following components: a processor 110, a memory 120, and one or more applications, wherein the one or more applications can be stored in the memory 120 and configured to be executed by one or more processors 110, and the one or more applications are configured to perform the methods described in the foregoing method embodiments.
[0162] Processor 110 may include one or more processing cores. Processor 110 connects to various parts within the electronic device 100 using various interfaces and lines, and performs various functions and processes data of the electronic device 100 by running or executing instructions, programs, code sets, or instruction sets stored in memory 120, and by calling data stored in memory 120. Optionally, processor 110 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). Processor 110 may integrate one or more of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the displayed content; and the modem handles wireless communication. It is understood that the modem may also not be integrated into processor 110 and may be implemented separately using a communication chip.
[0163] The memory 120 may include random access memory (RAM) or read-only memory (ROM). The memory 120 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 120 may include a program storage area and a data storage area. The program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as touch functionality, sound playback functionality, image playback functionality, etc.), and instructions for implementing the various method embodiments described below. The data storage area may also store data created by the electronic device 100 during use (such as phonebook data, audio and video data, chat log data, etc.).
[0164] Please refer to Figure 15, which shows a structural block diagram of a computer-readable medium provided in an embodiment of this application. The computer-readable medium 1500 stores program code that can be called by a processor to execute the methods described in the above method embodiments.
[0165] The computer-readable medium 1500 may be an electronic storage device such as flash memory, EEPROM (Electrically Erasable Programmable Read-Only Memory), EPROM, hard disk, or ROM. Optionally, the computer-readable medium 1500 includes a non-transitory computer-readable storage medium. The computer-readable medium 1500 has storage space for program code 1510 that performs any of the method steps described above. This program code can be read from or written to one or more computer program products. The program code 1510 may be compressed, for example, in a suitable form.
[0166] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions 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 this application.
Claims
1. A method for operating a device, characterized in that, Applied to an electronic device, wherein a target button is provided on the casing of the electronic device, the method includes: A trigger operation applied to the target button was detected; Based on the triggering operation, the content memory function is triggered, wherein the content memory function is used to analyze and store the information.
2. The method according to claim 1, characterized in that, The triggering of the content memory function based on the triggering operation includes: Obtain the operation duration of the triggering operation; Based on the operation duration, the content memory function is triggered.
3. The method according to claim 2, characterized in that, The content memory includes various types of memory functions, and the content memory function is triggered based on the operation duration, including: Among various types of memory functions, the target memory function corresponding to the operation duration is identified; Trigger the target memory function.
4. The method according to claim 3, characterized in that, The various types of memory functions include a first memory function and a second memory function. The step of determining the target memory function corresponding to the operation duration among the various types of memory functions includes: If the operation duration is between the first duration threshold and the second duration threshold and the triggering operation ends, then the first memory function is determined as the target memory function, wherein the first duration threshold is less than the second duration threshold. If the operation duration is greater than the second duration threshold, then the second memory function is taken as the target memory function.
5. The method according to claim 4, characterized in that, The first memory function is a screen memory function, which is used to determine and store relevant content based on the content displayed on the screen of the electronic device.
6. The method according to claim 5, characterized in that, The triggering of the target memory function includes: Identify the content currently displayed on the screen; If specified content is identified, the source content corresponding to the specified content is determined based on the specified content; The source content is stored as the related content corresponding to the specified content.
7. The method according to claim 4, characterized in that, The second memory function is a voice memory function, and triggering the target memory function includes: If the target memory function is a voice memory function, a voice acquisition operation is performed during the time period when the target button is continuously input and triggered. When the trigger operation on the target button is detected to have ended, the voice content obtained from the voice acquisition operation and the corresponding text content are stored.
8. The method according to claim 7, characterized in that, After performing the voice acquisition operation, the following is also included: When the voice memory function is enabled, preset content is displayed on the screen. The preset content is the waveform pattern of the voice data currently collected by the electronic device.
9. The method according to claim 7, characterized in that, After performing the voice acquisition operation, the following is also included: When the voice memory function is enabled, the text content corresponding to the voice collected by the electronic device is displayed on the screen.
10. The method according to claim 4, characterized in that, Also includes: If the operation duration is detected to have reached the second duration threshold, a first prompt message is triggered. The first prompt message is used to indicate that the operation duration has reached the trigger duration range of the second memory function.
11. The method according to any one of claims 1-10, characterized in that, After triggering the content memory function based on the triggering operation, the method further includes: Display the information editing interface of the target application, which includes the memory information obtained through the content memory function; Upon receiving confirmation from the information editing interface, the memory information is stored in the target application.
12. The method according to claim 11, characterized in that, Before storing the memory information into the target application upon receiving a confirmation operation in the information editing interface, the method further includes: If the memory information does not contain at least some of the information to be filled in the information editing interface, a second prompt message is displayed in the information editing interface. The second prompt message is used to prompt the memory information to be supplemented. Upon receiving an information input operation in the information editing interface, the memory information after supplementing the information is displayed in the information editing interface; Upon receiving a confirmation operation in the information editing interface, storing the memory information in the target application includes: Upon receiving confirmation from the information editing interface, the memory information with the supplemented information is stored in the target application.
13. The method according to any one of claims 1-12, characterized in that, After triggering the content memory function based on the triggering operation, the method further includes: Display information input interface; If there are keywords in the information input interface that match the memory information obtained through the content memory function, then a third prompt message is displayed in the information input interface. The third prompt message is used to prompt the memory information to be filled into the information input interface. Upon receiving a confirmation operation for the third prompt information, the memory information is filled into the information input interface.
14. The method according to any one of claims 1-13, characterized in that, The detected trigger operation applied to the target key includes: When the electronic device meets the target conditions, a trigger operation is detected on the target button.
15. The method according to claim 14, characterized in that, The step of detecting a trigger operation applied to the target button when the electronic device meets the target conditions includes: Obtain the device status of the electronic device; If the device state is a specified state, a trigger operation applied to the target button is detected, wherein the specified state includes at least one of the following: unlocked state, non-screen-off state, authorized state, and working state.
16. The method according to claim 14, characterized in that, The step of detecting a trigger operation applied to the target button when the electronic device meets the target conditions includes: The system resources of the electronic device are acquired, wherein the system resources include at least one of storage space and data processing capability; If the system resources meet the usage conditions, the trigger operation applied to the target button is detected.
17. The method according to claim 14, characterized in that, The step of detecting a trigger operation applied to the target button when the electronic device meets the target conditions includes: If the current usage scenario of the electronic device is not a preset scenario, the trigger operation applied to the target button is detected.
18. A device operating apparatus, characterized in that, Applied to electronic devices, wherein a target button is provided on the housing of the electronic device, the device includes: A detection unit is used to detect the trigger operation applied to the target button; A triggering unit is used to trigger the content memory function based on the triggering operation, wherein the content memory function is used to analyze and store the information.
19. An electronic device, characterized in that, include: The target button is located on the casing of the electronic device; One or more processors; Memory; One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications being configured to perform the method as described in any one of claims 1-17.
20. The electronic device according to claim 19, characterized in that, The housing includes a bottom frame, a top frame, a first side frame, and a second side frame, and the target button is disposed on the first side frame or the second side frame of the electronic device.
21. A computer-readable medium, characterized in that, The computer-readable medium stores processor-executable program code, which, when executed by the processor, causes the processor to perform the method according to any one of claims 1-17.