Method for inputting information into input box and electronic device
By displaying historical input records and associated candidate input items in the display interface of the electronic device, the problem of inconsistent input efficiency in input boxes of different applications is solved, unified candidate input recommendations across applications and input boxes are achieved, and input efficiency and intelligent experience are improved.
Patent Information
- Application Number
- CN201880097766.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-09-28
- Publication Date
- 2025-09-12
- Estimated Expiration
- 2038-09-28
AI Technical Summary
Input boxes in different applications have different strategies for setting candidate input options on mobile phones, resulting in uneven user input efficiency and a lack of a unified candidate input item recommendation mechanism.
By displaying the types of historical input records and candidate input items in the display interface of the electronic device, users can select and automatically input, and uniformly recommend candidate input items across applications and input boxes, including historical input records and items associated with the input content.
It improves the user's input efficiency in different applications and input boxes, provides an intelligent input experience, reduces repeated input, and improves the efficiency of input box usage.
Smart Images

Figure CN112740148B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminals, and in particular to a method for inputting information into an input box and an electronic device. Background Art
[0002] Currently, electronic devices such as mobile phones and tablets have become important tools for users to input and output information. For example, when a mobile phone is running a browser application, a user can enter keywords in the browser's input box to search for relevant information; or when a mobile phone is running a chat application, a user can enter chat content to a contact in the input box of the chat window.
[0003] As can be seen, the input boxes within various applications are crucial channels for information exchange between users and their phones. To improve user input efficiency within the input boxes, some applications offer candidate input options, such as historical input records or popular recommendations, during user input. Upon detecting a user clicking on one of these candidate input options, the phone automatically enters the selected candidate into the input box. However, each application may have a different strategy for setting candidate input options for its input box, and some applications may not even have the function of recommending candidate input options to users. This results in varying input efficiency across different applications within the mobile phone. Summary of the Invention
[0004] The embodiments of the present application provide a method and electronic device for inputting information into an input box, which can improve the input efficiency of a user in various input boxes in a mobile phone.
[0005] To achieve the above objectives, this application adopts the following technical solutions:
[0006] In a first aspect, the technical solution of the present application provides a method for inputting information into an input box, comprising: an electronic device displays a display interface, the display interface including a first input box; after the electronic device receives an operation by the user on the first input box, it may display a first prompt box on the display interface, the first prompt box including M (M is an integer greater than 0) types of historical input records; further, after the electronic device receives a first selection operation by the user selecting a first type from these M types, it may display N (N is an integer greater than 0) candidate input items in the above-mentioned display interface, and these N candidate input items are all historical input records of the above-mentioned first type; when the electronic device receives a second selection operation by the user selecting a first candidate input item from these N candidate input items, it automatically inputs the first candidate input item into the first input box.
[0007] In other words, by performing a preset operation on any input box, the electronic device can call up M types of historical input records. After the user selects a type, the electronic device can provide the user with N historical input records of that type. This allows the user to quickly find the historical input record they need to enter among the numerous historical input records in the input box by type, thereby improving input efficiency in the mobile phone input box.
[0008] In one possible design approach, the N candidate input items may include historical input records for the second input box; alternatively, the N candidate input items may include historical input records for the first input box. In other words, the N candidate input items displayed in the first prompt box by the electronic device may be related to the first input box that was triggered this time, or may be related to other input boxes.
[0009] Exemplarily, the first input box may be an input box of a first application (such as a browser), and the second input box may be an input box of a second application (such as Alipay), that is, the first input box and the second input box are two input boxes belonging to different applications; or, the first input box and the second input box may also be two different input boxes in the same application, for example, the first input box may be an input box in a chat interface in WeChat, and the second input box may be an input box in WeChat for searching friends.
[0010] In a possible design method, the first prompt box further includes a first button, wherein, after the electronic device displays the first prompt box on the display interface, it further includes: in response to the user clicking the first button, the electronic device displays other historical input records other than the N historical input records in the first prompt box. The other historical input records can all be of the first type mentioned above, and the other historical input records can be historical input records of the first input box or historical input records of other input boxes. The embodiment of the present application does not impose any restrictions on this. The user can trigger the electronic device to provide more historical input records for the user to choose by pressing the first button.
[0011] In one possible design method, the first prompt box further includes a second button; wherein, after the electronic device displays the first prompt box on the display interface, the electronic device further includes: in response to the user clicking the second button, the electronic device displays an index box with application granularity; in response to the user selecting the first application in the index box, the electronic device may display a second prompt box on the display interface, the second prompt box including at least one historical input record of the first application, and the historical input record in the second prompt box may also be of the first type. In this way, by clicking the second button, the user can select a historical input record of a certain application with application granularity under a certain type of historical input record to input the historical input record of a certain application into the first input box.
[0012] In one possible design method, after the electronic device displays the first prompt box on the display interface, the electronic device further includes: receiving input content entered by the user into the first input box; and based on the input content, displaying historical input records associated with the input content in the first prompt box. In this way, the historical input records recommended to the user in the first prompt box can change in real time with the user's input, prompting the user to quickly enter historical input records associated with the current input content into the first input box.
[0013] In one possible design method, the above-mentioned display interface also includes a save button; wherein, after the electronic device receives the input content entered by the user into the first input box, it also includes: in response to the user clicking the save button, the electronic device saves the input content as a historical input record of the first input box.
[0014] In one possible design method, in response to the user clicking the above-mentioned save button, the electronic device saves the input content as a historical input record of the first input box, specifically including: in response to the user clicking the above-mentioned save button, the electronic device may first display at least one save type of the input content, such as text, picture, emoticon, etc.; then, based on the save type selected by the user, the electronic device saves the input content. At this time, the input content saved by the electronic device is related to the save type selected by the user.
[0015] In one possible design method, the M types include at least one of text, emoticons, pictures, videos, numbers, songs or ancient poems.
[0016] In one possible design method, after the electronic device receives the user's operation on the first input box, it also includes: in response to the operation, the electronic device displays K (K is an integer greater than 0) candidate input items in the display interface; wherein the above K candidate input items are generated based on the chat content contained in the display interface; or, the above K candidate input items are generated based on the chat objects in the display interface; or, the above K candidate input items are generated based on the type of application to which the display interface belongs.
[0017] That is to say, in addition to using the above-mentioned historical input records as candidate input items, the electronic device can also generate corresponding candidate input items based on information such as the type of application to which the input box belongs, the chat object or chat content associated with the input box, so that the user can quickly select the input content to be entered into the input box this time from the candidate input items, thereby improving the input efficiency in each input box in the mobile phone, and further bringing an intelligent input experience to the user.
[0018] In a second aspect, the technical solution of the present application provides a method for inputting information into an input box, comprising: an electronic device displays a display interface, which includes a first input box; after the electronic device receives an operation from a user on the first input box, the electronic device displays a first prompt box on the display interface, the first prompt box including N candidate input items, and these N candidate input items include historical input records of the second input box; then, if the electronic device receives a selection operation from the user to select a first candidate input item from these N candidate input items, the electronic device can automatically input the first candidate input item into the first input box.
[0019] In other words, by performing a preset operation on any input box, the electronic device can call up the historical input records including other input boxes. In this way, the user's historical input records in different input boxes can be recommended to the user as candidate input items, avoiding the user from repeatedly entering the same input content in different input boxes, which affects input efficiency.
[0020] In a possible design method, the N candidate input items also include historical input records of the first input box.
[0021] In a possible design method, after the electronic device displays the above-mentioned display interface, it also includes: the electronic device receives input content entered by the user into a first input box; wherein, the electronic device displays a first prompt box on the display interface, including: the electronic device displays N candidate input items associated with the input content in the first prompt box.
[0022] Exemplarily, the N candidate input items associated with the input content may specifically refer to: N candidate input items containing the above-mentioned input content, taking the input content as "my" as an example, the N candidate input items associated with the input content may be candidate input items containing "my"; or, the N candidate input items associated with the input content may specifically refer to: N candidate input items of the same type as the above-mentioned input content, still taking the input content as "my" as an example, the N candidate input items associated with the input content may be text-type candidate input items.
[0023] In a possible design method, the N candidate input items include historical input records with an input frequency greater than a preset value, or historical input records input by the user within a preset time.
[0024] In a third aspect, the technical solution of the present application provides a method for inputting information into an input box, comprising: an electronic device displays a display interface, the display interface including a first input box; after the electronic device receives a user operation on the first input box, it identifies whether the application to which the first input box belongs is a communication application; if it is a communication application, the electronic device further identifies whether the chat object in the above display interface is a designated contact; if it is a designated contact, the electronic device can display a first prompt box in the above display interface, the first prompt box including N candidate input items associated with the above designated contact; if the electronic device receives a selection operation from the user to select the first candidate input item from the N candidate input items, the electronic device can automatically input the first candidate input item into the first input box. In this way, the electronic device can intelligently prompt the user with candidate input items related to the chat object in the first prompt box according to different chat objects, so as to improve the user's input efficiency.
[0025] Alternatively, when the electronic device identifies that the application to which the first input box belongs is a communication application, the electronic device may also obtain the chat content in the display interface; further, the electronic device may generate relevant candidate input items based on the chat content and prompt them to the user. Based on the different chat content, the electronic device may intelligently prompt the user with candidate input items related to the chat content in the first prompt box to improve the user's input efficiency.
[0026] In a fourth aspect, the technical solution of the present application provides a method for inputting information into an input box, comprising: an electronic device runs a first application and displays a display interface, the display interface including a first input box; in response to a user's operation on the first input box, the first application of the electronic device requests the application framework layer to obtain N candidate input items; the application framework layer in the electronic device displays the obtained N candidate input items on the above-mentioned display interface through the application layer; in response to the user's operation of selecting the first candidate input item from the N candidate input items, the electronic device inputs the first candidate input item into the first input box.
[0027] Since the above-mentioned application framework layer can provide the above-mentioned input services to all applications with input boxes, when the user uses any input box to input information, the electronic device can provide candidate input items according to the above-mentioned method. The user can use the candidate input items to input information into each input box conveniently and quickly, thereby alleviating the poor user experience of uneven input efficiency in different input boxes.
[0028] The application framework layer includes a view system (eg, a text view control), and the steps performed by the application framework layer may be specifically performed by the view system.
[0029] In a possible design method, the N candidate input items include: at least one of the historical input records of the first input box, or at least one of the historical input records of the second input box.
[0030] In one possible design method, a historical record is stored in an electronic device, and the historical record contains a correspondence between the ID of an input box and the historical input record; at this time, a first application in the electronic device requests an application framework layer to obtain N candidate input items, including: the first application in the electronic device sends the ID of the first input box to the application framework layer; the application framework layer in the electronic device queries the above historical record for one or more historical input records corresponding to the ID of the first input box.
[0031] Alternatively, the above-mentioned historical records contain a correspondence between historical input records and the types of historical input records; at this time, the first application in the electronic device requests the application framework layer to obtain N candidate input items, including: the first application in the electronic device sends the target type of the historical input record selected by the user to the application framework layer; the application framework layer in the electronic device queries the above-mentioned historical records for one or more historical input records corresponding to the target type.
[0032] In a possible design method, after the electronic device runs the first application, it also includes: the first application in the electronic device receives input content entered by the user into the first input box; the first application in the electronic device sends the input content and the ID of the first input box to the application framework layer; the application framework layer in the electronic device uses the input content as a historical input record and saves the correspondence between the input content and the ID of the first input box.
[0033] In one possible design method, before the electronic device runs the first application, the first application in the electronic device further includes: sending a registration request for the first input box to the application framework layer; in response to the registration request, the application framework layer in the electronic device generates an ID for the first input box. In this way, each input box in the electronic device can be registered with a unique ID in the application framework layer, and the electronic device can maintain the ID of each input box in the above historical record.
[0034] In a fifth aspect, the technical solution of the present application provides an electronic device, comprising: an input device, a display screen, one or more processors, a memory, and one or more computer programs; wherein the processor is coupled to the input device, the processor, and the memory, and the above-mentioned one or more computer programs are stored in the memory. When the electronic device is running, the processor executes the one or more computer programs stored in the memory, so that the electronic device executes any one of the above-mentioned methods of inputting information into the input box.
[0035] In a sixth aspect, the technical solution of the present application provides a computer storage medium comprising computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes any one of the above-described methods for inputting information into an input box.
[0036] In a seventh aspect, the technical solution of the present application provides a computer program product. When the computer program product is run on an electronic device, the electronic device executes any one of the above methods for inputting information into an input box.
[0037] It can be understood that the terminal described in the fifth aspect, the computer storage medium described in the sixth aspect, and the computer program product described in the seventh aspect are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.
[0038] In one possible implementation, the input device may be a touch-sensitive surface, which may also be referred to as a touch sensor, wherein the touch-sensitive surface and the display screen may be referred to as a touch screen.
[0039] In one possible implementation, the operation of the first input box may be: clicking the input box, double-clicking the input box, long pressing the input box, or pressing the input box again. In response to clicking the input box, double-clicking the input box, long pressing the input box, or pressing the input box again, the mobile phone may display a cursor in the input box and may also display an input method application, such as displaying virtual keys. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application Figure 1 ;
[0041] Figure 2 A schematic diagram of the architecture of an operating system in an electronic device provided in an embodiment of the present application;
[0042] Figure 3 A scenario diagram of a method for inputting information into an input box provided in an embodiment of the present application Figure 1 ;
[0043] Figure 4 A scenario diagram of a method for inputting information into an input box provided in an embodiment of the present application Figure 2 ;
[0044] Figure 5 A scenario diagram of a method for inputting information into an input box provided in an embodiment of the present application Figure 3 ;
[0045] Figure 6A scenario diagram of a method for inputting information into an input box provided in an embodiment of the present application Figure 4 ;
[0046] Figure 7 A scenario diagram of a method for inputting information into an input box provided in an embodiment of the present application Figure 5 ;
[0047] Figure 8 A scenario diagram of a method for inputting information into an input box provided in an embodiment of the present application Figure 6 ;
[0048] Figure 9 A scenario diagram of a method for inputting information into an input box provided in an embodiment of the present application Figure 7 ;
[0049] Figure 10 A scenario diagram of a method for inputting information into an input box provided in an embodiment of the present application Figure 8 ;
[0050] Figure 11 A scenario diagram of a method for inputting information into an input box provided in an embodiment of the present application Figure 9 ;
[0051] Figure 12A A scenario diagram of a method for inputting information into an input box provided in an embodiment of the present application Figure 10 ;
[0052] Figure 12B A scenario diagram of a method for inputting information into an input box provided in an embodiment of the present application Figure 10 one;
[0053] Figure 13 A scenario diagram of a method for inputting information into an input box provided in an embodiment of the present application Figure 10 two;
[0054] Figure 14 A scenario diagram of a method for inputting information into an input box provided in an embodiment of the present application Figure 10 three;
[0055] Figure 15 A scenario diagram of a method for inputting information into an input box provided in an embodiment of the present application Figure 10 Four;
[0056] Figure 16 A scenario diagram of a method for inputting information into an input box provided in an embodiment of the present application Figure 10 five;
[0057] Figure 17A schematic diagram of the structure of an electronic device provided in an embodiment of the present application Figure 2 . DETAILED DESCRIPTION
[0058] The implementation of this embodiment will be described in detail below with reference to the accompanying drawings.
[0059] The method for inputting information into an input box provided in the embodiments of the present application can be applied to electronic devices. The electronic devices can specifically be mobile phones, tablet computers, desktop computers, laptop computers, notebook computers, ultra-mobile personal computers (UMPCs), handheld computers, netbook computers, personal digital assistants (PDAs), wearable electronic devices, virtual reality devices, etc. The specific form of the electronic devices is not particularly limited in the following embodiments.
[0060] For example, Figure 1 A schematic structural diagram of the electronic device 100 is shown.
[0061] The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0062] It should be understood that the structure illustrated in the embodiments of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0063] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics 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). The different processing units may be independent devices or integrated into one or more processors.
[0064] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0065] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 may be a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the instruction or data again, it can directly retrieve it from the memory. This avoids repeated accesses, reduces processor 110 latency, and thus improves system efficiency.
[0066] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface.
[0067] The I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple I2C bus lines. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, and the like via different I2C bus interfaces. For example, the processor 110 may be coupled to the touch sensor 180K via the I2C interface, enabling communication between the processor 110 and the touch sensor 180K via the I2C bus interface, thereby implementing the touch function of the electronic device 100.
[0068] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the I2S interface, enabling the function of answering calls through a Bluetooth headset.
[0069] The PCM interface can also be used for audio communication, sampling, quantizing, and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface, enabling the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
[0070] The UART interface is a universal serial data bus used for asynchronous communication. This bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is typically used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 via the UART interface to implement Bluetooth functionality. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the UART interface, enabling the function of playing music through Bluetooth headphones.
[0071] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display 194 and the camera 193. MIPI interfaces include the camera serial interface (CSI) and the display serial interface (DSI). In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the camera function of the electronic device 100. The processor 110 and the display 194 communicate via the DSI interface to implement the display function of the electronic device 100.
[0072] The GPIO interface can be configured via software. The GPIO interface can be configured as either a control signal or a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 to the camera 193, display 194, wireless communication module 160, audio module 170, sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
[0073] The USB interface 130 is an interface that complies with USB standards and may be a Mini USB interface, a Micro USB interface, a USB Type-C interface, or the like. The USB interface 130 can be used to connect a charger to charge the electronic device 100, or to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio. This interface can also be used to connect other electronic devices, such as augmented reality devices.
[0074] It is understood that the interface connection relationship between the modules illustrated in the embodiment of the present invention is merely an illustrative illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods from the above embodiments, or a combination of multiple interface connection methods.
[0075] The charging management module 140 is configured to receive charging input from a charger. The charger can be either a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also provide power to the electronic device via the power management module 141.
[0076] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage, impedance). In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0077] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0078] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.
[0079] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0080] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0081] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0082] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0083] Electronic device 100 implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.
[0084] Display screen 194 is used to display images, videos, and the like. Display screen 194 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 flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-oLed, or a quantum dot light-emitting diode (QLED). In some embodiments, electronic device 100 may include one or N display screens 194, where N is a positive integer greater than one.
[0085] The electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
[0086] The ISP processes data fed back by camera 193. For example, when taking a photo, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, which is then passed to the ISP for processing and converted into a visible image. The ISP can also perform algorithmic optimization on image noise, brightness, and skin tone. It can also optimize parameters such as exposure and color temperature of the captured scene. In some embodiments, the ISP can be located within camera 193.
[0087] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then passes the electrical signal to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0088] The digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0089] Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs. This allows electronic device 100 to play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, and MPEG4.
[0090] The NPU is a neural network (NN) computing processor. Drawing on the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it rapidly processes input information and can continuously self-learn. The NPU can enable intelligent cognitive applications in electronic device 100, such as image recognition, face recognition, speech recognition, and text comprehension.
[0091] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 via the external memory interface 120 to implement data storage functions. For example, files such as music and videos can be stored on the external memory card.
[0092] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area can store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0093] The electronic device 100 can implement audio functions such as music playback and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0094] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be provided in the processor 110, or some functional modules of the audio module 170 can be provided in the processor 110.
[0095] The speaker 170A, also called a "speaker", is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or listen to hands-free calls through the speaker 170A.
[0096] The receiver 170B, also called a "handset", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or a voice message, the user can place the receiver 170B close to the ear to hear the voice.
[0097] Microphone 170C, also known as "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to the microphone 170C to input the sound signal into the microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to realize sound signal collection, noise reduction, and identification of sound sources, and realize directional recording function, etc.
[0098] The headphone jack 170D is used to connect a wired headphone and can be the USB interface 130 or a 3.5mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
[0099] Pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 180A can be located on display screen 194. There are many types of pressure sensors 180A, such as resistive, inductive, and capacitive. A capacitive pressure sensor can include at least two parallel plates made of conductive material. When force acts on pressure sensor 180A, the capacitance between the electrodes changes. Electronic device 100 determines the intensity of the pressure based on this change in capacitance. When a touch operation is applied to display screen 194, electronic device 100 detects the touch intensity based on pressure sensor 180A. Electronic device 100 can also calculate the touch location based on the detection signal from pressure sensor 180A. In some embodiments, touch operations applied to the same touch location but with different touch intensities can correspond to different operation instructions. For example, when a touch operation with an intensity less than a first pressure threshold is applied to a short message application icon, a command to view short messages is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to a short message application icon, a command to create a new short message is executed.
[0100] The gyroscope sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyroscope sensor 180B. The gyroscope sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyroscope sensor 180B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyroscope sensor 180B can also be used for navigation and somatosensory game scenes.
[0101] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude using the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.
[0102] The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip case. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 can detect the opening and closing of the flip cover based on the magnetic sensor 180D. Based on the detected opening and closing status of the case or flip cover, features such as automatic unlocking of the flip cover can be configured.
[0103] Accelerometer 180E can detect the magnitude of acceleration of electronic device 100 in all directions (generally three axes). It can also detect the magnitude and direction of gravity when electronic device 100 is stationary. It can also be used to identify the electronic device's posture, enabling applications such as switching between landscape and portrait modes and pedometers.
[0104] The distance sensor 180F is used to measure distance. The electronic device 100 can measure distance using infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure distance to achieve fast focusing.
[0105] The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light outward through the light emitting diode. The electronic device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100. The electronic device 100 can use the proximity light sensor 180G to detect that the user is holding the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode and pocket mode to automatically unlock and lock the screen.
[0106] Ambient light sensor 180L is used to sense ambient light brightness. Electronic device 100 can adaptively adjust the brightness of display screen 194 based on the perceived ambient light. Ambient light sensor 180L can also be used to automatically adjust white balance when taking photos. Ambient light sensor 180L can also work with proximity light sensor 180G to detect whether electronic device 100 is in a pocket to prevent accidental touches.
[0107] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.
[0108] The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 reduces the performance of the processor located near the temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to prevent the electronic device 100 from shutting down abnormally due to low temperature. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 boosts the output voltage of the battery 142 to prevent abnormal shutdown due to low temperature.
[0109] The touch sensor 180K is also called a "touch panel." The touch sensor 180K can be disposed on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen." The touch sensor 180K is used to detect touch operations applied thereto or in the vicinity thereof. The touch sensor can transmit the detected touch operations to the application processor to determine the type of touch event. Visual output related to the touch operations can be provided via the display screen 194. In other embodiments, the touch sensor 180K can also be disposed on the surface of the electronic device 100, in a location different from that of the display screen 194.
[0110] The bone conduction sensor 180M can obtain vibration signals. In some embodiments, the bone conduction sensor 180M can obtain vibration signals from the vibrating bones of the human body. The bone conduction sensor 180M can also contact the human pulse to receive blood pressure pulse signals. In some embodiments, the bone conduction sensor 180M can also be set in headphones to form bone conduction headphones. The audio module 170 can parse out voice signals based on the vibration signals of the vibrating bones of the human body obtained by the bone conduction sensor 180M to implement voice functions. The application processor can parse heart rate information based on the blood pressure pulse signals obtained by the bone conduction sensor 180M to implement heart rate detection functions.
[0111] The buttons 190 include a power button, a volume button, and the like. The buttons 190 may be mechanical buttons or touch buttons. The electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100.
[0112] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
[0113] The indicator 192 may be an indicator light, which may be used to indicate the charging status, power level changes, messages, missed calls, notifications, etc.
[0114] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to or disconnected from the electronic device 100 by inserting it into or removing it from the SIM card interface 195. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
[0115] In some embodiments, the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. In the embodiment of the present invention, the Android system with a layered architecture is used as an example to illustrate the software structure of the electronic device 100.
[0116] Figure 2 1 is a software structure block diagram of the electronic device 100 according to an embodiment of the present invention.
[0117] A layered architecture divides software into several layers, each with distinct roles and responsibilities. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers: the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer.
[0118] The application layer (APP layer) may include a series of application packages.
[0119] like Figure 2 As shown, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
[0120] The application framework layer (framework layer) provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions.
[0121] like Figure 2As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
[0122] The window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, take screenshots, etc.
[0123] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0124] The view system includes visual controls, such as text views for displaying text and image views for displaying images. The view system is used to build applications. A display interface can be composed of one or more views. For example, a display interface containing a text notification icon might include a view for displaying text and a view for displaying images.
[0125] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including answering, hanging up, etc.).
[0126] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0127] The Notification Manager allows applications to display notifications in the status bar. These messages can be displayed briefly and then disappear automatically without user interaction. For example, the Notification Manager is used to notify users of completed downloads and message reminders. The Notification Manager can also display notifications in the top status bar of the system as icons or scrolling text, such as notifications from background applications, or as dialog windows on the screen. Examples include text messages in the status bar, beeps, vibrations on electronic devices, and flashing indicator lights.
[0128] The Android Runtime consists of the core library and the virtual machine. The Android runtime is responsible for scheduling and management of the Android system.
[0129] The core library consists of two parts: one is the function that needs to be called by the Java language, and the other is the Android core library.
[0130] The application layer and application framework layer run in a virtual machine. The virtual machine executes Java files in the application layer and application framework layer as binary files. The virtual machine manages object lifecycles, stack management, thread management, security and exception management, and garbage collection.
[0131] The system library can include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0132] The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
[0133] The media library supports playback and recording of a variety of common audio and video formats, as well as static image files. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0134] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0135] A 2D graphics engine is a drawing engine for 2D drawings.
[0136] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, camera driver, audio driver, and sensor driver.
[0137] In the embodiment of the present application, Figure 2 As shown, the view system of the application framework layer may include a text view control. The text view control can be used to construct input boxes in applications, so that the input boxes of various applications in the application layer can implement information input based on the text view control.
[0138] Exemplarily, each application in the application layer may contain one or more input boxes. For example, the WeChat application contains an input box for chatting with contacts and an input box for searching. An application containing an input box may pre-register the ID of the input box it contains in the text view control. For example, when registering, the application may send attribute information such as its own package name (packname) and the identifier of its input box in the application to the text view control. The text view control may generate an ID for the registered input box that can uniquely identify the input box. For example, the text view control may use a hash algorithm (hash) to generate the ID of the input box based on the package name of the application and the identifier of the input box in the application. In this way, each input box in the electronic device 100 may be registered with a unique ID in the text view control, and the electronic device 100 may set up a corresponding database (such as a history database) to maintain the ID of each input box.
[0139] Subsequently, when it is detected that the user has input information into an input box of an application (e.g., input box A), the application can call the text view control to save the input content in input box A as a historical input record and establish a corresponding relationship between the historical input record and the input box ID. For example, the text view control can save the corresponding relationship between the ID of input box A and its historical input record in the history database. In this way, the electronic device 100 maintains the corresponding relationship between each input box and each historical input record.
[0140] Taking input box A as an example, when a user is subsequently detected operating input box A (for example, clicking input box A), the textview control can query the history record database based on the ID of input box A to retrieve one or more historical input records corresponding to input box A, and then display these historical input records as candidate input items near input box A. In this way, if the user selects a candidate input item, the electronic device can automatically enter the candidate input item into input box A, avoiding the problem of users repeatedly entering the same information and reducing input efficiency.
[0141] In addition, since the above-mentioned view system can provide the above-mentioned input service to all applications with input boxes, when the user uses any input box to input information, the electronic device 100 can provide candidate input items according to the above-mentioned method. The user can use the candidate input items to input information into each input box conveniently and quickly, thereby alleviating the poor user experience of uneven input efficiency in different input boxes.
[0142] Of course, in addition to using the above-mentioned historical input records as candidate input items, the text view control can also recommend other information as candidate input items to the user. For example, the electronic device 100 can pre-set an AI (artificial intelligence) database. If the application to which input box A belongs is a music application, the text view control can recommend the latest popular songs or singers as candidate input items to the user from the AI database; for another example, if input box A is an input box in a chat interface with contact Sam, the text view control can obtain candidate input items recommended to the user from the AI database based on the chat content in the chat interface, so that the user can get an intelligent input experience when using various input boxes.
[0143] A method for inputting information into an input box provided by an embodiment of the present application will be described in detail below using a mobile phone as the electronic device mentioned above in conjunction with the accompanying drawings.
[0144] It should be noted that the input box involved in the embodiments of the present application can be an input box with a search function, such as an input box in a browser application, or an input box simply used for exchanging information, such as a short message input box in a text messaging application, a chat input box with a contact in a WeChat application, etc. Users can enter text, letters, numbers, symbols, pictures, emoticons, and other information into the input box, and the embodiments of the present application do not impose any restrictions on this.
[0145] like Figure 3 As shown, the chat input box 301 with the contact Sam in the WeChat application is taken as an example. When the WeChat application is installed, the WeChat application can register the input box 301 with the view system (such as the text view control) in the application framework layer. During registration, the view system can generate a globally unique ID for the input box 301. Subsequently, the view system can provide relevant input services for the input box 301 based on the ID. It should be noted that when the WeChat application registers the input box with the view system, it can register it at the granularity of the type of input box. For example, the input boxes in the chat interface of each contact in the WeChat application all belong to the chat input box, so the WeChat application can uniformly register an ID for the chat input box in the view system. At this time, the ID of the chat input box 301 of the contact Sam is the same as the ID of the chat input box of the contact Mike. Of course, the input box can also be registered with the view system at the granularity of the number of input boxes. At this time, the IDs of the chat input boxes corresponding to different contacts are different.
[0146] For example, Figure 3 As shown, when the user is inputting information in the input box 301, if it is detected that the user has completed the input, for example, when it is detected that the user clicks the send button 302, the WeChat application can call the view system to save the input content in the input box 301 at this time (for example, "133595966688") as the first historical input record, and establish a corresponding relationship between the first historical input record and the ID of the input box 301.
[0147] For example, the mobile phone can create corresponding history records for different input boxes according to the ID of the input box. Figure 4 As shown, taking the input box 301 as an example, the user's input content in the input box 301 (i.e., historical input records) can be recorded in the history record table 401 corresponding to the ID of the input box 301. In this way, a corresponding relationship between the historical input records and the ID of the input box can be established.
[0148] In addition, as Figure 4As shown, in history table 401, the mobile phone can also record the input time of each historical input record. Furthermore, the mobile phone can also identify the specific type of each historical input record, such as text type, number type, image type, emoticon type, song type, or ancient poetry type. The mobile phone can record the identified specific type in history table 401 and associate it with the corresponding historical input record. In this way, the mobile phone can record the historical input records of each input box in the mobile phone, as well as the relevant information of the historical input record.
[0149] In other embodiments of the present application, Figure 5 As shown in (a) of FIG, the mobile phone can also set a button 501 in the input box 301. The button 501 can be used to trigger the mobile phone to record the input content of this time as a historical input record in the history record, for example, in the form of a table in the history record table 401. That is, in the process of inputting information into the input box 301, the user can manually set certain input content as a historical input record for saving through the button 501. Figure 5 As shown in (a) of the figure, after the user enters "My name is Alice" in input box 301, if the user clicks button 501, it indicates that the user wishes to save the input content as a historical input record, and may need to enter the historical input record "My name is Alice" again later. In response to the user's operation of clicking button 501, the mobile phone can record the input content in input box 301, i.e., "My name is Alice", as a historical input record in the history record corresponding to the ID of input box 301. In this way, the mobile phone can selectively save some important input content or input content that may be used again in the future as historical input records.
[0150] For example, when the mobile phone saves the historical input record of "My name is Alice" in the history record, it can also automatically identify and record the type of the historical record, for example, identifying the historical input record of "My name is Alice" as a text type. Alternatively, the user can also manually set the type of the historical input record when the mobile phone saves the historical input record of "My name is Alice". For example, Figure 5As shown in (b) of FIG, upon detecting that the user has clicked button 501, the mobile phone may further display menu 502. Menu 502 includes all supported storage types for historical input records, such as text, emoticons, pictures, and songs. Thus, the user can manually select in menu 502 which storage type to use to store the historical input record "My name is Alice" in history record table 401. For example, if the user is detected to have clicked the "Text" storage type in menu 502, the mobile phone may establish a correspondence between the historical input record and the text type when saving the historical input record "My name is Alice" in history record table 401.
[0151] Among them, the above-mentioned button 501 can be always displayed in the input box 301. Alternatively, the mobile phone can also display the button 501 when it detects that the user is inputting information into the input box 301, and the mobile phone can hide the button 501 when it detects that the user stops inputting in the input box 301. Alternatively, the mobile phone can also automatically recognize the input content in the input box 301, and when a preset keyword (for example, telephone number, address, etc.) is recognized, the mobile phone can display the button 501. Of course, the user can also call out the button 501 by performing a corresponding gesture, and the button 501 can also be displayed in other locations besides the input box 301. The embodiment of the present application does not impose any restrictions on this.
[0152] It should be noted that the mobile phone can continuously update the historical input records recorded in the historical records (such as the historical record table 401). For example, the mobile phone can maintain the historical input records entered in the input box 301 within the last month in the historical record table 401. Then, when the input time of a certain historical input record exceeds the time limit of one month, the mobile phone can automatically delete the historical input record. Alternatively, the mobile phone can maintain a certain number (for example, 20) of historical input records in the historical record table 401. Then, when the historical input records in the historical record table 401 are greater than 20, the mobile phone can automatically delete the historical input records with an earlier input time. It can be understood that the historical record table 401 can be stored in the mobile phone or in the server.
[0153] The above embodiment describes how a historical input record (e.g., the above-described history record table 401) associated with input box 301 is generated when a user enters information into input box 301. The following embodiment, in conjunction with the accompanying drawings, details how candidate input items are provided to the user based on the historical input record when the user enters information into input box 301.
[0154] For example, Figure 6As shown, when the mobile phone is running the WeChat application, if it is detected that the user clicks on the input box 301 in the chat interface 601 with Mike, it means that the user is ready to enter information into the input box 301. In response to the user clicking on the input box 301, the mobile phone can display a first prompt box 602, for example, displaying the first prompt box 602 next to the input box 301. The first prompt box 602 contains one or more candidate input items 603. Among them, the candidate input item 603 can be a historical input record in the history record table 401 corresponding to the above-mentioned input box 301. For example, the candidate input item 603 can be one or more historical input records in the history record table 401 that the user inputs more frequently or most recently. Of course, in response to the user clicking on the input box 301, the WeChat application can also call the input method application to display the corresponding virtual keyboard 604, and the embodiment of the present application does not impose any restrictions on this.
[0155] Specifically, when it is detected that the user clicks on the above-mentioned input box 301, the WeChat application can send the ID of the input box 301 to the view system in the application framework layer, and then the view system can search for the historical record corresponding to the ID of the input box 301 in the stored historical records. In this way, the view system can display one or more historical input records in the historical records as candidate input items 603 in the above-mentioned first prompt box 602. Subsequently, if it is detected that the user selects a historical input record in the first prompt box 602, the mobile phone can automatically input the historical input record selected by the user into the input box 301, avoiding the user using the input method to repeatedly enter the same information as the historical input record, thereby improving the input efficiency when entering information into the input box.
[0156] In some embodiments, Figure 6 As shown, the historical input record displayed in the first prompt box 602 may be part of the historical record. The mobile phone may set a "More" button 605 in the first prompt box 602. When the user clicks button 605, the mobile phone may display other historical input records in the historical record corresponding to the input box 301 for the user to select. Alternatively, the mobile phone may display all historical input records in the historical record corresponding to the input box 301 for the user to select.
[0157] Alternatively, if the type of each historical input record in the input box 301 is recorded in the above historical records, then, Figure 7As shown, when it is detected that the user clicks the input box 301, the mobile phone can also display a second prompt box 701 in the chat interface 601. The second prompt box 701 contains the type of historical input records corresponding to the input box 301, such as text, emoticons, pictures, songs, etc. Then, the user can further search for a certain type of historical input records in these types. For example, if it is detected that the user clicks the "text" type in the second prompt box 701, as shown in FIG. Figure 8 As shown, the mobile phone can display text-type historical input records in the history record in a secondary menu 801 of the "Text" type. This allows the user to search for the desired text-type historical input record in menu 801. If the user selects a historical input record in menu 801, such as "My name is Alice," the mobile phone can automatically enter the historical input record "My name is Alice" into input box 301. This allows the user to quickly search for the historical input record they need to enter into input box 301 based on the historical input record type, further improving input efficiency in the mobile phone input box.
[0158] In some embodiments, Figure 7 As shown, the mobile phone can also set a setting button 702 in the second prompt box 701. The user can use the setting button 702 to manually manage the historical input records in the history table 401. For example, if it is detected that the user clicks the setting button 702, Figure 9 As shown, the mobile phone can jump to the history record editing interface 901. The user can manually modify the content of each historical input record in the history record, the type of historical input record, and other information in the editing interface 901. Alternatively, the user can also manually delete or add historical input records in the editing interface 901, thereby setting a history record that meets the user's personalized needs.
[0159] It should be noted that the event that triggers the mobile phone to display the above-mentioned first prompt box 602 (or second prompt box 701) may be the operation of the user selecting the above-mentioned input box 301. For example, the user clicks on the input box 301. The user selects the input box 301, which may trigger the mobile phone to display the above-mentioned first prompt box 602 (or second prompt box 701). Alternatively, the mobile phone may also detect whether the user inputs a preset gesture to the input box 301. For example, the preset gesture may be a long press, heavy press, double-click or slide gesture on the input box 301. If it is detected that the user has entered a preset gesture to the input box 301, the mobile phone may be triggered to display the above-mentioned first prompt box 602 (or second prompt box 701). In this way, the user can call out the above-mentioned first prompt box 602 (or second prompt box 701) by executing a preset gesture at any input moment when inputting in the input box 301.
[0160] Furthermore, after the mobile phone displays the first prompt box 602 (or the second prompt box 701), if the mobile phone does not detect that the user has performed any operation on the first prompt box 602 (or the second prompt box 701) within a preset time period, the mobile phone may hide the first prompt box 602 (or the second prompt box 701) in the chat interface 601. Of course, the mobile phone may also continue to display the first prompt box 602 (or the second prompt box 701) until it detects that the user clicks the send button in the input box 301.
[0161] Still taking the first prompt box 602 as an example, when the user inputs information into the input box 301, the candidate input items 603 in the first prompt box 602 may change with the input content of the user in the input box 301. Figure 10 As shown, the mobile phone can obtain the input content 1001 of the user in the input box 301 in real time. Then, the mobile phone can use the obtained input content 1001 as a keyword to search the historical records and retrieve the historical input records associated with the input content 1001. For example, Figure 10 If the input content 1001 shown in the figure is "my home", the mobile phone can retrieve historical input records containing the input content 1001 "my home" from the historical records (e.g., historical record table 401). The mobile phone can then update the retrieved historical input records as new candidate input items in the first prompt box 602. In this way, the historical input records recommended to the user in the first prompt box 602 can change in real time with the user's input, prompting the user to quickly enter historical input records associated with the current input content into the input box 301.
[0162] In the above embodiment, the example of recommending historical input records corresponding to input box 301 to the user when the user enters information into input box 301 is used. In other embodiments, when the user enters information into input box 301, the mobile phone may also recommend historical input records of the user in other input boxes as candidate input items to the user.
[0163] Still taking the input box 301 in the above chat interface 601 as an example, Figure 11 As shown in (a) of FIG, the candidate input items 603 in the first prompt box 602 displayed by the mobile phone are all historical input records in the history. The mobile phone can set a switch button 1101 in the first prompt box 602. The switch button 1101 can be used to switch other historical input records to the first prompt box 602 currently displayed by the mobile phone. For example, the historical input records of other input boxes can be switched to the first prompt box 602 currently displayed by the mobile phone. If it is detected that the user clicks the switch button 1101, Figure 11As shown in (b) of FIG, the mobile phone may update one or more historical input records in the history records recorded for other input boxes as new candidate input items 603′ in the first prompt box 602. For example, the mobile phone may use one or more historical input records that the user has input frequently or recently in other input boxes as new candidate input items 603′.
[0164] Alternatively, if it is detected that the user clicks the switch button 1101, Figure 12A As shown, the mobile phone can also display a first index box 1201 based on the granularity of the application. The first index box 1201 contains one or more application icons 1202 (or names) with input boxes. After the user selects the icon of the corresponding application in the first index box 1201, the mobile phone can display a first prompt box 602, and display the historical input records corresponding to the input box in the application as candidate input items in the first prompt box 602. For example, as shown in FIG. Figure 12A As shown, if it is detected that the user clicks the icon of the contact application in the first index box 1201, the mobile phone can hide the first index box 1201 and display one or more historical input records stored for the input box in the contact application in the first prompt box 602. It can be understood that Figure 12A The first prompt box in FIG. 1 may be the same as or different from the first prompt boxes described in other figures, and this is not limited in the embodiment of the present invention.
[0165] Alternatively, if it is detected that the user clicks the switch button 1101, Figure 12B As shown, the mobile phone can also display a second index box 1203 based on the type of historical input records. The second index box 1203 contains different types 1204 of historical input records stored in the mobile phone. After the user selects a corresponding type in the second index box 1203, the mobile phone can display the first prompt box 602 and display the historical input records corresponding to the type as candidate input items in the first prompt box 602. For example, as shown in FIG. Figure 12B As shown, if it is detected that the user clicks on the music type in the second index box 1203, the mobile phone can select one or more from the historical input records of all music types and display them in the first prompt box 602. At this time, the candidate input items in the first prompt box 602 are not limited to the historical input records in the historical record table 401 corresponding to the input box 301.
[0166] Understandably, in Figure 12A or Figure 12B In the example, the mobile phone can also set the above-mentioned switch button 1101 in the first prompt box 602. Please refer to the function of the switch button. Figure 11 , so I will not repeat it here. Figure 12BThe first prompt box in FIG. 1 may be the same as or different from the first prompt boxes in other figures, and this is not limited in the embodiment of the present invention.
[0167] That is to say, when the user enters information into a certain input box, the mobile phone can prompt the user across input boxes for historical input records that have been entered in other input boxes. In this way, the user's historical input records in different input boxes can be recommended to the user as candidate input items, avoiding the user from repeatedly entering the same input content in different input boxes and affecting input efficiency.
[0168] In the above embodiments, when a user inputs information into input box 301, the mobile phone recommends historical input records as candidate input items to the user. It is understood that in addition to the user's historical input records, the mobile phone can also intelligently generate corresponding candidate input items for the user based on relevant information of the input box or relevant information of the application to which the input box belongs.
[0169] For example, Figure 13 As shown, when it is detected that the user has selected an input box (such as input box 1301) or input information into the input box 1301, the mobile phone can identify the type of application to which the input box 1301 belongs. For example, the mobile phone can obtain the package name of the application to which the input box 1301 belongs, and then determine the type of the application based on the classification of the package name in the application market. If the application belongs to a communication or social application, such as a text message application, WeChat application, QQ, etc., the mobile phone can further identify the specific chat object when chatting using the input box 1301, such as the name, nickname, mobile phone number and other information of the other contact. If it is identified that the chat object when chatting using the input box 1301 is a specified contact, such as 10086, ** Bank, ** Company's customer service, etc., the mobile phone can use the corresponding intelligent algorithm to determine the candidate input items related to the identified contact.
[0170] Still Figure 13As shown, when a user clicks input box 1301, the phone can trigger the recognition that the application to which input box 1301 belongs is a text messaging application, i.e., a communication application. The phone can then determine that the chat partner's mobile number is 10086 when using input box 1301. Since 10086 is the phone number of a preset specific contact, the phone can further determine candidate input items associated with 10086. For example, when a user sends a text message to 10086, they typically reply with various SMS service codes. The phone can pre-store the correspondence between these SMS service codes and 10086. Thus, when the phone determines that the other party's mobile number is 10086, it can display a third prompt box 1302. For example, third prompt box 1302 can be displayed near input box 1301, and the SMS service code corresponding to 10086 can be displayed as a candidate input item in third prompt box 1302. This allows the phone to intelligently display candidate input items related to the chat partner in third prompt box 1302 based on the chat partner, thereby improving user input efficiency.
[0171] In other embodiments, if the mobile phone recognizes that the application to which the input box currently operated by the user belongs is a communication application or a social application, the mobile phone can also recognize the chat content in the chat interface where the input box is located at this time. Figure 14 As shown, when a mobile phone displays a chat interface 1401 with contact Zhang San, if it detects that the user has clicked an input box 1402 in chat interface 1401, the mobile phone can identify that the application to which input box 1402 belongs is a text messaging application, i.e., a communication application. Furthermore, the mobile phone can retrieve chat content 1403 between the user and contact Zhang San in chat interface 1401 and identify chat content 1403. For example, the mobile phone can identify whether chat content 1403 contains preset keywords such as time, date, location, and weather. Alternatively, the mobile phone can perform semantic analysis on chat content 1403 using a semantic recognition algorithm. Furthermore, based on the recognition results of chat content 1403, the mobile phone can generate candidate input items associated with chat content 1403 and display the generated candidate input items in a fourth prompt box 1404 of chat interface 1401.
[0172] For example, if the mobile phone recognizes that chat content 1403 contains weather-related information, the mobile phone may display the current weather forecast as a candidate input item in the fourth prompt box 1404. For another example, if the mobile phone recognizes that chat content 1403 contains food-related information, the mobile phone may display information about nearby restaurants found as candidate input items in the fourth prompt box 1404. The specific method for the mobile phone to recognize chat content and the specific method for the mobile phone to generate candidate input items based on the recognition results in the embodiments of the present application can be set by those skilled in the art based on actual application scenarios or actual experience, and the embodiments of the present application do not impose any restrictions on this.
[0173] In other embodiments, the mobile phone can also generate corresponding candidate input items based on the type of application to which the input box currently operated by the user belongs. For example, application types can be divided into multiple categories, such as communication, music, video, travel, and food. The mobile phone can pre-set an application list of different types of applications, so that the mobile phone can query the application list for the type of a specific application; alternatively, the mobile phone can query the server for the type of a specific application.
[0174] For example, Figure 15 As shown, after the user opens the QQ Music APP, the mobile phone can display the homepage 1501 of the QQ Music APP, which includes an input box 1502 for search. If it is detected that the user clicks on the input box 1502, the mobile phone can identify that the QQ Music application to which the input box 1502 belongs is a music type application. Furthermore, the mobile phone can display the relevant music information as a candidate input item in the fifth prompt box 1503. Among them, the music information can be information such as popular songs or popular singers with a high search frequency, and the embodiment of the present application does not impose any restrictions on this. Of course, if the mobile phone recognizes that the type of the current application is a video application, the mobile phone can use related video information (such as popular TV series, movies, etc.) as a candidate input item; if the mobile phone recognizes that the type of the current application is a travel application, the mobile phone can use related travel information (such as special air tickets, scenic spot recommendations, etc.) as a candidate input item. It can be understood that those skilled in the art can set a specific method for generating candidate input items related to the application type based on actual experience or actual application scenarios.
[0175] In addition, as Figure 15 As shown, after the mobile phone displays the fifth prompt box 1503, if it detects that the user has selected a candidate input item in the fifth prompt box 1503, the mobile phone may automatically input the candidate input item selected by the user into the input box 1502. Alternatively, in addition to automatically inputting the candidate input item selected by the user into the input box 1502, the mobile phone may also automatically use the candidate input item selected by the user as a search keyword to search and display the search results.
[0176] In other embodiments, when a user operates a certain input box, the mobile phone can also generate corresponding candidate input items based on the user's historical input records in the input box. For example, the mobile phone can query the history record table corresponding to the input box based on the ID of the input box currently being operated by the user. Furthermore, the mobile phone can generate relevant candidate input items based on each historical input record in the queried history record table. For example, if the mobile phone determines from the above history record table that the historical input records with a user input frequency greater than a set value are all historical input records about books, then the mobile phone can prompt the user with information such as popular book titles and popular authors related to books as candidate input items. In other words, the mobile phone can judge the user's input habits in the input box based on the user's historical input records in the input box, and then generate corresponding candidate input items for the user based on the user's input habits.
[0177] It can be seen that in the embodiment of the present application, when the user operates any input box in the mobile phone, the mobile phone can generate corresponding candidate input items based on the historical input records of the input box, the type of application to which the input box belongs, the contact information or chat content associated with the input box, and other information, so that the user can quickly select the input content entered into the input box this time from the candidate input items, thereby improving the input efficiency in each input box in the mobile phone and bringing an intelligent input experience to the user.
[0178] It should be noted that when a user operates an input box in a mobile phone, the mobile phone can generate multiple candidate input items according to the methods described in the above embodiments. These candidate input items can include both the user's historical input records and candidate input items generated by the mobile phone based on information such as application type, contact information or chat content. For example, Figure 16 As shown, if it is detected that the user clicks on the input box 1502 in the homepage 1501 of the QQ Music APP, the mobile phone can display two prompt boxes, namely prompt box 1601 and prompt box 1602, and prompt box 1601 and prompt box 1602 respectively include one or more candidate input items. Among them, the candidate input items in prompt box 1601 are the historical input records of the user in input box 1502, and the candidate input items in prompt box 1602 are the relevant music information generated by the mobile phone for the user based on the application type of the QQ Music APP. Subsequently, if it is detected that the user selects a candidate input item in a prompt box, the mobile phone can automatically input the selected candidate input item into the input box 1502. In this way, the user can complete the input process into the input box 1502 with only one selection operation, which not only improves the input efficiency of the input box, but also provides the user with an intelligent input experience.
[0179] like Figure 17As shown, an embodiment of the application discloses an electronic device, including: a touch screen 1701, wherein the touch screen 1701 includes a touch-sensitive surface 1706 (the touch-sensitive surface 1706 can be used as an input device) and a display screen 1707; one or more processors 1702; a memory 1703; one or more applications 1708; and one or more computer programs 1704. The above-mentioned devices can be interconnected, for example, through one or more communication buses 1705.
[0180] The one or more computer programs 1704 are stored in the memory 1703 and configured to be executed by the one or more processors 1702. The one or more computer programs 1704 include instructions. The instructions can be used to execute the following steps: Figure 2-Figure 16 and each step in the corresponding embodiment.
[0181] The embodiment of the present application further provides a computer storage medium in which computer program code is stored. When the processor executes the computer program code, the electronic device can execute the computer program code. Figure 2-Figure 16 A method for entering information into an input box related to any of the above.
[0182] The present application also provides a computer program product, which, when executed on a computer, enables the computer to execute the Figure 2-Figure 16 A method for entering information into an input box related to any of the above.
[0183] Among them, the electronic device, computer storage medium or computer program product provided in the embodiments of the present application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.
[0184] It is understood that the embodiments of the present invention are described based on the drawings in the specification, and each of the drawings in the specification can be understood as an embodiment.
[0185] The technical solutions of the embodiments of the present application, or the portion that contributes to the prior art, or all or part of the technical solutions, may be embodied in the form of a software product. This computer software product is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) or a processor to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: flash memory, mobile hard disk, read-only memory, random access memory, magnetic disk, optical disk, and other media that can store program code.
[0186] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present invention should be included in the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be based on the scope of protection of the claims.
Claims
1. A method for inputting information into an input box, characterized in that: include: The electronic device displays a display interface, wherein the display interface includes a first input box; The electronic device receives a user operation on the first input box; wherein the operation includes: a click operation; In response to the operation, the electronic device displays a first prompt box on the display interface, where the first prompt box includes M types of historical input records, where M is an integer greater than 0; The electronic device receives a first selection operation by a user selecting a first type from the M types; In response to the first selection operation, the electronic device displays N candidate input items on the display interface, where the N candidate input items are all historical input records of the first type, where N is an integer greater than 0; the N candidate input items include historical input records of the second input box and / or historical input records of the first input box; the first input box is an input box of a first application, and the second input box is an input box of a second application; or, the first input box and the second input box are two different input boxes in the same application; The electronic device receives a second selection operation by a user selecting a first candidate input item from the N candidate input items; In response to the second selection operation, the electronic device inputs the first candidate input item into the first input box.
2. The method according to claim 1, characterized in that The first prompt box also includes a first button, and the method further includes: In response to the user clicking the first button, the electronic device displays other historical input records except the N historical input records in the first prompt box.
3. The method according to claim 1, characterized in that The first prompt box further includes a second button; and the method further includes: In response to a user clicking the second button, the electronic device displays an index box with application as the granularity; In response to the user selecting the first application in the index box, the electronic device displays a second prompt box on the display interface, where the second prompt box includes at least one historical input record of the first application.
4. The method according to any one of claims 1 to 3, characterized in that The method further comprises: The electronic device receives input content input by the user into the first input box; The electronic device displays historical input records associated with the input content in the first prompt box based on the input content.
5. The method according to claim 4, characterized in that The display interface also includes a save button; After the electronic device receives the input content input by the user into the first input box, the method further includes: In response to the user clicking the save button, the electronic device saves the input content as a historical input record of the first input box.
6. The method according to claim 5, characterized in that In response to the user clicking the save button, the electronic device saves the input content as a historical input record of the first input box, including: In response to the user clicking the save button, the electronic device displays at least one save type of the input content; In response to a save type selected by the user, the electronic device saves the input content, wherein the input content is related to the save type selected by the user.
7. The method according to any one of claims 1 to 3, characterized in that The M types include at least one of text, emoticons, pictures, videos, numbers, songs or ancient poems.
8. The method according to any one of claims 1 to 3, characterized in that After the electronic device receives the user's operation on the first input box, the method further includes: In response to the operation, the electronic device displays K candidate input items on the display interface, where K is an integer greater than 0; Among them, the K candidate input items are generated based on the chat content contained in the display interface; or, the K candidate input items are generated based on the chat objects in the display interface; or, the K candidate input items are generated based on the type of application to which the display interface belongs.
9. An electronic device, characterized in that: include: One or more processors, a memory, an input device, and a display screen; the memory, the input device, and the display screen are coupled to the one or more processors, the memory is used to store computer program code, and the computer program code includes computer instructions. When the one or more processors execute the computer instructions, The display screen is used to: display a display interface, wherein the display interface includes a first input box; The input device is configured to receive a user operation on the first input box; wherein the operation includes a click operation; The processor responds to the user's operation on the first input box, and the display screen is further configured to: display a first prompt box on the display interface, wherein the first prompt box includes M types of historical input records, where M is an integer greater than 0; The input device is further configured to: receive a first selection operation by a user selecting a first type from the M types; In response to the first selection operation, the processor is further configured to: display N candidate input items on the display interface, where the N candidate input items are all historical input records of the first type, where N is an integer greater than 0; the N candidate input items include historical input records of the second input box and / or historical input records of the first input box; the first input box is an input box of a first application, and the second input box is an input box of a second application; or, the first input box and the second input box are two different input boxes in the same application; The input device is further configured to: receive a second selection operation by a user selecting a first candidate input item from the N candidate input items; The processor inputs the first candidate input item into the first input box in response to the second selection operation, and the display screen is further configured to display the first candidate input item input into the first input box.
10. The electronic device according to claim 9, wherein: The first prompt box also includes a first button; The input device is further configured to: receive an operation of a user clicking the first button; The processor responds to the user's operation of clicking the first button; the display screen is further used to: display other historical input records except the N historical input records in the first prompt box.
11. The electronic device according to claim 9 or 10, characterized in that: The first prompt box also includes a second button; The input device is further configured to: receive an operation of a user clicking the second button; The processor responds to the user clicking the second button; the display screen is further configured to: display an index box with application as the granularity; The input device is further configured to: receive an operation by a user selecting a first application in the index box; The processor responds to the user's operation of selecting the first application in the index box; the display screen is further used to: display a second prompt box on the display interface, where the second prompt box includes at least one historical input record of the first application.
12. The electronic device according to claim 9 or 10, characterized in that: The input device is further configured to: receive input content input by a user into the first input box; The processor responds to input content input by the user into the first input box; the display screen is further used to: based on the input content, display historical input records associated with the input content in the first prompt box.
13. The electronic device according to claim 12, wherein: The display interface also includes a save button; The input device is further configured to: receive an operation of a user clicking the save button; In response to the user clicking the save button, the processor saves the input content as a historical input record of the first input box in a historical input record.
14. The electronic device according to claim 13, wherein: In response to the user clicking the save button, the processor causes the display screen to display at least one save type of the input content; The input device is further used to receive a save type selected by a user, and the input content is related to the save type selected by the user.
15. The electronic device according to claim 9 or 10, characterized in that: The M types include at least one of text, emoticons, pictures, videos, numbers, songs or ancient poems.
16. The electronic device according to claim 9 or 10, characterized in that: The display screen is further configured to: display K candidate input items in the display interface, where K is an integer greater than 0; Among them, the K candidate input items are generated based on the chat content contained in the display interface; or, the K candidate input items are generated based on the chat objects in the display interface; or, the K candidate input items are generated based on the type of application to which the display interface belongs.
Citation Information
Patent Citations
Content input method and device
CN105389114A
Recommending method and device and device for recommending
CN106708282A