WO2020062014A1 - Method for inputting information into input box and electronic device - Google Patents

Method for inputting information into input box and electronic device Download PDF

Info

Publication number
WO2020062014A1
WO2020062014A1 PCT/CN2018/108291 CN2018108291W WO2020062014A1 WO 2020062014 A1 WO2020062014 A1 WO 2020062014A1 CN 2018108291 W CN2018108291 W CN 2018108291W WO 2020062014 A1 WO2020062014 A1 WO 2020062014A1
Authority
WO
WIPO (PCT)
Prior art keywords
input
box
electronic device
user
candidate
Prior art date
Application number
PCT/CN2018/108291
Other languages
French (fr)
Chinese (zh)
Inventor
沈日胜
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2018/108291 priority Critical patent/WO2020062014A1/en
Priority to CN201880097766.2A priority patent/CN112740148A/en
Publication of WO2020062014A1 publication Critical patent/WO2020062014A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes

Definitions

  • 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.
  • electronic devices such as mobile phones and tablet computers have become one of the important tools for users to input and output information.
  • the mobile phone when the mobile phone is running a browser application, the user can enter keywords in the browser's input box to search for related information; or when the mobile phone is running a chat application, the user can enter a chat into the contact in the input box of the chat window content.
  • the input box in each application is an important channel for information interaction between the user and the mobile phone.
  • some applications can provide candidate input options such as historical input records or popular recommendations during user input.
  • the mobile phone may automatically input the candidate input options selected by the user into the input box.
  • each application's strategy for setting candidate input options for the input box may be different, and even some applications do not have the function of recommending candidate input options for the user, which makes the input efficiency of users different when using the input boxes of different applications in the mobile phone. Uneven.
  • the embodiments of the present application provide a method for inputting information into an input box and an electronic device, which can improve a user's input efficiency in each input box in a mobile phone.
  • the technical solution of the present application provides a method for inputting information into an input box, including: an electronic device displaying a display interface, the display interface including a first input box; the electronic device receiving a user's operation on the first input box Then, a first prompt box may be displayed on the display interface, and the first prompt box includes M types (M is an integer greater than 0) with historical input records; further, the electronic device receives that the user selects the first type from the M types.
  • N is an integer greater than 0
  • the N candidate input items are the historical input records of the first type; when the electronic device is After receiving the second selection operation in which the user selects the first candidate input item from the N candidate input items, the first candidate input item is automatically input into the first input box.
  • the user can perform M types of historical input records by performing a preset operation on any input box. After the user selects a certain type, the electronic device can provide the user with N historical input records belonging to the type. In this way, the user can quickly find the historical input record that needs to be entered among the many historical input records in the input box through the type of the historical input record, thereby improving the input efficiency of the mobile phone input box.
  • the N candidate input items may include historical input records of the second input box; or, the N candidate input items may include historical input records of the first input box. That is, the N candidate input items displayed by the electronic device in the first prompt box may be related to the first input box triggered this time, or may be related to other input boxes.
  • the first input box may be an input box of a first application (such as a browser), and the second input box is an input box of a second application (such as Alipay), that is, the first input box and the second input box belong to Two input boxes in different applications; or the first input box and the second input box can also be two different input boxes in the same application.
  • the first input box can be an input box in the chat interface in WeChat.
  • the second input box may be an input box for searching for friends in WeChat.
  • the first prompt box further includes a first button.
  • the method further includes: in response to the user clicking the first button, the electronic device Other historical input records than the N historical input records are displayed in the first prompt box.
  • the other historical input records may all be the first type described above, and the other historical input records may be the historical input records of the first input box or the historical input records of the other input boxes. Without any restrictions.
  • the user can trigger the electronic device to provide more historical input records for the user to select through the first button.
  • the first prompt box further includes a second button; after the electronic device displays the first prompt box on the display interface, the method further includes: in response to the user clicking the second button, the electronic device The index box is displayed with the granularity of the application; 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, and the second prompt box includes at least one historical input record of the first application, The history 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 an application as the granularity under a certain type of historical input record to enter the historical input record of an application into the first input box.
  • the method further includes: the electronic device receives input content input by the user into the first input box; and based on the input content, the electronic device enters the first prompt box in the first prompt box. Displays historical input records associated with this input. In this way, the historical input record recommended to the user in the first prompt box can change in real time as the user inputs, and the user can be prompted to quickly enter the historical input record associated with the current input content into the first input box.
  • the display interface further 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 The device saves the input content as a history input record of the first input box.
  • the electronic device in response to the user's operation of clicking the save button, saves the input content as a history input record of the first input box, which specifically includes: in response to the user's operation of clicking the save button, The electronic device may first display at least one save type of the input content, for example, text, picture, expression, etc .; further, 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 Related to the save type selected by the user.
  • the above M types include at least one of text, expression, picture, video, number, song, or ancient poetry.
  • the method further includes: in response to the operation, the electronic device displays K (K is an integer greater than 0) candidate inputs in the display interface. Items; wherein the K candidate input items are generated based on the chat content included in the display interface; or the K candidate input items are generated according to the chat object in the display interface; or the K candidate input items are generated Items are generated based on the type of application to which the display interface belongs.
  • 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 input into the input box among the candidate input items, thereby improving the input efficiency of each input box in the mobile phone, and further bringing an intelligent input experience to the user.
  • the technical solution of the present application provides a method for inputting information into an input box, including: the electronic device displays a display interface including the first input box; and the electronic device receives a user's operation on the first input box. Then, a first prompt box is displayed on the display interface, and the first prompt box includes N candidate input items, and the N candidate input items include a history input record of the second input box; then, if the electronic device receives the user from this, In the selection operation of selecting the first candidate input item among the N candidate input items, the electronic device may automatically input the first candidate input item into the first input box.
  • the user can perform a preset operation on any input box, and the electronic device can retrieve a history input record containing other input boxes.
  • the user's historical input records in different input boxes can be recommended to the user as candidate input items, to avoid users from repeatedly entering the same input content in different input boxes and affecting input efficiency.
  • the N candidate input items further include a historical input record of the first input box.
  • the method further includes: the electronic device receives input content input by the user into the first input box; wherein the electronic device displays the first prompt box on the display interface, The method includes: the electronic device displays N candidate input items associated with the input content in a first prompt box.
  • the N candidate input items associated with the input content may specifically refer to: N candidate input items including the above input content, taking the input content as "My” for example, and the N associated with the input content
  • the candidate input items may be candidate input items including "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 input content, still Taking the input content as "My" as an example, the N candidate input items associated with the input content may be candidate input items of text type.
  • the N candidate input items include a history input record with an input frequency greater than a preset value, or a history input record input by a user within a preset time.
  • the technical solution of the present application provides a method for inputting information into an input box, including: the electronic device displays a display interface, the display interface including the first input box; and the electronic device receives a user operation on the first input box. Then, it is recognized 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 display interface is a designated contact; if it is a designated contact, the electronic device may A first prompt box is displayed in the display interface, and the first prompt box includes N candidate input items associated with the specified contact; if the electronic device receives a user's selection operation of selecting the first candidate input item from the N candidate input items , The electronic device may 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 input efficiency of the user.
  • the electronic device may also obtain the chat content in the display interface; further, the electronic device may generate related candidate input items according to the chat content and prompt the user.
  • the electronic device may intelligently prompt the user with candidate input items related to the chat content in the first prompt box according to different chat contents, so as to improve the input efficiency of the user.
  • the technical solution of the present application provides a method for inputting information into an input box, including: the electronic device runs a first application and displays a display interface, the display interface including the first input box; In an input box operation, 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 display interface through the application layer. In response to a user's operation of selecting a first candidate input item from the N candidate input items, the electronic device inputs the first candidate input item into the first input box.
  • the electronic device can provide candidate input items according to the above method, and the user can use the candidate input items to each Input information is convenient and quick in the input box, thereby alleviating the bad user experience of uneven input efficiency in different input boxes.
  • the above application framework layer includes a view system (for example, a text view control), and the steps performed by the application framework layer may be specifically performed by the view system.
  • a view system for example, a text view control
  • the N candidate input items include at least one of a historical input record of the first input box, or at least one of a historical input record of the second input box.
  • a history record is stored in the electronic device, and the history record includes a correspondence between the ID of the input box and the history input record; at this time, the first application in the electronic device provides an application framework
  • the layer requests 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 frame layer; the application frame layer in the electronic device queries the first input in the above-mentioned historical record and One or more historical input records corresponding to the ID of the box.
  • the foregoing history record includes a correspondence between a history input record and a type of the history input record; at this time, the first application in the electronic device requests the application framework layer to obtain N candidate input items, including: in the electronic device The first application 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 historical record for one or more historical input records corresponding to the target type.
  • the method further includes: the first application in the electronic device receives input content input by the user into the first input box; the first application in the electronic device will The input content and the ID of the first input box are sent to the application framework layer; the application framework layer in the electronic device uses the input content as a historical input record, and stores the information between the input content and the ID of the first input box. Correspondence.
  • the method before the electronic device runs the first application, the method further includes: the first application in the electronic device sends a registration request for the first input box to the application framework layer; in response to the registration request, the electronic device The application framework layer generates the ID of 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 history.
  • the technical solution of the present application provides an electronic device including: an input device, a display screen, one or more processors, a memory, and one or more computer programs; wherein the processor and the input device, the processor, and The memories are all coupled, and the one or more computer programs are stored in the memory.
  • the processor executes the one or more computer programs stored in the memory, so that the electronic device executes any one of the foregoing. How to enter information into the input box.
  • the technical solution of the present application provides a computer storage medium including computer instructions.
  • the computer instructions When the computer instructions are executed on the electronic device, the electronic device is caused to execute the method for inputting information into an input box according to any one of the foregoing.
  • the technical solution of the present application provides a computer program product.
  • the computer program product runs on an electronic device, the electronic device executes the method for inputting information into an input box according to any one of the foregoing.
  • the terminal provided 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, for the beneficial effects that can be achieved, reference may be made to the beneficial effects in the corresponding methods provided above, which are not repeated here.
  • the foregoing input device may be a touch-sensitive surface, and the touch-sensitive surface may also be referred to as a touch sensor. Among them, the touch-sensitive surface and the display screen may be referred to as a touch screen.
  • 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.
  • the mobile phone can display a cursor in the input box and also display an input method application, such as displaying a virtual key, in response to clicking the input box, double-clicking the input box, long-pressing the input box, or pressing the input box.
  • FIG. 1 is a first schematic structural diagram of an electronic device according to an embodiment of the present application.
  • FIG. 2 is a schematic structural diagram of an operating system in an electronic device according to an embodiment of the present application.
  • FIG. 3 is a first schematic scenario of a method for inputting information into an input box according to an embodiment of the present application
  • FIG. 4 is a second scenario diagram of a method for inputting information into an input box according to an embodiment of the present application
  • FIG. 5 is a third schematic scenario of a method for inputting information into an input box according to an embodiment of the present application.
  • FIG. 6 is a fourth schematic scenario of a method for inputting information into an input box according to an embodiment of the present application.
  • FIG. 7 is a fifth schematic scenario of a method for inputting information into an input box according to an embodiment of the present application.
  • FIG. 8 is a sixth schematic scenario diagram of a method for inputting information into an input box according to an embodiment of the present application.
  • FIG. 9 is a scenario diagram VII of a method for inputting information into an input box according to an embodiment of the present application.
  • FIG. 10 is a schematic diagram 8 of a method for inputting information into an input box according to an embodiment of the present application.
  • FIG. 11 is a scenario diagram IX of a method for inputting information into an input box according to an embodiment of the present application.
  • FIG. 12A is a schematic diagram ten of a method for inputting information into an input box according to an embodiment of the present application.
  • FIG. 12B is a schematic diagram XI of a method for inputting information into an input box according to an embodiment of the present application.
  • FIG. 13 is a schematic view 12 of a method for inputting information into an input box according to an embodiment of the present application
  • FIG. 14 is a schematic view 13 of a scenario of a method for inputting information into an input box according to an embodiment of the present application
  • FIG. 15 is a schematic diagram 14 of a scenario of a method for inputting information into an input box according to an embodiment of the present application.
  • FIG. 16 is a schematic diagram 15 of a scenario of a method for inputting information into an input box according to an embodiment of the present application.
  • FIG. 17 is a second schematic structural diagram of an electronic device according to an embodiment of the present application.
  • a method for inputting information into an input box provided by the embodiment of the present application can be applied to an electronic device.
  • the electronic device may specifically be a mobile phone, a tablet computer, a desktop, a laptop, a notebook computer, an Ultra-mobile Personal Computer (UMPC), a handheld computer, a netbook, or a Personal Digital Assistant (PDA).
  • UMPC Ultra-mobile Personal Computer
  • PDA Personal Digital Assistant
  • Wearable electronic devices, virtual reality devices, etc. the specific forms of the electronic devices are not particularly limited in the following embodiments.
  • FIG. 1 shows a schematic structural diagram of an electronic device 100.
  • 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 charge management module 140, a power management module 141, a battery 142, an antenna 1, and an antenna 2 , Mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display 194, and Subscriber identification module (SIM) card interface 195 and the like.
  • a processor 110 an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, and an antenna 2 , Mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 19
  • the sensor module 180 may include a pressure sensor 180A, a gyro 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, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
  • the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100.
  • the electronic device 100 may include more or fewer parts than shown, or some parts may be combined, or some parts may be split, or different parts may be arranged.
  • the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image, signal processor, ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural-network processing unit (NPU) Wait.
  • AP application processor
  • modem processor graphics processing unit
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • different processing units may be independent devices or integrated in one or more processors.
  • the controller may be a nerve center and a command center of the electronic device 100.
  • the controller can generate operation control signals according to the instruction operation code and timing signals, and complete the control of fetching and executing instructions.
  • the processor 110 may further include a memory for storing instructions and data.
  • the memory in the processor 110 may be a cache memory.
  • the memory may store instructions or data that the processor 110 has just used or used cyclically. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated accesses are avoided and the waiting time of the processor 110 is reduced, thereby improving the efficiency of the system.
  • the processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit (inter-integrated circuit, sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver receiver / transmitter (UART) interface, mobile industry processor interface (MIPI), general-purpose input / output (GPIO) interface, subscriber identity module (SIM) interface, and / Or universal serial bus (universal serial bus, USB) interface.
  • I2C integrated circuit
  • I2S integrated circuit
  • PCM pulse code modulation
  • UART universal asynchronous transceiver receiver / transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input / output
  • SIM subscriber identity module
  • USB universal serial bus
  • the I2C interface is a two-way synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL).
  • the processor 110 may include multiple sets of I2C buses.
  • the processor 110 may be respectively coupled to a touch sensor 180K, a charger, a flash, a camera 193, and the like through different I2C bus interfaces.
  • the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface to implement the touch function of the electronic device 100.
  • the I2S interface can be used for audio communication.
  • the processor 110 may include multiple sets of I2S buses.
  • the processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170.
  • the audio module 170 may transmit audio signals to the wireless communication module 160 through an I2S interface, so as to implement a function of receiving a call through a Bluetooth headset.
  • the PCM interface can also be used for audio communications, sampling, quantizing, and encoding analog signals.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to implement the function of receiving calls through a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus for asynchronous communication.
  • the bus may be a two-way communication bus. It converts the data to be transferred between serial and parallel communications.
  • a UART interface is generally used to connect the processor 110 and the wireless communication module 160.
  • the processor 110 communicates with a Bluetooth module in the wireless communication module 160 through a UART interface to implement a Bluetooth function.
  • the audio module 170 may transmit audio signals to the wireless communication module 160 through a UART interface, so as to implement a function of playing music through a Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with peripheral devices such as the display 194, the camera 193, and the like.
  • the MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), and the like.
  • CSI camera serial interface
  • DSI display serial interface
  • the processor 110 and the camera 193 communicate through a CSI interface to implement a shooting function of the electronic device 100.
  • the processor 110 and the display screen 194 communicate through a DSI interface to implement a display function of the electronic device 100.
  • the GPIO interface can be configured by software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface may be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like.
  • GPIO interface can also be configured as I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 130 is an interface that complies with the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and a peripheral device. It can also be used to connect headphones and play audio through headphones. This interface can also be used to connect other electronic devices, such as AR devices.
  • the interface connection relationship between the modules illustrated in the embodiments of the present invention is only a schematic description, and does not constitute a limitation on the structure of the electronic device 100.
  • the electronic device 100 may also adopt different interface connection modes or a combination of multiple interface connection modes in the above embodiments.
  • the charging management module 140 is configured to receive a charging input from a charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 140 may receive the charging input of the wired charger through the USB interface 130.
  • the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device 100. While the charge management module 140 is charging the battery 142, the power management module 141 can also provide power to the electronic device.
  • the power management module 141 is used to connect the battery 142, the charge management module 140 and the processor 110.
  • the power management module 141 receives inputs from the battery 142 and / or the charge management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 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, number of battery cycles, battery health (leakage, impedance) and other parameters.
  • the power management module 141 may also be disposed in the processor 110.
  • the power management module 141 and the charge management module 140 may be provided in the same device.
  • the wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, and a baseband processor.
  • the antenna 1 and the antenna 2 are used for transmitting and receiving electromagnetic wave signals.
  • Each antenna in the electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization.
  • antenna 1 can be multiplexed into a diversity antenna for a wireless local area network.
  • the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 150 may provide a wireless communication solution including 2G / 3G / 4G / 5G and the like applied on 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), and the like.
  • the mobile communication module 150 may receive the electromagnetic wave by the antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic wave, and transmit it to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic wave radiation through the antenna 1.
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110.
  • at least part of the functional modules of the mobile communication module 150 may be provided in the same device as at least part of the modules of the processor 110.
  • the modem processor may include a modulator and a demodulator.
  • the modulator is configured to modulate a low-frequency baseband signal to be transmitted into a 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.
  • the low-frequency baseband signal is processed by the baseband processor and then 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.
  • the modem processor may be a separate device.
  • the modem processor may be independent of the processor 110 and disposed in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 may provide wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (bluetooth, BT), and global navigation satellites applied to the electronic device 100. Wireless communication solutions such as global navigation system, GNSS, frequency modulation (FM), near field communication (NFC), and infrared technology (infrared, IR).
  • the wireless communication module 160 may be one or more devices that integrate 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 may also receive a signal to be transmitted from the processor 110, frequency-modulate it, amplify it, and convert it into electromagnetic wave radiation through the antenna 2.
  • the antenna 1 of the electronic device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with 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 a global mobile communication system (GSM), a general packet radio service (GPRS), a code division multiple access (CDMA), and broadband. Code division multiple access (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 navigation system (BDS), and a quasi-zenith satellite system (quasi -zenith satellite system (QZSS) and / or satellite based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Bertdou navigation navigation system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation systems
  • the electronic device 100 implements a display function through a GPU, a display screen 194, and an application processor.
  • the GPU is a microprocessor for image processing and is connected to the display 194 and an application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • the processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos, and the like.
  • the display screen 194 includes a display panel.
  • the display panel can use a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light-emitting diode).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • active matrix organic light emitting diode active-matrix organic light-emitting diode
  • active-matrix organic light-emitting diode active-matrix organic light-emitting diode
  • emitting diodes AMOLED
  • flexible light-emitting diodes FLEDs
  • Miniled MicroLed
  • Micro-oLed quantum dot light emitting diodes
  • QLEDs quantum dot light emitting diodes
  • the electronic device 100 may include one or N display screens 194, where N is a positive integer
  • the electronic device 100 may implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
  • the ISP processes the data fed back from the camera 193. For example, when taking a picture, the shutter is opened, and the light is transmitted to the light receiving element of the camera through the lens. The light signal is converted into an electrical signal, and the light receiving element of the camera passes the electrical signal to the ISP for processing and converts the image to the naked eye. ISP can also optimize the image's noise, brightness, and skin tone. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, an ISP may be provided in the camera 193.
  • the camera 193 is used to capture still images or videos.
  • An object generates an optical image through a lens and projects it onto a photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to convert it into a digital image signal.
  • the ISP outputs digital image signals to the DSP for processing.
  • DSP converts digital image signals into image signals in standard RGB, YUV and other formats.
  • the electronic device 100 may include one or N cameras 193, where N is a positive integer greater than 1.
  • a digital signal processor is used to process digital signals. In addition to 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 a Fourier transform on the frequency point energy and the like.
  • Video codecs are used to compress or decompress digital video.
  • the electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple encoding formats, such as: moving picture experts (MPEG) 1, MPEG2, MPEG3, MPEG4, and so on.
  • MPEG moving picture experts
  • the NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • the NPU can quickly process input information and continuously learn.
  • the NPU can realize applications such as intelligent recognition of the electronic device 100, such as image recognition, face recognition, speech recognition, text understanding, and the like.
  • the external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to extend the storage capacity of the electronic device 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, save music, videos and other files on an external memory card.
  • the internal memory 121 may be used to store computer executable program code, where the executable program code includes instructions.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 121.
  • the internal memory 121 may include a storage program area and a storage data area.
  • the storage program area may store an operating system, at least one application required by a function (such as a sound playback function, an image playback function, etc.) and the like.
  • the storage data area may store data (such as audio data, phone book, etc.) created during the use of the electronic device 100.
  • 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 magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like.
  • UFS universal flash memory
  • the electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone interface 170D, and an application processor. Such as music playback, recording, etc.
  • the audio module 170 is configured to convert digital audio information into an analog audio signal and output, and is also used to convert an analog audio input into a digital audio signal.
  • the audio module 170 may also be used to encode and decode audio signals.
  • the audio module 170 may be disposed in the processor 110, or some functional modules of the audio module 170 may be disposed in the processor 110.
  • the speaker 170A also called a "horn" is used to convert audio electrical signals into sound signals.
  • the electronic device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
  • the receiver 170B also referred to as the "handset" is used to convert audio electrical signals into sound signals.
  • the electronic device 100 answers a call or a voice message, it can answer the voice by holding the receiver 170B close to the human ear.
  • the microphone 170C also called “microphone”, “microphone”, is used to convert sound signals into electrical signals.
  • the user can make a sound through the mouth near the microphone 170C, and input a sound signal into the microphone 170C.
  • the electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, in addition to collecting sound signals, it may also implement a noise reduction function. In other embodiments, the electronic device 100 may further be provided with three, four, or more microphones 170C to achieve sound signal collection, noise reduction, identification of sound sources, and directional recording.
  • the headset interface 170D is used to connect a wired headset.
  • the headphone interface 170D may be a USB interface 130 or a 3.5mm open mobile electronic device platform (OMTP) standard interface, a cellular telecommunications industry association (United States of America, CTIA) standard interface.
  • OMTP open mobile electronic device platform
  • CTIA cellular telecommunications industry association
  • the pressure sensor 180A is used to sense a pressure signal, and can convert the pressure signal into an electrical signal.
  • the pressure sensor 180A may be disposed on the display screen 194.
  • the capacitive pressure sensor may be at least two parallel plates having a conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes.
  • the electronic device 100 determines the intensity of the pressure according to the change in capacitance.
  • the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the electronic device 100 may also calculate the touched position based on the detection signal of the pressure sensor 180A.
  • touch operations acting on the same touch position but different touch operation intensities may correspond to different operation instructions. For example, when a touch operation with a touch operation intensity lower than the first pressure threshold is applied to the short message application icon, an instruction for viewing the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold is applied to the short message application icon, an instruction for creating a short message is executed.
  • the gyro sensor 180B may be used to determine a movement posture of the electronic device 100.
  • the angular velocity of the electronic device 100 around three axes ie, the x, y, and z axes
  • the gyro sensor 180B can be used for image stabilization.
  • the gyro sensor 180B detects the angle of the electronic device 100 shake, and calculates the distance that the lens module needs to compensate according to the angle, so that the lens cancels the shake of the electronic device 100 through the backward movement to achieve image stabilization.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
  • the barometric pressure sensor 180C is used to measure air pressure.
  • the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C, and assists in positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the electronic device 100 can detect the opening and closing of the flip leather case by using the magnetic sensor 180D.
  • the electronic device 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. Further, according to the opened and closed state of the holster or the opened and closed state of the flip cover, characteristics such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the magnitude of acceleration of the electronic device 100 in various directions (generally three axes).
  • the magnitude and direction of gravity can be detected when the electronic device 100 is stationary. It can also be used to recognize the posture of electronic devices, and is used in applications such as switching between horizontal and vertical screens, and pedometers.
  • the electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 may use the distance sensor 180F to measure the distance to achieve fast focusing.
  • 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 through a light emitting diode.
  • the electronic device 100 uses a photodiode to detect infrared reflected light from a nearby object. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficiently reflected light is detected, the electronic device 100 may determine that there is no object near the electronic device 100.
  • the electronic device 100 may 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 holster mode, and the pocket mode automatically unlocks and locks the screen.
  • the ambient light sensor 180L is used to sense ambient light brightness.
  • the electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness.
  • Ambient light sensor 180L can also be used to automatically adjust white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touch.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the electronic device 100 may use the collected fingerprint characteristics to realize fingerprint unlocking, access application lock, fingerprint photographing, fingerprint answering an incoming call, and the like.
  • the temperature sensor 180J is used to detect the temperature.
  • the electronic device 100 executes a temperature processing strategy using the temperature detected by the temperature sensor 180J. For example, when the temperature reported by the temperature sensor 180J exceeds the threshold, the electronic device 100 performs a performance reduction of a processor located near the temperature sensor 180J so as to reduce power consumption and implement thermal protection.
  • the electronic device 100 when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid the abnormal shutdown of the electronic device 100 caused by the low temperature.
  • the electronic device 100 when the temperature is lower than another threshold, performs a boost on the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • the touch sensor 180K is also called “touch panel”.
  • the touch sensor 180K may be disposed on the display screen 194, and the touch screen is composed of the touch sensor 180K and the display screen 194, which is also referred to as a "touch screen”.
  • the touch sensor 180K is used to detect a touch operation acting on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • a visual output related to the touch operation may be provided through the display screen 194.
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100, which is different from the position of the display screen 194.
  • the bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can acquire a vibration signal of a human voice oscillating bone mass.
  • Bone conduction sensor 180M can also contact the human pulse and receive blood pressure beating signals.
  • the bone conduction sensor 180M may also be disposed in the earphone and combined into a bone conduction earphone.
  • the audio module 170 may analyze a voice signal based on the vibration signal of the oscillating bone mass of the vocal part obtained by the bone conduction sensor 180M to implement a voice function.
  • the application processor may analyze the heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 180M to implement a heart rate detection function.
  • the keys 190 include a power-on key, a volume key, and the like.
  • the key 190 may be a mechanical key. It can also be a touch button.
  • the electronic device 100 may receive a key input, and generate a key signal input related to user settings and function control of the electronic device 100.
  • the motor 191 may generate a vibration alert.
  • the motor 191 can be used for vibration alert for incoming calls, and can also be used for touch vibration feedback.
  • the touch operation applied to different applications can correspond to different vibration feedback effects.
  • Acting on touch operations in different areas of the display screen 194, the motor 191 can also correspond to different vibration feedback effects.
  • Different application scenarios (such as time reminders, receiving information, alarm clocks, games, etc.) can also correspond to different vibration feedback effects.
  • Touch vibration feedback effect can also support customization.
  • the indicator 192 can be an indicator light, which can be used to indicate the charging status, power change, and can also be used to indicate messages, missed calls, notifications, and so on.
  • the SIM card interface 195 is used to connect a SIM card.
  • the SIM card can be contacted and separated from the electronic device 100 by inserting or removing the SIM card interface 195.
  • the electronic device 100 may support one or N SIM card interfaces, and N is a positive integer greater than 1.
  • SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card, etc. Multiple SIM cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards may be the same or different.
  • the SIM card interface 195 may also be compatible with different types of SIM cards.
  • the SIM card interface 195 is also compatible with external memory cards.
  • the electronic device 100 interacts with the network through a SIM card to implement functions such as calling and data communication.
  • the electronic device 100 uses an eSIM, that is, an embedded SIM card.
  • the eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
  • the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture.
  • the embodiment of the present invention takes the layered architecture Android system as an example, and exemplifies the software structure of the electronic device 100.
  • FIG. 2 is a software structural block diagram of an electronic device 100 according to an embodiment of the present invention.
  • the layered architecture divides the software into several layers, each of which has a clear role and division of labor.
  • the layers communicate with each other through a software interface.
  • the Android system is divided into four layers, which are an application layer, an application framework layer, an Android runtime and a system library, and a kernel layer from top to bottom.
  • the application layer may include a series of application packages.
  • the application package can include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, SMS and other applications.
  • the application framework layer (framework layer) provides an application programming interface (API) and a programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • 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.
  • 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 a screenshot, etc.
  • 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, and so on.
  • the view system includes visual controls, such as a text control that displays text, an image view control that displays pictures, and so on.
  • the view system can be used to build applications.
  • the display interface can consist of one or more views.
  • the display interface including the SMS notification icon may include a view that displays text and a view that displays pictures.
  • the phone manager is used to provide a communication function of the electronic device 100. For example, management of call status (including connection, hang up, etc.).
  • the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
  • the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages that can disappear automatically after a short stay without user interaction.
  • the notification manager is used to inform download completion, message reminders, etc.
  • the notification manager can also be a notification that appears in the status bar at the top of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window.
  • text messages are displayed in the status bar, sounds are emitted, electronic equipment vibrates, and the indicator light flashes.
  • the Android Runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
  • the core library contains two parts: one is the functional functions that the Java language needs to call, and the other is the Android core library.
  • the application layer and the application framework layer run in a virtual machine.
  • the virtual machine executes the java files of the application layer and the application framework layer as binary files.
  • Virtual machines are used to perform object lifecycle management, stack management, thread management, security and exception management, and garbage collection.
  • the system library can include multiple functional modules. For example: surface manager (media manager), media library (Media library), three-dimensional graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL) and so on.
  • surface manager media manager
  • media library Media library
  • Three-dimensional graphics processing library for example: OpenGL ES
  • 2D graphics engine for example: SGL
  • the Surface Manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
  • the media library supports a variety of commonly used audio and video formats for playback and recording, as well as still image files.
  • the media library can support multiple audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
  • the 2D graphics engine is a graphics engine for 2D graphics.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least a display driver, a camera driver, an audio driver, and a sensor driver.
  • the view system of the application framework layer may include a text view control.
  • the text view control can be used to construct the input box in the application, so that the input box of each application in the application layer can implement the information input process based on the text view control.
  • each application in the application layer may include one or more input boxes.
  • the WeChat application contains input boxes for chatting with contacts and input boxes for searching.
  • An application that contains an input box can register the ID of the input box it contains in the text control.
  • the application can send its own package name (packname) and its input box identification in the application to the text view control.
  • the textview control generates an ID that uniquely identifies the input box for the registered input box.
  • the textview control may use a hash algorithm (hash) to generate the ID of the input box according to the package name of the application and the identification of the input box in the application.
  • a hash algorithm hashash
  • the application can call the text view control to save the input content in the input box A as a historical input record and establish it.
  • the textview control can save the correspondence between the ID of the input box A and its historical input record in the historical record database. In this way, the correspondence relationship between each input box and each historical input record is maintained in the electronic device 100.
  • the text view control can query the input box A corresponding to the input box A according to the ID of the input box A. Or multiple historical input records, and these historical input records can be displayed near the input box A as candidate input items. In this way, if a user selects a candidate input item, the electronic device may automatically input the candidate input item into the input box A, thereby avoiding the problem that the user repeatedly inputs the same information and reduces the input efficiency.
  • the electronic device 100 can provide candidate input items according to the above method, and the user can use the candidate input items to Convenient and fast input information in each input box, thereby alleviating the bad user experience of uneven input efficiency in different input boxes.
  • the text view control can also recommend other information as candidate input items to the user.
  • the electronic device 100 may set an AI (artificial intelligence) database in advance. If the application to which the input box A belongs is a music application, the textview control may use the AI database as a candidate for the most recent popular song or singer The input items are recommended to the user; for another example, if the input box A is an input box in the chat interface with the contact Sam, the textview control can obtain candidate input recommended to the user from the AI database according to the chat content in the chat interface Items, so that users can get intelligent input experience when using various input boxes.
  • AI artificial intelligence
  • a mobile phone is used as the above-mentioned electronic device, and a method for inputting information into an input box provided by an embodiment of the present application will be described in detail with reference to the accompanying drawings.
  • the input box involved in the embodiment of the present application may be an input box with a search function, for example, an input box in a browser application, or an input box used solely for interactive information, for example, in a text message application.
  • Text message input box chat input box with contacts in WeChat application, etc.
  • the user can input information such as text, letters, numbers, symbols, pictures, and expressions into the input box, which is not limited in the embodiment of the present application.
  • a chat input box 301 with a contact Sam in the WeChat application is taken as an example.
  • the WeChat application may register the input box 301 with a view system (for example, a text view control) in the application framework layer.
  • the view system can generate a globally unique ID for the input box 301.
  • the view system can provide related input services for the input box 301 according to the ID. It should be noted that when registering an input box with a view system, a WeChat application can register with the type of the input box as a granularity.
  • the input box in the chat interface of each contact in the WeChat application belongs to the chat input box, so the WeChat application can uniformly register the ID of the chat input box in the view system.
  • the ID of the contact input box 301 of Sam The ID of the chat input box is the same as that of contact Mike.
  • the number of input boxes can also be used to register the input boxes with the view system.
  • the IDs of the chat input boxes corresponding to different contacts are different.
  • the WeChat application may call the view system to At this time, the input content (for example, "133595966688") in the input box 301 is saved as the first history input record, and a correspondence relationship between the first history input record and the ID of the input box 301 is established.
  • the mobile phone may establish corresponding history record tables for different input boxes according to the IDs of the input boxes.
  • the history record table 401 corresponding to the ID of the input box 301 can record the user's input content in the input box 301 (that is, the history input record). In this way, the correspondence between the historical input record and the ID of the input box can be established.
  • the mobile phone in the history record table 401, can also record the input time of each history input record.
  • the mobile phone can also identify the specific type of each historical input record, such as text type, number type, picture type, expression type, song type, or ancient poetry type.
  • the mobile phone can record the identified specific types together in the history record table 401 and associate them with the corresponding history input records. In this way, the mobile phone can record the historical input records of each input box in the mobile phone and the related information of the historical input records.
  • the mobile phone may further set a button 501 in the input box 301.
  • This button 501 can be used to trigger the mobile phone to record the current input content as a history 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 contents as historical input records for storage via the button 501.
  • FIG. 5 shows that after the user inputs “My name is Alice” in the input box 301, if it is detected that the user clicks the button 501, it indicates that the user wishes to save the input content this time as a historical input record.
  • the mobile phone may input the content in the input box 301, that is, "My name is Alice", and record it as a historical input record in the historical record corresponding to the ID of the input box 301. In this way, the mobile phone can selectively save some important or possibly re-used input content as historical input records.
  • the mobile phone when it saves the historical input record "My name is Alice" in the history record, it can also automatically identify and record the type of the historical record, for example, identify the historical input record "My name is Alice” as a text type .
  • 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".
  • the mobile phone may further display a menu 502.
  • the menu 502 includes all save types supported by the mobile phone when saving historical input records, such as text, expressions, pictures, and songs.
  • the user can manually select in the menu 502 which save type is used to save the historical input record "My name is Alice” in the history record table 401. For example, if it is detected that the user clicks on the "text" save type in the menu 502, the mobile phone may create a history input record "My name is Alice” in the history record table 401 to establish the history input record and the text type. Correspondence between.
  • the button 501 can be displayed in the input box 301 all the time.
  • the mobile phone may display the button 501 when detecting that the user inputs information into the input box 301, and may detect the button 501 when detecting that the user stops inputting in the input box 301.
  • the mobile phone may also automatically recognize the input content in the input box 301, and when a preset keyword (for example, phone, address, etc.) is recognized, the mobile phone may display the button 501.
  • a preset keyword for example, phone, address, etc.
  • the user can also call up the button 501 by performing a corresponding gesture, and the button 501 can also be displayed at a position other than the input box 301, which is not limited in this embodiment of the present application.
  • the mobile phone can continuously update the historical input records recorded in the historical records (for example, the historical record table 401).
  • the mobile phone may maintain a history entry record entered in the input box 301 within the last month in the history 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.
  • the mobile phone may maintain a certain number (for example, 20) of history input records in the history record table 401. Then, when there are more than 20 history input records in the history record table 401, the mobile phone can automatically delete the history input records with an earlier input time.
  • the history record table 401 may be stored in a mobile phone or in a server.
  • the mobile phone when the mobile phone runs the WeChat application, if it is detected that the user clicks the input box 301 in the chat interface 601 with Mike, it indicates that the user is ready to enter information into the input box 301 at this time.
  • the mobile phone may display the first prompt box 602, for example, the first prompt box 602 is displayed in the attachment of the input box 301.
  • the first prompt box 602 includes one or more candidate input items 603.
  • the candidate input item 603 may be a history input record in the history record table 401 corresponding to the input box 301.
  • the candidate input item 603 may be one or more historical input records in the history record table 401 where a user input frequency is high or recently input.
  • the WeChat application may also call the input method application to display the corresponding virtual keyboard 604, which is not limited in this embodiment of the present application.
  • the WeChat application may send the ID of the input box 301 to the view system in the application framework layer, and further, the view system may look up the input box 301 in the stored history. ID corresponding to the history. In this way, the view system may display one or more historical input records in the history record as candidate input items 603 in the first prompt box 602 described above. Subsequently, if it is detected that the user selects a certain historical input record in the first prompt box 602, the mobile phone may automatically input the historical input record selected by the user into the input box 301, so as to avoid the user using the input method to repeatedly input the same input as the historical input record To improve the input efficiency when entering information into the input box.
  • 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 it is detected that the user clicks the 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, or the mobile phone may also display all the history in the historical record corresponding to the input box 301 The input record is displayed for the user to select.
  • the mobile phone may also be displayed in the chat interface 601.
  • the second prompt box 701 includes a type of a history input record corresponding to the input box 301, for example, text, expression, picture, song, and the like.
  • the user can further search for a certain type of historical input record among these types. For example, if it is detected that the user clicks on the type of “text” in the second prompt box 701, as shown in FIG. 8, the mobile phone may display the history input record of type “text” in the history record as the type of “text” In the secondary menu 801.
  • the user can find the history input record of the desired text type in the menu 801. If it is detected that the user selects a certain historical input record in the menu 801, for example, "My name is Alice", the mobile phone can automatically input the historical input record "My name is Alice” into the input box 301. In this way, the user can quickly retrieve the historical input records that need to be input into the input box 301 through the types of historical input records among the many historical input records, which can further improve the input efficiency of the mobile phone input boxes.
  • the mobile phone may further set a setting button 702 in the second prompt box 701.
  • the user can manually manage the history input records in the history table 401 using the setting button 702. For example, if it is detected that the user clicks the setting button 702, as shown in FIG. 9, the mobile phone may jump to the editing interface 901 of the historical record.
  • the editing interface 901 the user can manually modify the content of each historical input record in the history record, and the type of the historical input record.
  • the user can also manually delete or add the historical input record in the editing interface 901, so as to set the History of user personalized needs.
  • the event that triggers the mobile phone to display the first prompt box 602 (or the second prompt box 701) may be an operation that the user selects the input box 301.
  • Selecting the input box 301 by the user may trigger the mobile phone to display the first prompt box 602 (or the second prompt box 701).
  • the mobile phone may detect whether the user inputs a preset gesture into the input box 301.
  • the preset gesture may be gestures such as long pressing, heavy pressing, double-clicking, or sliding on the input box 301. If it is detected that the user inputs a preset gesture to the input box 301, the mobile phone may be triggered to display the first prompt box 602 (or the second prompt box 701). In this way, the user can call up the first prompt box 602 (or the second prompt box 701) by performing a preset gesture at any input time when inputting in the input box 301.
  • the mobile phone displays the first reminder box 602 (or the second reminder box 701)
  • the mobile phone may hide the first prompt box 602 (or the second prompt box 701) in the chat interface 601.
  • the mobile phone may also display the first prompt box 602 (or the second prompt box 701) until it is detected that the user clicks the send button of 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.
  • the mobile phone can obtain the user's input content 1001 in the input box 301 in real time. Further, the mobile phone may search the history record using the obtained input content 1001 as a keyword, and retrieve a history input record associated with the input content 1001. For example, if the input content 1001 shown in FIG. 10 is "My Home", then the mobile phone may retrieve a historical input record containing the input content 1001 of "My Home” in a history record (for example, the history record table 401).
  • the mobile phone may update the retrieved historical input record as a new candidate input item in the first prompt box 602.
  • the historical input record recommended to the user in the first prompt box 602 can change in real time as the user inputs, and the user can be prompted to quickly input the historical input record associated with the current input content into the input box 301.
  • a history input record corresponding to the input box 301 is recommended to the user as an example.
  • the mobile phone may also recommend the user's historical input records in other input boxes as candidate input items.
  • the candidate input items 603 in the first prompt box 602 displayed by the mobile phone are historical input records in the historical record.
  • the mobile phone may set a switching button 1101 in the first prompt box 602 described above.
  • the switch button 1101 may be used to switch other historical input records to the first prompt box 602 displayed by the current mobile phone.
  • the historical input records of other input boxes may be switched to the first prompt box 602 displayed by the current mobile phone.
  • the mobile phone may use one or more historical input records in the historical records recorded for other input boxes as new candidate input items 603 ' Update in the first prompt box 602.
  • the mobile phone may use one or more historical input records that the user inputs frequently or recently in other input boxes as new candidate input items 603 '.
  • the mobile phone may further display the first index box 1201 with the granularity of the application.
  • the first index box 1201 contains icons 1202 (or names) of one or more applications having an input box.
  • the mobile phone may display a first prompt box 602, and display the history input record corresponding to the input box in the application as a candidate input item in the first prompt box 602.
  • the mobile phone may hide the first index box 1201 and store one of the entries in the input box in the contact application.
  • One or more historical input records are displayed in the first prompt box 602. It can be understood that the first prompt box in FIG. 12A may be the same as or different from the first prompt box described in other figures, which is not limited in the embodiment of the present invention.
  • the mobile phone may further display the second index box 1203 based on the type of the history input record.
  • the second index box 1203 contains different types of historical input records 1204 stored in the mobile phone.
  • the mobile phone may display the first prompt box 602, and display the history input record corresponding to the type as a candidate input item in the first prompt box 602. For example, as shown in FIG.
  • the mobile phone may select one or more of the history input records of all music types to display 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 history record table 401 corresponding to the input box 301.
  • the mobile phone may also set the above-mentioned switch button 1101 in the first prompt box 602. Please refer to the description of FIG. 11 for the function of the switch button, so it will not be repeated here.
  • the first prompt box in FIG. 12B may be the same as or different from the first prompt box in other figures, which is not limited in the embodiment of the present invention.
  • the mobile phone can prompt the user for historical input records that have been entered in other input boxes across the input boxes, so that the user's historical input records in different input boxes can be used as candidate inputs Items are recommended to users to avoid users from repeatedly entering the same input content in different input boxes and affecting input efficiency.
  • the mobile phone when the user inputs information into the input box 301, the mobile phone recommends the historical input record as a candidate input item to the user. It can be 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 according to the related information of the input box or the related information of the application to which the input box belongs.
  • the mobile phone when it is detected that a user selects an input box (for example, input box 1301) or inputs 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 may obtain the package name of the application to which the input box 1301 belongs, and then determine the type of the application according to the classification of the package name in the application market. If the application is 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, and mobile number of the opposite contact And other information.
  • the application is 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, and mobile number of the opposite contact And other information.
  • the mobile phone can use the corresponding intelligent algorithm to determine that it is related to the identified contact Candidate input.
  • the mobile phone can be triggered to recognize that the application to which the input box 1301 belongs is a short message application, that is, a communication application.
  • the mobile phone can obtain the mobile phone number of the chat object when chatting using the input box 1301 is 10086. Since 10086 is a preset phone number of a specific contact, the mobile phone can further determine candidate input items associated with 10086. For example, when users send text messages to 10086, they usually reply to various types of short message service codes, and the mobile phone can store the correspondence between these short message service codes and 10086 in advance. In this way, when the mobile phone determines that the mobile phone number of the opposite end is 10086, the mobile phone may display a third prompt box 1302.
  • the third prompt box 1302 may be displayed near the input box 1301, and the short message service code corresponding to 10086 is used as a candidate input. Items are displayed in a third prompt box 1302. In this way, the mobile phone can intelligently prompt the user with candidate input items related to the chat object in the third prompt box 1302 according to different chat objects, so as to improve the input efficiency of the user.
  • the mobile phone may also identify the chat content in the chat interface where the input box is located at this time. As shown in FIG. 14, when the mobile phone displays the chat interface 1401 with the contact Zhang San, if it is detected that the user clicks the input box 1402 in the chat interface 1401, the mobile phone can recognize that the application to which the input box 1402 belongs is a text message application, that is, communication Class application. Furthermore, the mobile phone may obtain chat content 1403 of the user and the contact Zhang San in the chat interface 1401, and identify the chat content 1403.
  • the mobile phone can identify whether the chat content 1403 contains preset keywords such as time, date, place, and weather.
  • the mobile phone may perform a semantic analysis on the chat content 1403 through a semantic recognition algorithm. Further, the mobile phone may generate candidate input items associated with the chat content 1403 according to the recognition result of the chat content 1403, and display the generated candidate input items in the fourth prompt box 1404 of the chat interface 1401.
  • the mobile phone may display the content of the current weather forecast as a candidate input item in the fourth prompt box 1404 described above.
  • the mobile phone may display the searched information of nearby restaurants as candidate input items in the fourth prompt box 1404 described above.
  • the mobile phone may further generate corresponding candidate input items according to the type of the application to which the input box operated by the current user belongs.
  • the types of applications can be divided into communication, music, video, travel, and food categories.
  • the mobile phone can preset an application list of different types of applications, so that the mobile phone can query the type of an application in the application list; or the mobile phone can also query the type of an application in the server.
  • the mobile phone may display a home page 1501 of the QQ Music APP, and the home page 1501 includes an input box 1502 for searching. If it is detected that the user clicks on the input box 1502, the mobile phone may recognize that the QQ music application to which the input box 1502 belongs is a music type application. Further, the mobile phone may display the related music information as a candidate input item in the fifth prompt box 1503.
  • the music information may be information such as a popular song or a popular singer with a high search frequency, which is not limited in the embodiment of the present application.
  • the mobile phone may use relevant video information (such as popular TV series, movies, etc.) as candidate input items; if the mobile phone recognizes that the type of the current application is a travel application, then The mobile phone can use relevant travel information (such as special airfare, attraction recommendation, etc.) as candidate input items. It can be understood that those skilled in the art can set a specific method for generating candidate input items related to application types according to actual experience or actual application scenario settings.
  • the mobile phone may automatically input the candidate input item selected by the user Go to input box 1502.
  • the mobile phone can also automatically search for the candidate input items selected by the user as search keywords, and display the search results.
  • the mobile phone when the user operates an input box, may also generate corresponding candidate input items according to the historical input records of the user in the input box. For example, the mobile phone can query the history record table corresponding to the input box according to the ID of the input box that the current user is operating. Furthermore, the mobile phone can generate related candidate input items according to each historical input record in the query history record table. For example, if the mobile phone determines that the historical input records that the user input frequency is greater than the set value are historical input records about books according to the above history record table, then the mobile phone may use information such as popular book names and popular authors related to books as candidate inputs. The item is prompted to the user. That is, the mobile phone can judge the user's input habits in the input box according to 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.
  • the mobile phone when the user operates any input box in the mobile phone, the mobile phone can input records based on the history of the input box, the type of application to which the input box belongs, and contact information associated with the input box. Or chat content to generate corresponding candidate input items, so that users can quickly select the input content entered in the input box among the candidate input items, thereby improving the input efficiency of each input box in the phone, bringing users Intelligent input experience.
  • the mobile phone can generate multiple candidate input items according to the methods described in the above embodiments, and these candidate input items can include the user's historical input records, and Can include candidate input items that the mobile phone generates based on information such as application type, contact information, or chat content.
  • the mobile phone may display two prompt boxes, namely, a prompt box 1601 and a prompt box 1602, and a prompt box 1601 and The prompt box 1602 includes one or more candidate input items, respectively.
  • the candidate input items in the prompt box 1601 are historical input records of the user in the input box 1502, and the candidate input items in the prompt box 1602 are related music information generated by the mobile phone for the user according to the application type of the QQ music APP. Subsequently, if it is detected that the user selects a candidate input item in a certain prompt box, the mobile phone can automatically input the selected candidate input item into the input box 1502, so that the user can complete the input into the input box 1502 through only one selection operation.
  • the input process can not only improve the input efficiency of the input box, but also provide users with an intelligent input experience.
  • an embodiment of the application discloses an electronic device including a touch screen 1701, which 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; memory 1703; one or more application programs 1708; and one or more computer programs 1704.
  • the aforementioned devices may be connected to each other, for example, through one or more communication buses 1705.
  • 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, and the instructions may be used to execute instructions such as Each step in FIG. 2 to FIG. 16 and corresponding embodiments.
  • An embodiment of the present application further provides a computer storage medium, where the computer storage code is stored in the computer storage medium.
  • the processor executes the computer program code
  • the electronic device may execute any of the operations related to any of FIG. How to enter information into the input box.
  • the embodiment of the present application further provides a computer program product, which causes the computer to execute a method for inputting information into an input box related to any one of FIG. 2 to FIG. 16 when the computer program product runs on the computer.
  • the technical solution of the embodiments of the present application is essentially a part that contributes to the existing technology or all or part of the technical solution may be embodied in the form of a software product.
  • the computer software product is stored in a storage medium, including several The instructions are used to cause a computer device (which may be a personal computer, a server, or a network device) or a processor to execute all or part of the steps of the method described in the embodiments of the present application.
  • the foregoing storage media include: flash media, mobile hard disks, read-only memories, random access memories, magnetic disks, or optical discs, which can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present application relates to the field of terminals, and provides a method for inputting information into an input box and an electronic device, being capable of improving the input efficiency of a user in each input box in a mobile phone and improving intelligent input experience. The method comprises: the electronic device displays a display interface, the display interface comprising a first input box; the electronic device receives an operation of the user for the first input box; in response to the operation, the electronic device displays a first prompt box on the display interface, the first prompt box comprising m types of historical input records; the electronic device receives a first selection operation of selecting a first type from the M types of the user; in response to the first selection operation, the electronic device displays N candidate input terms on the display interface, the N candidate input terms being the historical input records of the first type; the electronic device receives a second selection operation of selecting a first candidate input term from the N candidate input terms of the user; in response to the second selection operation, the electronic device inputs the first candidate input term to the first input box.

Description

一种向输入框中输入信息的方法及电子设备Method and electronic equipment for inputting information into input box 技术领域Technical field
本申请涉及终端领域,尤其涉及一种向输入框中输入信息的方法及电子设备。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 technique
目前,手机、平板电脑等电子设备已成为用户进行信息输入和输出的重要工具之一。例如,手机在运行浏览器应用时,用户可以在浏览器的输入框中输关键词搜索相关信息;或者,手机在运行聊天类应用时,用户可以在聊天窗口的输入框中向联系人输入聊天内容。At present, electronic devices such as mobile phones and tablet computers have become one of the important tools for users to input and output information. For example, when the mobile phone is running a browser application, the user can enter keywords in the browser's input box to search for related information; or when the mobile phone is running a chat application, the user can enter a chat into the contact in the input box of the chat window content.
可以看出,各个应用中的输入框是用户与手机之间进行信息交互的重要通道。为了提高用户在输入框中的输入效率,有的应用在用户输入时可提供历史输入记录或热门推荐等候选输入选项。当检测到用户点击这些候选输入选项后,手机可将用户选中的候选输入选项自动输入至输入框中。但是,每个应用为输入框设置候选输入选项的策略可能不同,甚至有的应用中不具有为用户推荐候选输入选项的功能,这使得用户在使用手机中不同应用的输入框输入时输入效率参差不齐。It can be seen that the input box in each application is an important channel for information interaction between the user and the mobile phone. In order to improve the user's input efficiency in the input box, some applications can provide candidate input options such as historical input records or popular recommendations during user input. When it is detected that the user clicks on these candidate input options, the mobile phone may automatically input the candidate input options selected by the user into the input box. However, each application's strategy for setting candidate input options for the input box may be different, and even some applications do not have the function of recommending candidate input options for the user, which makes the input efficiency of users different when using the input boxes of different applications in the mobile phone. Uneven.
发明内容Summary of the Invention
本申请实施例提供一种向输入框中输入信息的方法及电子设备,可提高用户在手机内各个输入框中的输入效率。The embodiments of the present application provide a method for inputting information into an input box and an electronic device, which can improve a user's input efficiency in each input box in a mobile phone.
为达到上述目的,本申请采用如下技术方案:In order to achieve the above purpose, this application uses the following technical solutions:
第一方面,本申请技术方案提供一种向输入框中输入信息的方法,包括:电子设备显示显示界面,该显示界面包含有第一输入框;电子设备接收到用户针对第一输入框的操作后,可在该显示界面显示第一提示框,第一提示框包括有历史输入记录的M(M为大于0的整数)种类型;进而,电子设备接收到用户从这M种类型中选择第一类型的第一选中操作后,可在上述显示界面中显示N(N为大于0的整数)个候选输入项,这N个候选输入项均为上述第一类型的历史输入记录;当电子设备接收到用户从这N个候选输入项中选择第一候选输入项的第二选中操作后,自动向第一输入框输入第一候选输入项。In a first aspect, the technical solution of the present application provides a method for inputting information into an input box, including: an electronic device displaying a display interface, the display interface including a first input box; the electronic device receiving a user's operation on the first input box Then, a first prompt box may be displayed on the display interface, and the first prompt box includes M types (M is an integer greater than 0) with historical input records; further, the electronic device receives that the user selects the first type from the M types. After the first selection operation of a type, N (N is an integer greater than 0) candidate input items can be displayed on the display interface, and the N candidate input items are the historical input records of the first type; when the electronic device is After receiving the second selection operation in which the user selects the first candidate input item from the N candidate input items, the first candidate input item is automatically input into the first input box.
也就是说,用户通过对任一输入框执行预设的操作,电子设备可调出历史输入记录的M种类型。用户选中某一类型后,电子设备可向用户提供属于该类型的N个历史输入记录。这样,用户在输入框的众多历史输入记录中可以通过历史输入记录的类型快速找到需要输入的历史输入记录,从而提高手机输入框中的输入效率。That is, the user can perform M types of historical input records by performing a preset operation on any input box. After the user selects a certain type, the electronic device can provide the user with N historical input records belonging to the type. In this way, the user can quickly find the historical input record that needs to be entered among the many historical input records in the input box through the type of the historical input record, thereby improving the input efficiency of the mobile phone input box.
在一种可能的设计方法中,上述N个候选输入项中可以包括第二输入框的历史输入记录;或者,上述N个候选输入项中可以包括第一输入框的历史输入记录。也就是说,电子设备在第一提示框中显示的N个候选输入项可以是与本次触发的第一输入框相关的,也可以是与其他输入框相关的。In a possible design method, the N candidate input items may include historical input records of the second input box; or, the N candidate input items may include historical input records of the first input box. That is, the N candidate input items displayed by the electronic device in the first prompt box may be related to the first input box triggered this time, or may be related to other input boxes.
示例性的,上述第一输入框可以为第一应用(例如浏览器)的输入框,第二输入框为第二应用(例如支付宝)的输入框,即第一输入框和第二输入框属于不同应用中的两个输入框;或者,第一输入框和第二输入框也可以为同一应用中的两个不同输入框,例如,第 一输入框可以是微信中聊天界面内的输入框,第二输入框可以是微信中用于搜索好友的输入框。Exemplarily, the first input box may be an input box of a first application (such as a browser), and the second input box is an input box of a second application (such as Alipay), that is, the first input box and the second input box belong to Two input boxes in different applications; or the first input box and the second input box can also be two different input boxes in the same application. For example, the first input box can be an input box in the chat interface in WeChat. The second input box may be an input box for searching for friends in WeChat.
在一种可能的设计方法中,上述第一提示框中还包括第一按钮,其中,电子设备在显示界面显示第一提示框之后,还包括:响应于用户点击第一按钮的操作,电子设备在第一提示框中显示除该N个历史输入记录之外的其他历史输入记录。其中,所述其他历史输入记录可以均为上述第一类型,所述其他历史输入记录可以是第一输入框的历史输入记录,也可以是其他输入框的历史输入记录,本申请实施例对此不做任何限制。用户通过第一按钮可以触发电子设备提供更多的历史输入记录供用户选择。In a possible design method, the first prompt box further includes a first button. After the electronic device displays the first prompt box on the display interface, the method further includes: in response to the user clicking the first button, the electronic device Other historical input records than the N historical input records are displayed in the first prompt box. The other historical input records may all be the first type described above, and the other historical input records may be the historical input records of the first input box or the historical input records of the other input boxes. Without any restrictions. The user can trigger the electronic device to provide more historical input records for the user to select through the first button.
在一种可能的设计方法中,上述第一提示框中还包括第二按钮;其中,电子设备在显示界面显示第一提示框之后,还包括:响应于用户点击第二按钮的操作,电子设备以应用为粒度显示索引框;响应于用户在上述索引框中选中第一应用的操作,电子设备可在显示界面显示第二提示框,第二提示框包括第一应用的至少一个历史输入记录,第二提示框中的历史输入记录也可以是第一类型的。这样,通过点击第二按钮,用户可以在某一类型的历史输入记录下以应用为粒度选择将某一应用的历史输入记录输入至第一输入框中。In a possible design method, the first prompt box further includes a second button; after the electronic device displays the first prompt box on the display interface, the method further includes: in response to the user clicking the second button, the electronic device The index box is displayed with the granularity of the application; 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, and the second prompt box includes at least one historical input record of the first application, The history 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 an application as the granularity under a certain type of historical input record to enter the historical input record of an application into the first input box.
在一种可能的设计方法中,电子设备在显示界面显示第一提示框之后,还包括:电子设备接收用户向第一输入框输入的输入内容;电子设备基于输入内容,在第一提示框中显示与该输入内容相关联的历史输入记录。这样,第一提示框中向用户推荐的历史输入记录可随着用户输入实时变化,可提示用户将与当前输入内容相关联的历史输入记录快速输入至第一输入框中。In a possible design method, after the electronic device displays the first prompt box on the display interface, the method further includes: the electronic device receives input content input by the user into the first input box; and based on the input content, the electronic device enters the first prompt box in the first prompt box. Displays historical input records associated with this input. In this way, the historical input record recommended to the user in the first prompt box can change in real time as the user inputs, and the user can be prompted to quickly enter the historical input record associated with the current input content into the first input box.
在一种可能的设计方法中,上述显示界面中还包括保存按钮;其中,在电子设备接收用户向第一输入框输入的输入内容之后,还包括:响应于用户点击该保存按钮的操作,电子设备将该输入内容作为第一输入框的历史输入记录进行保存。In a possible design method, the display interface further 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 The device saves the input content as a history input record of the first input box.
在一种可能的设计方法中,响应于用户点击上述保存按钮的操作,电子设备将该输入内容作为第一输入框的历史输入记录进行保存,具体包括:响应于用户点击上述保存按钮的操作,电子设备可先显示该输入内容的至少一种保存类型,例如,文字、图片、表情等;进而,基于用户选中的保存类型,电子设备保存该输入内容,此时,电子设备保存的该输入内容与用户选中的保存类型相关。In a possible design method, in response to the user's operation of clicking the save button, the electronic device saves the input content as a history input record of the first input box, which specifically includes: in response to the user's operation of clicking the save button, The electronic device may first display at least one save type of the input content, for example, text, picture, expression, etc .; further, 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 Related to the save type selected by the user.
在一种可能的设计方法中,上述M种类型包括文字、表情、图片、视频、数字、歌曲或古诗词中的至少一个。In a possible design method, the above M types include at least one of text, expression, picture, video, number, song, or ancient poetry.
在一种可能的设计方法中,在电子设备接收用户针对第一输入框的操作之后,还包括:响应于该操作,电子设备在显示界面中显示K(K为大于0的整数)个候选输入项;其中,上述K个候选输入项是根据该显示界面中包含的聊天内容生成的;或者,上述K个候选输入项是根据该显示界面中的聊天对象生成的;或者,上述K个候选输入项是根据该显示界面所属的应用的类型生成的。In a possible design method, 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 (K is an integer greater than 0) candidate inputs in the display interface. Items; wherein the K candidate input items are generated based on the chat content included in the display interface; or the K candidate input items are generated according to the chat object in the display interface; or the K candidate input items are generated Items are generated based on the type of application to which the display interface belongs.
也就是说,除了将上述历史输入记录作为候选输入项之外,电子设备还可以根输入框所属应用的类型、与输入框相关联的聊天对象或聊天内容等信息生成相应的候选输入项,使得用户可以快速的在候选输入项中选择本次向输入框中输入的输入内容,从而提高手机内各个输入框中的输入效率,进一步的为用户带来智能化的输入体验。That is, in addition to using the above 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 input into the input box among the candidate input items, thereby improving the input efficiency of each input box in the mobile phone, and further bringing an intelligent input experience to the user.
第二方面,本申请技术方案提供一种向输入框中输入信息的方法,包括:电子设备显 示一显示界面,该显示界面包含第一输入框;电子设备接收到用户针对第一输入框的操作后,在该显示界面显示第一提示框,第一提示框包括N个候选输入项,这N个候选输入项中包括第二输入框的历史输入记录;那么,如果电子设备接收到用户从这N个候选输入项中选择第一候选输入项的选中操作,电子设备可自动向第一输入框输入第一候选输入项。In a second aspect, the technical solution of the present application provides a method for inputting information into an input box, including: the electronic device displays a display interface including the first input box; and the electronic device receives a user's operation on the first input box. Then, a first prompt box is displayed on the display interface, and the first prompt box includes N candidate input items, and the N candidate input items include a history input record of the second input box; then, if the electronic device receives the user from this, In the selection operation of selecting the first candidate input item among the N candidate input items, the electronic device may automatically input the first candidate input item into the first input box.
也就是说,用户通过对任一输入框执行预设的操作,电子设备可调出包含其他输入框的历史输入记录。这样,用户在不同输入框中的历史输入记录都可以作为候选输入项推荐给用户,避免用户在不同输入框中重复输入同一输入内容而影响输入效率。That is, the user can perform a preset operation on any input box, and the electronic device can retrieve a history input record containing 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, to avoid users from repeatedly entering the same input content in different input boxes and affecting input efficiency.
在一种可能的设计方法中,上述N个候选输入项中还包括第一输入框的历史输入记录。In a possible design method, the N candidate input items further include a historical input record of the first input box.
在一种可能的设计方法中,在电子设备显示出上述显示界面之后,还包括:电子设备接收用户向第一输入框中输入的输入内容;其中,电子设备在显示界面显示第一提示框,包括:电子设备在第一提示框中显示与该输入内容相关联的N个候选输入项。In a possible design method, after the electronic device displays the display interface, the method further includes: the electronic device receives input content input by the user into the first input box; wherein the electronic device displays the first prompt box on the display interface, The method includes: the electronic device displays N candidate input items associated with the input content in a first prompt box.
示例性的,与该输入内容相关联的N个候选输入项具体可以是指:包含上述输入内容的N个候选输入项,以输入内容为“我的”举例,与该输入内容相关联的N个候选输入项可以是包含“我的”的候选输入项;或者,与该输入内容相关联的N个候选输入项具体可以是指:与上述输入内容的类型相同的N个候选输入项,仍以输入内容为“我的”举例,与该输入内容相关联的N个候选输入项可以是文字类型的候选输入项。Exemplarily, the N candidate input items associated with the input content may specifically refer to: N candidate input items including the above input content, taking the input content as "My" for example, and the N associated with the input content The candidate input items may be candidate input items including "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 input content, still Taking the input content as "My" as an example, the N candidate input items associated with the input content may be candidate input items of text type.
在一种可能的设计方法中,上述N个候选输入项中包括输入频率大于预设值的历史输入记录,或用户在预设时间内输入的历史输入记录。In a possible design method, the N candidate input items include a history input record with an input frequency greater than a preset value, or a history input record input by a user within a preset time.
第三方面,本申请技术方案提供一种向输入框中输入信息的方法,包括:电子设备显示一显示界面,该显示界面包含第一输入框;电子设备接收到用户针对第一输入框的操作后,识别第一输入框所属的应用是否为通讯类应用;若是通讯类应用,则电子设备进一步识别上述显示界面中的聊天对象是否为指定联系人;若是指定联系人,则电子设备可在上述显示界面中显示第一提示框,第一提示框包括与上述指定联系人关联的N个候选输入项;如果电子设备接收到用户从这N个候选输入项中选择第一候选输入项的选中操作,电子设备可自动向第一输入框输入第一候选输入项。这样,电子设备可根据聊天对象的不同,智能的在第一提示框中向用户提示与聊天对象相关的候选输入项,以提高用户的输入效率。In a third aspect, the technical solution of the present application provides a method for inputting information into an input box, including: the electronic device displays a display interface, the display interface including the first input box; and the electronic device receives a user operation on the first input box. Then, it is recognized 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 display interface is a designated contact; if it is a designated contact, the electronic device may A first prompt box is displayed in the display interface, and the first prompt box includes N candidate input items associated with the specified contact; if the electronic device receives a user's selection operation of selecting the first candidate input item from the N candidate input items , The electronic device may 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 input efficiency of the user.
或者,当电子设备识别出第一输入框所属的应用为通讯类应用后,电子设备还可获取上述显示界面中的聊天内容;进而,电子设备可根据聊天内容生成相关的候选输入项并提示给用户。电子设备可根据聊天内容的不同,智能的在第一提示框中向用户提示与聊天内容相关的候选输入项,以提高用户的输入效率。Alternatively, after the electronic device recognizes 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 related candidate input items according to the chat content and prompt the user. The electronic device may intelligently prompt the user with candidate input items related to the chat content in the first prompt box according to different chat contents, so as to improve the input efficiency of the user.
第四方面,本申请技术方案提供一种向输入框中输入信息的方法,包括:电子设备运行第一应用,并显示一显示界面,该显示界面中包含第一输入框;响应于用户针对第一输入框的操作,电子设备的第一应用向应用程序框架层请求获取N个候选输入项;电子设备中的应用程序框架层通过应用程序层在上述显示界面显示获取到的N个候选输入项;响应于用户从这N个候选输入项中选择第一候选输入项的操作,电子设备向第一输入框输入第一候选输入项。In a fourth aspect, the technical solution of the present application provides a method for inputting information into an input box, including: the electronic device runs a first application and displays a display interface, the display interface including the first input box; In an input box operation, 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 display interface through the application layer. In response to a user's operation of selecting a first candidate input item from the N candidate input items, the electronic device inputs the first candidate input item into the first input box.
由于上述应用程序框架层可以向所有具有输入框的应用提供上述输入服务,因此,用户使用任意输入框输入信息时,电子设备均可按照上述方法提供候选输入项,用户可以使用候选输入项向各个输入框中方便快捷的输入信息,从而缓解在不同输入框中输入效率参 差不齐的不良用户体验。Because the above application framework layer can provide the above input service to all applications with input boxes, when a user inputs information using any input box, the electronic device can provide candidate input items according to the above method, and the user can use the candidate input items to each Input information is convenient and quick in the input box, thereby alleviating the bad user experience of uneven input efficiency in different input boxes.
其中,上述应用程序框架层中包括视图(view)系统(例如text view控件),应用程序框架层执行的步骤具体可以是由该视图系统执行的。Wherein, the above application framework layer includes a view system (for example, a text view control), and the steps performed by the application framework layer may be specifically performed by the view system.
在一种可能的设计方法中,上述N个候选输入项中包含:第一输入框的历史输入记录中的至少一个,或第二输入框的历史输入记录中的至少一个。In a possible design method, the N candidate input items include at least one of a historical input record of the first input box, or at least one of a historical input record of the second input box.
在一种可能的设计方法中,电子设备中存储有历史记录,该历史记录中包含输入框的ID与历史输入记录之间的对应关系;此时,电子设备中的第一应用向应用程序框架层请求获取N个候选输入项,包括:电子设备中的第一应用向该应用程序框架层发送第一输入框的ID;电子设备中的应用程序框架层在上述历史记录中查询与第一输入框的ID对应的一条或多条历史输入记录。In a possible design method, a history record is stored in the electronic device, and the history record includes a correspondence between the ID of the input box and the history input record; at this time, the first application in the electronic device provides an application framework The layer requests 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 frame layer; the application frame layer in the electronic device queries the first input in the above-mentioned historical record and One or more historical input records corresponding to the ID of the box.
或者,上述历史记录中包含历史输入记录与历史输入记录的类型之间的对应关系;此时,电子设备中的第一应用向应用程序框架层请求获取N个候选输入项,包括:电子设备中的第一应用向该应用程序框架层发送用户选中的历史输入记录的目标类型;电子设备中的应用程序框架层在上述历史记录中查询与该目标类型对应的一条或多条历史输入记录。Alternatively, the foregoing history record includes a correspondence between a history input record and a type of the history input record; at this time, the first application in the electronic device requests the application framework layer to obtain N candidate input items, including: in the electronic device The first application 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 historical record for one or more historical input records corresponding to the target type.
在一种可能的设计方法中,在电子设备运行第一应用的之后,还包括:电子设备中的第一应用接收用户向第一输入框中输入的输入内容;电子设备中的第一应用将该输入内容与第一输入框的ID发送给该应用程序框架层;电子设备中的该应用程序框架层将该输入内容作为历史输入记录,保存该输入内容与第一输入框的ID之间的对应关系。In a possible design method, after the electronic device runs the first application, the method further includes: the first application in the electronic device receives input content input by the user into the first input box; the first application in the electronic device will The input content and the ID of the first input box are sent to the application framework layer; the application framework layer in the electronic device uses the input content as a historical input record, and stores the information between the input content and the ID of the first input box. Correspondence.
在一种可能的设计方法中,电子设备运行第一应用之前,还包括:电子设备中的第一应用向应用程序框架层发送第一输入框的注册请求;响应于该注册请求,电子设备中的该应用程序框架层生成第一输入框的ID。这样,电子设备中的每个输入框均可在应用程序框架层中注册有一个唯一的ID,电子设备可通过在上述历史记录中维护各个输入框的ID。In a possible design method, before the electronic device runs the first application, the method further includes: the first application in the electronic device sends a registration request for the first input box to the application framework layer; in response to the registration request, the electronic device The application framework layer generates the ID of 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 history.
第五方面,本申请技术方案提供一种电子设备,包括:输入设备、显示屏、一个或多个处理器、存储器、以及一个或多个计算机程序;其中,处理器与输入设备、处理器以及存储器均耦合,上述一个或多个计算机程序被存储在存储器中,当电子设备运行时,该处理器执行该存储器存储的一个或多个计算机程序,以使电子设备执行上述任一项所述的向输入框中输入信息的方法。In a fifth aspect, the technical solution of the present application provides an electronic device including: an input device, a display screen, one or more processors, a memory, and one or more computer programs; wherein the processor and the input device, the processor, and The memories are all coupled, and the 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 foregoing. How to enter information into the input box.
第六方面,本申请技术方案提供一种计算机存储介质,包括计算机指令,当计算机指令在电子设备上运行时,使得电子设备执行上述任一项所述的向输入框中输入信息的方法。According to a sixth aspect, the technical solution of the present application provides a computer storage medium including computer instructions. When the computer instructions are executed on the electronic device, the electronic device is caused to execute the method for inputting information into an input box according to any one of the foregoing.
第七方面,本申请技术方案提供一种计算机程序产品,当计算机程序产品在电子设备上运行时,使得电子设备执行上述任一项所述的向输入框中输入信息的方法。In a seventh aspect, the technical solution of the present application provides a computer program product. When the computer program product runs on an electronic device, the electronic device executes the method for inputting information into an input box according to any one of the foregoing.
可以理解地,上述提供的第五方面所述的终端、第六方面所述的计算机存储介质,以及第七方面所述的计算机程序产品均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。Understandably, the terminal provided 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, For the beneficial effects that can be achieved, reference may be made to the beneficial effects in the corresponding methods provided above, which are not repeated here.
在一种可能的实现方案中,上述输入设备可以为触敏表面,触敏表面也可称为触摸传感器。其中,触敏表面和显示屏可以称为触摸屏。In a possible implementation solution, the foregoing input device may be a touch-sensitive surface, and the touch-sensitive surface may also be referred to as a touch sensor. Among them, the touch-sensitive surface and the display screen may be referred to as a touch screen.
在一种可能的实现方案中,上述第一输入框的操作可以为:点击输入框、双击输入框、长按输入框、或者重压输入框等。其中,手机响应于点击输入框、双击输入框、长按输入框、或者重压输入框,可以在输入框显示光标,还可以显示输入法应用,例如显示虚拟按 键。In a possible implementation solution, 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. Among them, the mobile phone can display a cursor in the input box and also display an input method application, such as displaying a virtual key, in response to clicking the input box, double-clicking the input box, long-pressing the input box, or pressing the input box.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1为本申请实施例提供的一种电子设备的结构示意图一;FIG. 1 is a first schematic structural diagram of an electronic device according to an embodiment of the present application; FIG.
图2为本申请实施例提供的一种电子设备内操作系统的架构示意图;FIG. 2 is a schematic structural diagram of an operating system in an electronic device according to an embodiment of the present application; FIG.
图3为本申请实施例提供的一种向输入框中输入信息的方法的场景示意图一;FIG. 3 is a first schematic scenario of a method for inputting information into an input box according to an embodiment of the present application; FIG.
图4为本申请实施例提供的一种向输入框中输入信息的方法的场景示意图二;4 is a second scenario diagram of a method for inputting information into an input box according to an embodiment of the present application;
图5为本申请实施例提供的一种向输入框中输入信息的方法的场景示意图三;5 is a third schematic scenario of a method for inputting information into an input box according to an embodiment of the present application;
图6为本申请实施例提供的一种向输入框中输入信息的方法的场景示意图四;FIG. 6 is a fourth schematic scenario of a method for inputting information into an input box according to an embodiment of the present application; FIG.
图7为本申请实施例提供的一种向输入框中输入信息的方法的场景示意图五;FIG. 7 is a fifth schematic scenario of a method for inputting information into an input box according to an embodiment of the present application; FIG.
图8为本申请实施例提供的一种向输入框中输入信息的方法的场景示意图六;FIG. 8 is a sixth schematic scenario diagram of a method for inputting information into an input box according to an embodiment of the present application; FIG.
图9为本申请实施例提供的一种向输入框中输入信息的方法的场景示意图七;FIG. 9 is a scenario diagram VII of a method for inputting information into an input box according to an embodiment of the present application; FIG.
图10为本申请实施例提供的一种向输入框中输入信息的方法的场景示意图八;FIG. 10 is a schematic diagram 8 of a method for inputting information into an input box according to an embodiment of the present application;
图11为本申请实施例提供的一种向输入框中输入信息的方法的场景示意图九;FIG. 11 is a scenario diagram IX of a method for inputting information into an input box according to an embodiment of the present application;
图12A为本申请实施例提供的一种向输入框中输入信息的方法的场景示意图十;FIG. 12A is a schematic diagram ten of a method for inputting information into an input box according to an embodiment of the present application;
图12B为本申请实施例提供的一种向输入框中输入信息的方法的场景示意图十一;FIG. 12B is a schematic diagram XI of a method for inputting information into an input box according to an embodiment of the present application;
图13为本申请实施例提供的一种向输入框中输入信息的方法的场景示意图十二;FIG. 13 is a schematic view 12 of a method for inputting information into an input box according to an embodiment of the present application;
图14为本申请实施例提供的一种向输入框中输入信息的方法的场景示意图十三;FIG. 14 is a schematic view 13 of a scenario of a method for inputting information into an input box according to an embodiment of the present application;
图15为本申请实施例提供的一种向输入框中输入信息的方法的场景示意图十四;FIG. 15 is a schematic diagram 14 of a scenario of a method for inputting information into an input box according to an embodiment of the present application;
图16为本申请实施例提供的一种向输入框中输入信息的方法的场景示意图十五;FIG. 16 is a schematic diagram 15 of a scenario of a method for inputting information into an input box according to an embodiment of the present application;
图17为本申请实施例提供的一种电子设备的结构示意图二。FIG. 17 is a second schematic structural diagram of an electronic device according to an embodiment of the present application.
具体实施方式detailed description
下面将结合附图对本实施例的实施方式进行详细描述。The implementation of this embodiment will be described in detail below with reference to the drawings.
本申请实施例提供的一种向输入框中输入信息的方法可应用于电子设备。该电子设备具体可以为手机、平板电脑、桌面型、膝上型、笔记本电脑、超级移动个人计算机(Ultra-mobile Personal Computer,UMPC)、手持计算机、上网本、个人数字助理(Personal Digital Assistant,PDA)、可穿戴电子设备、虚拟现实设备等,以下实施例中对电子设备的具体形式不做特殊限制。A method for inputting information into an input box provided by the embodiment of the present application can be applied to an electronic device. The electronic device may specifically be a mobile phone, a tablet computer, a desktop, a laptop, a notebook computer, an Ultra-mobile Personal Computer (UMPC), a handheld computer, a netbook, or a Personal Digital Assistant (PDA). , Wearable electronic devices, virtual reality devices, etc., the specific forms of the electronic devices are not particularly limited in the following embodiments.
示例性的,图1示出了电子设备100的结构示意图。For example, FIG. 1 shows a schematic structural diagram of an electronic device 100.
电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。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 charge management module 140, a power management module 141, a battery 142, an antenna 1, and an antenna 2 , Mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display 194, and Subscriber identification module (SIM) card interface 195 and the like. The sensor module 180 may include a pressure sensor 180A, a gyro 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, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部 件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure illustrated in the embodiment 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 parts than shown, or some parts may be combined, or some parts may be split, or different parts may be arranged. The illustrated components can be implemented in hardware, software, or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。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), and an image signal processor. (image, signal processor, ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural-network processing unit (NPU) Wait. Among them, different processing units may be independent devices or integrated in one or more processors.
其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller may be a nerve center and a command center of the electronic device 100. The controller can generate operation control signals according to the instruction operation code and timing signals, and complete the control of fetching and executing instructions.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器可以为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。The processor 110 may further include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 may be a cache memory. The memory may store instructions or data that the processor 110 has just used or used cyclically. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated accesses are avoided and the waiting time of the processor 110 is reduced, thereby improving the efficiency of the system.
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, the processor 110 may include one or more interfaces. The interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit (inter-integrated circuit, sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver receiver / transmitter (UART) interface, mobile industry processor interface (MIPI), general-purpose input / output (GPIO) interface, subscriber identity module (SIM) interface, and / Or universal serial bus (universal serial bus, USB) interface.
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。The I2C interface is a two-way synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple sets of I2C buses. The processor 110 may be respectively coupled to a touch sensor 180K, a charger, a flash, a camera 193, and the like through different I2C bus interfaces. For example, the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface to implement the touch function of the electronic device 100.
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。The I2S interface can be used for audio communication. In some embodiments, the processor 110 may include multiple sets of I2S buses. The processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may transmit audio signals to the wireless communication module 160 through an I2S interface, so as to implement a function of receiving a call through a Bluetooth headset.
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。The PCM interface can also be used for audio communications, sampling, quantizing, and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface. In some embodiments, the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to implement the function of receiving calls through a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。The UART interface is a universal serial data bus for asynchronous communication. The bus may be a two-way communication bus. It converts the data to be transferred between serial and parallel communications. In some embodiments, a UART interface is generally used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with a Bluetooth module in the wireless communication module 160 through a UART interface to implement a Bluetooth function. In some embodiments, the audio module 170 may transmit audio signals to the wireless communication module 160 through a UART interface, so as to implement a function of playing music through a Bluetooth headset.
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display 194, the camera 193, and the like. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), and the like. In some embodiments, the processor 110 and the camera 193 communicate through a CSI interface to implement a shooting function of the electronic device 100. The processor 110 and the display screen 194 communicate through a DSI interface to implement a display function of the electronic device 100.
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface may be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like. GPIO interface can also be configured as I2C interface, I2S interface, UART interface, MIPI interface, etc.
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。The USB interface 130 is an interface that complies with the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and a peripheral device. It can also be used to connect headphones and play audio through headphones. This interface can also be used to connect other electronic devices, such as AR devices.
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship between the modules illustrated in the embodiments of the present invention is only a schematic description, and does not constitute a limitation on the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection modes or a combination of multiple interface connection modes in the above embodiments.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。The charging management module 140 is configured to receive a charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive the charging input of the wired charger through the USB interface 130. In some embodiments of wireless charging, the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device 100. While the charge management module 140 is charging the battery 142, the power management module 141 can also provide power to the electronic device.
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 is used to connect the battery 142, the charge management module 140 and the processor 110. The power management module 141 receives inputs from the battery 142 and / or the charge management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 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, number of battery cycles, battery health (leakage, impedance) and other parameters. In other embodiments, the power management module 141 may also be disposed in the processor 110. In other embodiments, the power management module 141 and the charge management module 140 may be provided in the same device.
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, and a baseband processor.
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。The antenna 1 and the antenna 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed into a diversity antenna for a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同 一个器件中。The mobile communication module 150 may provide a wireless communication solution including 2G / 3G / 4G / 5G and the like applied on 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), and the like. The mobile communication module 150 may receive the electromagnetic wave by the antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic wave, and transmit it to the modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic wave radiation through the antenna 1. In some embodiments, at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110. In some embodiments, at least part of the functional modules of the mobile communication module 150 may be provided in the same device as at least part of the modules of the processor 110.
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。The modem processor may include a modulator and a demodulator. The modulator is configured to modulate a low-frequency baseband signal to be transmitted into a 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. The low-frequency baseband signal is processed by the baseband processor and then 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 a separate device. In other embodiments, the modem processor may be independent of the processor 110 and disposed in the same device as the mobile communication module 150 or other functional modules.
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 may provide wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (bluetooth, BT), and global navigation satellites applied to the electronic device 100. Wireless communication solutions such as global navigation system, GNSS, frequency modulation (FM), near field communication (NFC), and infrared technology (infrared, IR). The wireless communication module 160 may be one or more devices that integrate 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 may also receive a signal to be transmitted from the processor 110, frequency-modulate it, amplify it, and convert it into electromagnetic wave radiation through the antenna 2.
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(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,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the electronic device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with 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 a global mobile communication system (GSM), a general packet radio service (GPRS), a code division multiple access (CDMA), and broadband. Code division multiple access (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 navigation system (BDS), and a quasi-zenith satellite system (quasi -zenith satellite system (QZSS) and / or satellite based augmentation systems (SBAS).
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 100 implements a display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing and is connected to the display 194 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display images, videos, and the like. The display screen 194 includes a display panel. The display panel can use a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light-emitting diode). emitting diodes (AMOLED), flexible light-emitting diodes (FLEDs), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (QLEDs), etc. In some embodiments, the electronic device 100 may include one or N display screens 194, where N is a positive integer greater than one.
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The electronic device 100 may implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传 递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。The ISP processes the data fed back from the camera 193. For example, when taking a picture, the shutter is opened, and the light is transmitted to the light receiving element of the camera through the lens. The light signal is converted into an electrical signal, and the light receiving element of the camera passes the electrical signal to the ISP for processing and converts the image to the naked eye. ISP can also optimize the image's noise, brightness, and skin tone. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, an ISP may be provided in the camera 193.
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。The camera 193 is used to capture still images or videos. An object generates an optical image through a lens and projects it onto a photosensitive element. The photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to convert it into a digital image signal. The ISP outputs digital image signals to the DSP for processing. DSP converts digital image signals into image signals in standard RGB, YUV and other formats. In some embodiments, the electronic device 100 may include one or N cameras 193, where N is a positive integer greater than 1.
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。A digital signal processor is used to process digital signals. In addition to 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 a Fourier transform on the frequency point energy and the like.
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple encoding formats, such as: moving picture experts (MPEG) 1, MPEG2, MPEG3, MPEG4, and so on.
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。The NPU is a neural-network (NN) computing processor. By drawing on the structure of a biological neural network, such as the transfer mode between neurons in the human brain, the NPU can quickly process input information and continuously learn. The NPU can realize applications such as intelligent recognition of the electronic device 100, such as image recognition, face recognition, speech recognition, text understanding, and the like.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to extend the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, save music, videos and other files on an external memory card.
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。The internal memory 121 may be used to store computer executable program code, where the executable program code includes instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 121. The internal memory 121 may include a storage program area and a storage data area. The storage program area may store an operating system, at least one application required by a function (such as a sound playback function, an image playback function, etc.) and the like. The storage data area may store data (such as audio data, phone book, etc.) created during the use of the electronic device 100. 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 magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like.
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone interface 170D, and an application processor. Such as music playback, recording, etc.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。The audio module 170 is configured to convert digital audio information into an analog audio signal and output, and is also used to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or some functional modules of the audio module 170 may be disposed in the processor 110.
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。The speaker 170A, also called a "horn", is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接 听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。The receiver 170B, also referred to as the "handset", is used to convert audio electrical signals into sound signals. When the electronic device 100 answers a call or a voice message, it can answer the voice by holding the receiver 170B close to the human ear.
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。The microphone 170C, also called "microphone", "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can make a sound through the mouth near the microphone 170C, and input a sound signal into the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, in addition to collecting sound signals, it may also implement a noise reduction function. In other embodiments, the electronic device 100 may further be provided with three, four, or more microphones 170C to achieve sound signal collection, noise reduction, identification of sound sources, and directional recording.
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The headset interface 170D is used to connect a wired headset. The headphone interface 170D may be a USB interface 130 or a 3.5mm open mobile electronic device platform (OMTP) standard interface, a cellular telecommunications industry association (United States of America, CTIA) standard interface.
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。The pressure sensor 180A is used to sense a pressure signal, and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. The capacitive pressure sensor may be at least two parallel plates having a conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation is performed on the display screen 194, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic device 100 may also calculate the touched position based on the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but different touch operation intensities may correspond to different operation instructions. For example, when a touch operation with a touch operation intensity lower than the first pressure threshold is applied to the short message application icon, an instruction for viewing the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold is applied to the short message application icon, an instruction for creating a short message is executed.
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。The gyro sensor 180B may be used to determine a movement posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (ie, the x, y, and z axes) may be determined by the gyro sensor 180B. The gyro sensor 180B can be used for image stabilization. Exemplarily, when the shutter is pressed, the gyro sensor 180B detects the angle of the electronic device 100 shake, and calculates the distance that the lens module needs to compensate according to the angle, so that the lens cancels the shake of the electronic device 100 through the backward movement to achieve image stabilization. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。The barometric pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C, and assists in positioning and navigation.
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can detect the opening and closing of the flip leather case by using the magnetic sensor 180D. In some embodiments, when the electronic device 100 is a flip machine, the electronic device 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. Further, according to the opened and closed state of the holster or the opened and closed state of the flip cover, characteristics such as automatic unlocking of the flip cover are set.
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。The acceleration sensor 180E can detect the magnitude of acceleration of the electronic device 100 in various directions (generally three axes). The magnitude and direction of gravity can be detected when the electronic device 100 is stationary. It can also be used to recognize the posture of electronic devices, and is used in applications such as switching between horizontal and vertical screens, and pedometers.
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。Distance sensor 180F for measuring distance. The electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 may use the distance sensor 180F to measure the distance to achieve fast focusing.
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以 确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。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 through a light emitting diode. The electronic device 100 uses a photodiode to detect infrared reflected light from a nearby object. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficiently reflected light is detected, the electronic device 100 may determine that there is no object near the electronic device 100. The electronic device 100 may 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 holster mode, and the pocket mode automatically unlocks and locks the screen.
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。The ambient light sensor 180L is used to sense ambient light brightness. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. Ambient light sensor 180L can also be used to automatically adjust white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touch.
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 may use the collected fingerprint characteristics to realize fingerprint unlocking, access application lock, fingerprint photographing, fingerprint answering an incoming call, and the like.
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。The temperature sensor 180J is used to detect the temperature. In some embodiments, the electronic device 100 executes a temperature processing strategy using the temperature detected by the temperature sensor 180J. For example, when the temperature reported by the temperature sensor 180J exceeds the threshold, the electronic device 100 performs a performance reduction of a processor located near the temperature sensor 180J so as 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 avoid the abnormal shutdown of the electronic device 100 caused by the low temperature. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 performs a boost on the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。The touch sensor 180K is also called "touch panel". The touch sensor 180K may be disposed on the display screen 194, and the touch screen is composed of the touch sensor 180K and the display screen 194, which is also referred to as a "touch screen". The touch sensor 180K is used to detect a touch operation acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. A visual output related to the touch operation may be provided through the display screen 194. In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100, which is different from the position of the display screen 194.
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。The bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire a vibration signal of a human voice oscillating bone mass. Bone conduction sensor 180M can also contact the human pulse and receive blood pressure beating signals. In some embodiments, the bone conduction sensor 180M may also be disposed in the earphone and combined into a bone conduction earphone. The audio module 170 may analyze a voice signal based on the vibration signal of the oscillating bone mass of the vocal part obtained by the bone conduction sensor 180M to implement a voice function. The application processor may analyze the heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 180M to implement a heart rate detection function.
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。The keys 190 include a power-on key, a volume key, and the like. The key 190 may be a mechanical key. It can also be a touch button. The electronic device 100 may receive a key input, and generate a key signal input related to user settings and function control of the electronic device 100.
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。The motor 191 may generate a vibration alert. The motor 191 can be used for vibration alert for incoming calls, and can also be used for touch vibration feedback. For example, the touch operation applied to different applications (such as taking pictures, playing audio, etc.) can correspond to different vibration feedback effects. Acting on touch operations in different areas of the display screen 194, the motor 191 can also correspond to different vibration feedback effects. Different application scenarios (such as time reminders, receiving information, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. Touch vibration feedback effect can also support customization.
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 192 can be an indicator light, which can be used to indicate the charging status, power change, and can also be used to indicate messages, missed calls, notifications, and so on.
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM 卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。The SIM card interface 195 is used to connect a SIM card. The SIM card can be contacted and separated from the electronic device 100 by inserting or removing the SIM card interface 195. The electronic device 100 may support one or N SIM card interfaces, and N is a positive integer greater than 1. SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card, etc. Multiple SIM cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards may be the same or different. The SIM card interface 195 may also be compatible with different types of SIM cards. The SIM card interface 195 is also compatible with external memory cards. The electronic device 100 interacts with the network through a SIM card to implement functions such as calling and data communication. In some embodiments, the electronic device 100 uses an eSIM, that is, an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
在一些实施例中,上述电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本发明实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。In some embodiments, the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present invention takes the layered architecture Android system as an example, and exemplifies the software structure of the electronic device 100.
图2是本发明实施例的电子设备100的软件结构框图。FIG. 2 is a software structural block diagram of an electronic device 100 according to an embodiment of the present invention.
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。The layered architecture divides the software into several layers, each of which has a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, which are an application layer, an application framework layer, an Android runtime and a system library, and a kernel layer from top to bottom.
应用程序层(APP层)可以包括一系列应用程序包。The application layer (APP layer) may include a series of application packages.
如图2所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。As shown in Figure 2, the application package can include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, SMS and other applications.
应用程序框架层(framework层)为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer (framework layer) provides an application programming interface (API) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.
如图2所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。As shown in FIG. 2, 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.
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。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 a screenshot, etc.
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。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, and so on.
视图(view)系统包括可视控件,例如显示文字的控件text view,显示图片的控件image view等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。The view system includes visual controls, such as a text control that displays text, an image view control that displays pictures, and so on. The view system can be used to build applications. The display interface can consist of one or more views. For example, the display interface including the SMS notification icon may include a view that displays text and a view that displays pictures.
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。The phone manager is used to provide a communication function of the electronic device 100. For example, management of call status (including connection, hang up, etc.).
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。The notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages that can disappear automatically after a short stay without user interaction. For example, the notification manager is used to inform download completion, message reminders, etc. The notification manager can also be a notification that appears in the status bar at the top of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, text messages are displayed in the status bar, sounds are emitted, electronic equipment vibrates, and the indicator light flashes.
安卓运行时(Android Runtime)包括核心库和虚拟机。Android runtime负责安卓系统 的调度和管理。The Android Runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。The core library contains two parts: one is the functional functions that the Java language needs to call, and the other is the Android core library.
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The application layer and the application framework layer run in a virtual machine. The virtual machine executes the java files of the application layer and the application framework layer as binary files. Virtual machines are used to perform object lifecycle management, stack management, thread management, security and exception management, and garbage collection.
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。The system library can include multiple functional modules. For example: surface manager (media manager), media library (Media library), three-dimensional graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL) and so on.
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。The Surface Manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。The media library supports a variety of commonly used audio and video formats for playback and recording, as well as still image files. The media library can support multiple audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
2D图形引擎是2D绘图的绘图引擎。The 2D graphics engine is a graphics engine for 2D graphics.
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。The kernel layer is the layer between hardware and software. The kernel layer contains at least a display driver, a camera driver, an audio driver, and a sensor driver.
在本申请实施例中,仍如图2所示,应用程序框架层的视图(view)系统中可包括text view(文本视图)控件。text view控件可用于构建应用中的输入框,使得应用程序层中各个应用的输入框可基于text view控件实现信息输入过程。In the embodiment of the present application, as shown in FIG. 2, the view system of the application framework layer may include a text view control. The text view control can be used to construct the input box in the application, so that the input box of each application in the application layer can implement the information input process based on the text view control.
示例性的,应用程序层中的各个应用中可以包含一个或多个输入框。例如,微信应用中包含与联系人聊天时使用的输入框以及用于搜索的输入框。包含输入框的应用可预先在text view控件中注册其所包含的输入框的ID。例如,注册时应用可将自身的包名(packname)以及其输入框在应用中的标识等属性信息发送给text view控件。text view控件可为被注册的输入框生成一个能够唯一标识该输入框的ID。例如,text view控件可根据应用的包名以及该输入框在应用中的标识使用哈希算法(hash)生成该输入框的ID。这样,电子设备100中的每个输入框均可在text view控件中注册有一个唯一的ID,电子设备100可设置相应的数据库(例如历史记录数据库)维护各个输入框的ID。Exemplarily, each application in the application layer may include one or more input boxes. For example, the WeChat application contains input boxes for chatting with contacts and input boxes for searching. An application that contains an input box can register the ID of the input box it contains in the text control. For example, when registering, the application can send its own package name (packname) and its input box identification in the application to the text view control. The textview control generates an ID that uniquely identifies the input box for the registered input box. For example, the textview control may use a hash algorithm (hash) to generate the ID of the input box according to the package name of the application and the identification of the input box in the application. In this way, each input box in the electronic device 100 can be registered with a unique ID in the textview control, and the electronic device 100 can set a corresponding database (such as a history database) to maintain the ID of each input box.
后续,当检测到用户向某一应用的输入框(例如输入框A)输入信息时,该应用可调用text view控件将本次在输入框A中的输入内容作为历史输入记录进行保存,并建立该历史输入记录与该输入框ID之间的对应关系。例如,text view控件可将输入框A的ID与其历史输入记录之间的对应关系保存在历史记录数据库中。这样,电子设备100内维护有各个输入框与各条历史输入记录之间的对应关系。Subsequently, when it is detected that the user inputs information into an input box (for example, input box A) of an application, the application can call the text view control to save the input content in the input box A as a historical input record and establish it. Correspondence between the historical input record and the input box ID. For example, the textview control can save the correspondence between the ID of the input box A and its historical input record in the historical record database. In this way, the correspondence relationship between each input box and each historical input record is maintained in the electronic device 100.
仍以输入框A举例,当后续检测到用户操作输入框A(例如点击输入框A)时,text view控件可根据输入框A的ID,在历史记录数据库中查询到与输入框A对应的一条或多条历史输入记录,进而将这些历史输入记录作为候选输入项可以显示在输入框A的附近。这样,如果用户选中某一候选输入项,电子设备可自动将该候选输入项输入至输入框A,避免用户重复输入相同信息而导致输入效率降低的问题。Taking the input box A as an example, when it is detected that the user operates the input box A (such as clicking on the input box A), the text view control can query the input box A corresponding to the input box A according to the ID of the input box A. Or multiple historical input records, and these historical input records can be displayed near the input box A as candidate input items. In this way, if a user selects a candidate input item, the electronic device may automatically input the candidate input item into the input box A, thereby avoiding the problem that the user repeatedly inputs the same information and reduces the input efficiency.
另外,由于上述视图系统可以向所有具有输入框的应用提供上述输入服务,因此,用户使用任意输入框输入信息时,电子设备100均可按照上述方法提供候选输入项,用户可 以使用候选输入项向各个输入框中方便快捷的输入信息,从而缓解在不同输入框中输入效率参差不齐的不良用户体验。In addition, since the above-mentioned view system can provide the above-mentioned input service to all applications having input boxes, when a user inputs information using any input box, the electronic device 100 can provide candidate input items according to the above method, and the user can use the candidate input items to Convenient and fast input information in each input box, thereby alleviating the bad user experience of uneven input efficiency in different input boxes.
当然,除了将上述历史输入记录作为候选输入项之外,text view控件还可以将其他信息作为候选输入项推荐给用户。例如,电子设备100可预先设置一个AI(artificial intelligence,人工智能)数据库,如果输入框A所属的应用是音乐类的应用,则text view控件可从AI数据库中将最近的热门歌曲或歌手作为候选输入项推荐给用户;又例如,如果输入框A是与联系人Sam的聊天界面中的输入框,则text view控件可根据该聊天界面中的聊天内容从AI数据库中获取向用户推荐的候选输入项,使得用户在使用各类输入框时均能得到智能化的输入体验。Of course, in addition to the above 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 may set an AI (artificial intelligence) database in advance. If the application to which the input box A belongs is a music application, the textview control may use the AI database as a candidate for the most recent popular song or singer The input items are recommended to the user; for another example, if the input box A is an input box in the chat interface with the contact Sam, the textview control can obtain candidate input recommended to the user from the AI database according to the chat content in the chat interface Items, so that users can get intelligent input experience when using various input boxes.
以下以手机作为上述电子设备,结合附图详细阐述本申请实施例提供的一种向输入框中输入信息的方法。In the following, a mobile phone is used as the above-mentioned electronic device, and a method for inputting information into an input box provided by an embodiment of the present application will be described in detail with reference to the accompanying drawings.
需要说明的是,本申请实施例中涉及的输入框可以是具有搜索功能的输入框,例如,浏览器应用中的输入框,也可以是单纯用于交互信息的输入框,例如,短信应用中的短消息输入框、微信应用中与联系人的聊天输入框等。用户可以向输入框中输入文字、字母、数字、符号、图片以及表情等信息,本申请实施例对此不做任何限制。It should be noted that the input box involved in the embodiment of the present application may be an input box with a search function, for example, an input box in a browser application, or an input box used solely for interactive information, for example, in a text message application. Text message input box, chat input box with contacts in WeChat application, etc. The user can input information such as text, letters, numbers, symbols, pictures, and expressions into the input box, which is not limited in the embodiment of the present application.
如图3所示,以微信应用中与联系人Sam的聊天输入框301举例。在安装微信应用时,微信应用可向应用程序框架层中的视图系统(例如text view控件)注册该输入框301。注册时视图系统可为输入框301生成一个全局唯一的ID,后续,视图系统可根据该ID为输入框301提供相关的输入服务。需要说明的是,微信应用在向视图系统注册输入框时,可以以输入框的类型为粒度进行注册。例如,微信应用中各个联系人的聊天界面中的输入框均属于聊天输入框,因此微信应用可将聊天输入框统一在视图系统中注册一个ID,此时联系人Sam的聊天输入框301的ID与联系人Mike的聊天输入框的ID相同。当然,也可以以输入框的个数为粒度向视图系统注册输入框,此时,不同联系人所对应的聊天输入框的ID不相同。As shown in FIG. 3, a chat input box 301 with a contact Sam in the WeChat application is taken as an example. When the WeChat application is installed, the WeChat application may register the input box 301 with a view system (for example, a 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 related input services for the input box 301 according to the ID. It should be noted that when registering an input box with a view system, a WeChat application can register with the type of the input box as a granularity. For example, the input box in the chat interface of each contact in the WeChat application belongs to the chat input box, so the WeChat application can uniformly register the ID of the chat input box in the view system. At this time, the ID of the contact input box 301 of Sam The ID of the chat input box is the same as that of contact Mike. Of course, the number of input boxes can also be used to register the input boxes with the view system. At this time, the IDs of the chat input boxes corresponding to different contacts are different.
示例性的,仍如图3所示,用户在输入框301中输入信息的过程中,如果检测到用户完成本次输入,例如,检测到用户点击发送按钮302时,微信应用可调用视图系统将此时输入框301中的输入内容(例如“133595966688”)作为第一历史输入记录保存,并建立第一历史输入记录与输入框301的ID之间的对应关系。Exemplarily, as shown in FIG. 3, during the process of inputting information in the input box 301 by the user, if it is detected that the user completes the input, for example, when it is detected that the user clicks the send button 302, the WeChat application may call the view system to At this time, the input content (for example, "133595966688") in the input box 301 is saved as the first history input record, and a correspondence relationship between the first history input record and the ID of the input box 301 is established.
例如,手机可按照输入框的ID为不同的输入框建立对应的历史记录表。如图4所示,以上述输入框301举例,在与输入框301的ID对应的历史记录表401中,可以记录用户在输入框301中的输入内容(即历史输入记录)。这样,便可以建立历史输入记录与输入框的ID之间的对应关系。For example, the mobile phone may establish corresponding history record tables for different input boxes according to the IDs of the input boxes. As shown in FIG. 4, taking the above input box 301 as an example, the history record table 401 corresponding to the ID of the input box 301 can record the user's input content in the input box 301 (that is, the history input record). In this way, the correspondence between the historical input record and the ID of the input box can be established.
另外,仍如图4所示,在历史记录表401中,手机还可以记录每一条历史输入记录的输入时间。并且,手机还可以识别每一条历史输入记录的具体类型,例如,文字类型、数字类型、图片类型、表情类型、歌曲类型或古诗词类型等。手机可将识别出的具体类型一并记录在历史记录表401中,与对应的历史输入记录进行关联。这样,手机可记录下手机中每个输入框的历史输入记录,以及该历史输入记录的相关信息。In addition, as shown in FIG. 4, in the history record table 401, the mobile phone can also record the input time of each history input record. In addition, the mobile phone can also identify the specific type of each historical input record, such as text type, number type, picture type, expression type, song type, or ancient poetry type. The mobile phone can record the identified specific types together in the history record table 401 and associate them with the corresponding history input records. In this way, the mobile phone can record the historical input records of each input box in the mobile phone and the related information of the historical input records.
在本申请的另一些实施例中,如图5中的(a)所示,手机还可以在输入框301中设置一个按钮501。该按钮501可用于触发手机将本次的输入内容作为历史输入记录记录在历 史记录中,例如以表的形式记录在历史记录表401中。也就是说,在向输入框301输入信息的过程中,用户可以通过按钮501手动的将某些输入内容设置为历史输入记录进行保存。仍如图5中的(a)所示,用户在输入框301中输入“我叫Alice”之后,如果检测到用户点击按钮501,则说明用户希望将这次的输入内容作为历史输入记录保存,后续可能需要再次输入“我叫Alice”这一历史输入记录。进而,响应于用户点击按钮501的操作,手机可将输入框301中输入内容,即“我叫Alice”,作为一条历史输入记录记录在与输入框301的ID对应的历史记录中。这样,手机可以有选择性的将一些重要的或者后续可能会再次使用的输入内容作为历史输入记录进行保存。In other embodiments of the present application, as shown in FIG. 5 (a), the mobile phone may further set a button 501 in the input box 301. This button 501 can be used to trigger the mobile phone to record the current input content as a history 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 contents as historical input records for storage via the button 501. As shown in (a) of FIG. 5, after the user inputs “My name is Alice” in the input box 301, if it is detected that the user clicks the button 501, it indicates that the user wishes to save the input content this time as a historical input record. Later, you may need to enter the historical input record of "My name is Alice" again. Further, in response to the user's operation of clicking the button 501, the mobile phone may input the content in the input box 301, that is, "My name is Alice", and record it as a historical input record in the historical record corresponding to the ID of the input box 301. In this way, the mobile phone can selectively save some important or possibly re-used input content as historical input records.
示例性的,手机在历史记录中保存“我叫Alice”这条历史输入记录时,还可以自动识别并记录该历史记录的类型,例如,识别“我叫Alice”这条历史输入记录为文字类型。又或者,用户还可以手动设置手机在保存“我叫Alice”这条历史输入记录时该历史输入记录的类型。例如,如图5中的(b)所示,当检测到用户点击按钮501后,手机可进一步显示菜单502。菜单502中包括手机在保存历史输入记录时所支持的所有保存类型,例如,文字、表情、图片以及歌曲等。这样,用户可以在菜单502中手动选择以哪一种保存类型将“我叫Alice”这条历史输入记录保存在历史记录表401中。例如,如果检测到用户点击菜单502中的“文字”这一保存类型,则手机可在历史记录表401中保存“我叫Alice”这条历史输入记录时,建立该历史输入记录与文字类型之间的对应关系。Exemplarily, when the mobile phone saves the historical input record "My name is Alice" in the history record, it can also automatically identify and record the type of the historical record, for example, identify the historical input record "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, as shown in FIG. 5 (b), when it is detected that the user clicks the button 501, the mobile phone may further display a menu 502. The menu 502 includes all save types supported by the mobile phone when saving historical input records, such as text, expressions, pictures, and songs. In this way, the user can manually select in the menu 502 which save type is used to save the historical input record "My name is Alice" in the history record table 401. For example, if it is detected that the user clicks on the "text" save type in the menu 502, the mobile phone may create a history input record "My name is Alice" in the history record table 401 to establish the history input record and the text type. Correspondence between.
其中,上述按钮501可以一直显示在输入框301中。或者,手机也可以在检测到用户向输入框301中输入信息时显示该按钮501,当检测到用户停止在输入框301中输入时手机可隐藏该按钮501。又或者,手机也可以自动对输入框301中的输入内容进行识别,当识别出预设的关键词(例如,电话、住址等)时,手机可显示出该按钮501。当然,用户也可以通过执行相应的手势调出该按钮501,按钮501也可以显示在除输入框301之外的其他位置,本申请实施例对此不做任何限制。The button 501 can be displayed in the input box 301 all the time. Alternatively, the mobile phone may display the button 501 when detecting that the user inputs information into the input box 301, and may detect the button 501 when detecting that the user stops inputting in the input box 301. Alternatively, the mobile phone may also automatically recognize the input content in the input box 301, and when a preset keyword (for example, phone, address, etc.) is recognized, the mobile phone may display the button 501. Of course, the user can also call up the button 501 by performing a corresponding gesture, and the button 501 can also be displayed at a position other than the input box 301, which is not limited in this embodiment of the present application.
需要说明的是,手机可以对历史记录(例如历史记录表401)中记录的历史输入记录不断更新。例如,手机可在历史记录表401中维护最近一个月内在输入框301中输入的历史输入记录。那么,当某一历史输入记录的输入时间超出一个月的时限时,手机可自动删除该历史输入记录。或者,手机可在历史记录表401中维护一定数目(例如20条)的历史输入记录。那么,当历史记录表401中的历史输入记录大于20条时,手机可自动删除输入时间较早的历史输入记录。可以理解的,历史记录表401可以保存在手机中,也可以保存在服务器中。It should be noted that the mobile phone can continuously update the historical input records recorded in the historical records (for example, the historical record table 401). For example, the mobile phone may maintain a history entry record entered in the input box 301 within the last month in the history 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 may maintain a certain number (for example, 20) of history input records in the history record table 401. Then, when there are more than 20 history input records in the history record table 401, the mobile phone can automatically delete the history input records with an earlier input time. Understandably, the history record table 401 may be stored in a mobile phone or in a server.
上述实施例中阐述了用户向输入框301中输入信息时如何生成与输入框301关联的历史输入记录(例如上述历史记录表401)。下述实施例将结合附图详细阐述用户向输入框301中输入信息时如何根据历史输入记录为用户提供候选输入项。In the above embodiment, it is explained how to generate a history input record (for example, the history record table 401) associated with the input box 301 when the user inputs information into the input box 301. The following embodiments will explain in detail how to provide the user with candidate input items according to the historical input records when the user inputs information into the input box 301 in conjunction with the drawings.
示例性的,如图6所示,手机在运行微信应用时,如果检测到用户点击与Mike的聊天界面601中的输入框301,说明用户此时准备向输入框301中输入信息。响应于用户点击输入框301的操作,手机可显示第一提示框602,例如在输入框301附件显示第一提示框602。第一提示框602中包含了一个或多个候选输入项603。其中,候选输入项603可以是与上述输入框301对应的历史记录表401中历史输入记录。例如,候选输入项603可以是历史记录表401中用户输入频率较高或最近输入的一条或多条历史输入记录。当然, 响应于用户点击输入框301的操作,微信应用还可以调用输入法应用显示相应的虚拟键盘604,本申请实施例对此不做任何限制。For example, as shown in FIG. 6, when the mobile phone runs the WeChat application, if it is detected that the user clicks the input box 301 in the chat interface 601 with Mike, it indicates that the user is ready to enter information into the input box 301 at this time. In response to the operation of the user clicking the input box 301, the mobile phone may display the first prompt box 602, for example, the first prompt box 602 is displayed in the attachment of the input box 301. The first prompt box 602 includes one or more candidate input items 603. The candidate input item 603 may be a history input record in the history record table 401 corresponding to the input box 301. For example, the candidate input item 603 may be one or more historical input records in the history record table 401 where a user input frequency is high or recently input. Of course, in response to the user's operation of clicking the input box 301, the WeChat application may also call the input method application to display the corresponding virtual keyboard 604, which is not limited in this embodiment of the present application.
具体的,当检测到用户点击上述输入框301时,微信应用可向应用程序框架层中的视图系统发送输入框301的ID,进而,视图系统可在存储的历史记录中查找与输入框301的ID对应的历史记录。这样,视图系统可将历史记录中的一项或多项历史输入记录作为候选输入项603显示在上述第一提示框602中。后续,如果检测到用户选中第一提示框602中的某一历史输入记录,则手机可自动将用户选中的历史输入记录输入至输入框301中,避免用户使用输入法重复输入与历史输入记录相同的信息,从而提高向输入框输入信息时的输入效率。Specifically, when it is detected that the user clicks on the above input box 301, the WeChat application may send the ID of the input box 301 to the view system in the application framework layer, and further, the view system may look up the input box 301 in the stored history. ID corresponding to the history. In this way, the view system may display one or more historical input records in the history record as candidate input items 603 in the first prompt box 602 described above. Subsequently, if it is detected that the user selects a certain historical input record in the first prompt box 602, the mobile phone may automatically input the historical input record selected by the user into the input box 301, so as to avoid the user using the input method to repeatedly input the same input as the historical input record To improve the input efficiency when entering information into the input box.
在一些实施例中,仍如图6所示,第一提示框602中显示出的历史输入记录可以是历史记录中的部分内容。手机可在第一提示框602中设置“更多”的按钮605。当检测到用户点击按钮605时,手机可将与输入框301对应的历史记录中的其他历史输入记录显示出来供用户选择,或者,手机也可将与输入框301对应的历史记录中的所有历史输入记录显示出来供用户选择。In some embodiments, as shown in FIG. 6, 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 it is detected that the user clicks the 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, or the mobile phone may also display all the history in the historical record corresponding to the input box 301 The input record is displayed for the user to select.
或者,如果在上述历史记录中记录了输入框301中每一条历史输入记录的类型,那么,如图7所示,当检测到用户点击上述输入框301时,手机也可在聊天界面601中显示第二提示框701。该第二提示框701中包含了与输入框301对应的历史输入记录的类型,例如,文字、表情、图片、歌曲等。进而,用户可以在这些类型中进一步查找需要的某一类型的历史输入记录。例如,如果检测到用户点击第二提示框701中的“文字”这一类型时,如图8所示,手机可将历史记录中类型为文字的历史输入记录显示在“文字”这一类型的二级菜单801中。这样,用户在菜单801中可以查找所需的文字类型的历史输入记录。如果检测到用户选中菜单801中的某一历史输入记录,例如“我叫Alice”,则手机可自动将“我叫Alice”这一历史输入记录输入至输入框301中。这样,用户在众多历史输入记录中可以通过历史输入记录的类型快速检索到需要输入至输入框301内的历史输入记录,可进一步提高手机输入框中的输入效率。Alternatively, if the type of each history input record in the input box 301 is recorded in the history record, as shown in FIG. 7, when it is detected that the user clicks the input box 301, the mobile phone may also be displayed in the chat interface 601. The second prompt box 701. The second prompt box 701 includes a type of a history input record corresponding to the input box 301, for example, text, expression, picture, song, and the like. Furthermore, the user can further search for a certain type of historical input record among these types. For example, if it is detected that the user clicks on the type of “text” in the second prompt box 701, as shown in FIG. 8, the mobile phone may display the history input record of type “text” in the history record as the type of “text” In the secondary menu 801. In this way, the user can find the history input record of the desired text type in the menu 801. If it is detected that the user selects a certain historical input record in the menu 801, for example, "My name is Alice", the mobile phone can automatically input the historical input record "My name is Alice" into the input box 301. In this way, the user can quickly retrieve the historical input records that need to be input into the input box 301 through the types of historical input records among the many historical input records, which can further improve the input efficiency of the mobile phone input boxes.
在一些实施例中,仍如图7所示,手机还可以在第二提示框701中设置一个设置按钮702。用户可使用设置按钮702手动管理历史记录表401中的历史输入记录。例如,如果检测到用户点击设置按钮702,则如图9所示,手机可跳转至历史记录的编辑界面901。用户在编辑界面901中可以手动修改历史记录中的各条历史输入记录的内容、历史输入记录的类型等信息,或者,用户还可以在编辑界面901中手动删除或添加历史输入记录,从而设置满足用户个性化需求的历史记录。In some embodiments, as shown in FIG. 7, the mobile phone may further set a setting button 702 in the second prompt box 701. The user can manually manage the history input records in the history table 401 using the setting button 702. For example, if it is detected that the user clicks the setting button 702, as shown in FIG. 9, the mobile phone may jump to the editing interface 901 of the historical record. In the editing interface 901, the user can manually modify the content of each historical input record in the history record, and the type of the historical input record. Alternatively, the user can also manually delete or add the historical input record in the editing interface 901, so as to set the History of user personalized needs.
需要说明的是,触发手机显示上述第一提示框602(或第二提示框701)的事件可以是用户选中上述输入框301的操作。例如,用户点击输入框301的操作。用户选中输入框301,可触发手机显示上述第一提示框602(或第二提示框701)。或者,手机也可以检测用户是否对输入框301输入预设的手势。例如,该预设的手势可以是对输入框301的长按、重压、双击或滑动等手势。如果检测到用户对输入框301输入了预设的手势,则可触发手机显示上述第一提示框602(或第二提示框701)。这样,用户可以在输入框301中输入时的任意输入时刻通过执行预设的手势唤出上述第一提示框602(或第二提示框701)。It should be noted that the event that triggers the mobile phone to display the first prompt box 602 (or the second prompt box 701) may be an operation that the user selects the input box 301. For example, the user clicks the input box 301. Selecting the input box 301 by the user may trigger the mobile phone to display the first prompt box 602 (or the second prompt box 701). Alternatively, the mobile phone may detect whether the user inputs a preset gesture into the input box 301. For example, the preset gesture may be gestures such as long pressing, heavy pressing, double-clicking, or sliding on the input box 301. If it is detected that the user inputs a preset gesture to the input box 301, the mobile phone may be triggered to display the first prompt box 602 (or the second prompt box 701). In this way, the user can call up the first prompt box 602 (or the second prompt box 701) by performing a preset gesture at any input time when inputting in the input box 301.
进一步地,手机显示出上述第一提示框602(或第二提示框701)后,如果在预设时 长内没有检测到用户对第一提示框602(或第二提示框701)执行了任何操作,则手机可在聊天界面601中隐藏上述第一提示框602(或第二提示框701)。当然,手机也可以一直显示第一提示框602(或第二提示框701),直至检测到用户点击输入框301的发送按钮为止。Further, after the mobile phone displays the first reminder box 602 (or the second reminder box 701), if the user does not detect any operation performed on the first reminder box 602 (or the second reminder box 701) within a preset period of time, , 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 display the first prompt box 602 (or the second prompt box 701) until it is detected that the user clicks the send button of the input box 301.
仍以上述第一提示框602举例,在用户向输入框301输入信息的过程中,第一提示框602中的候选输入项603可以随着用户在输入框301中的输入内容而变化。如图10所示,手机可以实时获取用户在输入框301中的输入内容1001。进而,手机可以将获取到的输入内容1001作为关键词在历史记录中进行检索,检索出与输入内容1001相关联的历史输入记录。例如,图10中所示的输入内容1001为“我家”,那么,手机可在历史记录(例如历史记录表401)中检索出包含“我家”这一输入内容1001的历史输入记录。进而,手机可将检索出的历史输入记录作为新的候选输入项更新在第一提示框602中。这样,第一提示框602中向用户推荐的历史输入记录可随着用户输入实时变化,可提示用户将与当前输入内容相关联的历史输入记录快速输入至输入框301中。Still taking the above first prompt box 602 as an example, in the process of the user inputting 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. As shown in FIG. 10, the mobile phone can obtain the user's input content 1001 in the input box 301 in real time. Further, the mobile phone may search the history record using the obtained input content 1001 as a keyword, and retrieve a history input record associated with the input content 1001. For example, if the input content 1001 shown in FIG. 10 is "My Home", then the mobile phone may retrieve a historical input record containing the input content 1001 of "My Home" in a history record (for example, the history record table 401). Furthermore, the mobile phone may update the retrieved historical input record as a new candidate input item in the first prompt box 602. In this way, the historical input record recommended to the user in the first prompt box 602 can change in real time as the user inputs, and the user can be prompted to quickly input the historical input record associated with the current input content into the input box 301.
上述实施例中是以用户向输入框301输入信息时,向用户推荐与输入框301对应的历史输入记录为例说明的。在另一些实施例中,在用户向输入框301输入信息时,手机还可以将用户在其他输入框中的历史输入记录作为候选输入项推荐给用户。In the above embodiment, when the user inputs information into the input box 301, a history input record corresponding to the input box 301 is recommended to the user as an example. In other embodiments, when the user inputs information into the input box 301, the mobile phone may also recommend the user's historical input records in other input boxes as candidate input items.
仍以上述聊天界面601中的输入框301举例,如图11中的(a)所示,手机显示出的第一提示框602中的候选输入项603均为历史记录中的历史输入记录。手机可以在上述第一提示框602中设置切换按钮1101。切换按钮1101可用于将其他历史输入记录切换至当前手机显示的第一提示框602中,例如,可以将其他输入框的历史输入记录切换至当前手机显示的第一提示框602中。如果检测到用户点击该切换按钮1101,则如图11中的(b)所示,手机可以将为其他输入框记录的历史记录中的一个或多个历史输入记录作为新的候选输入项603’更新在第一提示框602中。例如,手机可以将用户在其他输入框中输入频率较高或最近输入的一个或多个历史输入记录作为新的候选输入项603’。Still taking the input box 301 in the chat interface 601 as an example, as shown in FIG. 11 (a), the candidate input items 603 in the first prompt box 602 displayed by the mobile phone are historical input records in the historical record. The mobile phone may set a switching button 1101 in the first prompt box 602 described above. The switch button 1101 may be used to switch other historical input records to the first prompt box 602 displayed by the current mobile phone. For example, the historical input records of other input boxes may be switched to the first prompt box 602 displayed by the current mobile phone. If it is detected that the user clicks the switching button 1101, as shown in (b) of FIG. 11, the mobile phone may use one or more historical input records in the historical records recorded for other input boxes as new candidate input items 603 ' Update in the first prompt box 602. For example, the mobile phone may use one or more historical input records that the user inputs frequently or recently in other input boxes as new candidate input items 603 '.
又或者,如果检测到用户点击上述切换按钮1101,如图12A所示,手机还可以以应用为粒度显示第一索引框1201。第一索引框1201中包含具有输入框的一个或多个应用的图标1202(或名称)。用户在第一索引框1201中选择相应应用的图标后,手机可以显示第一提示框602,将与该应用中输入框对应的历史输入记录作为候选输入项显示在第一提示框602中。例如,仍如图12A所示,如果检测到用户点击了第一索引框1201中联系人应用的图标,则手机可隐藏第一索引框1201,并将为联系人应用中的输入框存储的一条或多条历史输入记录显示在第一提示框602中。可以理解的,图12A中的第一提示框与其他图中描述的第一提示框可以相同也可以不相同,本发明实施例对此不作限定。Alternatively, if it is detected that the user clicks the switching button 1101, as shown in FIG. 12A, the mobile phone may further display the first index box 1201 with the granularity of the application. The first index box 1201 contains icons 1202 (or names) of one or more applications having an input box. After the user selects the icon of the corresponding application in the first index box 1201, the mobile phone may display a first prompt box 602, and display the history input record corresponding to the input box in the application as a candidate input item in the first prompt box 602. For example, as shown in FIG. 12A, if it is detected that the user has clicked the icon of the contact application in the first index box 1201, the mobile phone may hide the first index box 1201 and store one of the entries in the input box in the contact application. One or more historical input records are displayed in the first prompt box 602. It can be understood that the first prompt box in FIG. 12A may be the same as or different from the first prompt box described in other figures, which is not limited in the embodiment of the present invention.
又或者,如果检测到用户点击上述切换按钮1101,如图12B所示,手机还可以以历史输入记录的类型为粒度显示第二索引框1203。第二索引框1203中包含了手机中已存储的历史输入记录的不同类型1204。用户在第二索引框1203中选择相应的类型后,手机可以显示第一提示框602,将与该类型对应的历史输入记录作为候选输入项显示在第一提示框602中。例如,仍如图12B所示,如果检测到用户点击了第二索引框1203中的音乐类型,则手机可在所有音乐类型的历史输入记录中选出一个或多个显示在第一提示框602中,此时第一提示框602中的候选输入项不受限于与输入框301对应的历史记录表401中的历史 输入记录。Alternatively, if it is detected that the user clicks the switching button 1101, as shown in FIG. 12B, the mobile phone may further display the second index box 1203 based on the type of the history input record. The second index box 1203 contains different types of historical input records 1204 stored in the mobile phone. After the user selects the corresponding type in the second index box 1203, the mobile phone may display the first prompt box 602, and display the history input record corresponding to the type as a candidate input item in the first prompt box 602. For example, as shown in FIG. 12B, if it is detected that the user clicked on the music type in the second index box 1203, the mobile phone may select one or more of the history input records of all music types to display 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 history record table 401 corresponding to the input box 301.
可以理解的,在图12A或图12B中,手机可以在第一提示框602中也设置上述切换按钮1101。切换按钮的功能请参考图11的描述,故此处不再赘述。图12B中的第一提示框与其他图中的第一提示框可以相同也可以不同,本发明实施例对此不作限定。It can be understood that, in FIG. 12A or FIG. 12B, the mobile phone may also set the above-mentioned switch button 1101 in the first prompt box 602. Please refer to the description of FIG. 11 for the function of the switch button, so it will not be repeated here. The first prompt box in FIG. 12B may be the same as or different from the first prompt box in other figures, which is not limited in the embodiment of the present invention.
也就是说,用户向某一输入框输入信息时,手机可以跨输入框为用户提示在其他输入框中曾经输入的历史输入记录,这样用户在不同输入框中的历史输入记录都可以作为候选输入项推荐给用户,避免用户在不同输入框中重复输入同一输入内容而影响输入效率。That is, when a user enters information into one input box, the mobile phone can prompt the user for historical input records that have been entered in other input boxes across the input boxes, so that the user's historical input records in different input boxes can be used as candidate inputs Items are recommended to users to avoid users from repeatedly entering the same input content in different input boxes and affecting input efficiency.
上述实施例中均以用户向输入框301输入信息时,手机将历史输入记录作为候选输入项推荐给用户。可以理解的是,除了用户的历史输入记录之外,手机还可以根据输入框的相关信息或输入框所属应用的相关信息为用户智能生成相应的候选输入项。In the above embodiments, when the user inputs information into the input box 301, the mobile phone recommends the historical input record as a candidate input item to the user. It can be 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 according to the related information of the input box or the related information of the application to which the input box belongs.
示例性的,如图13所示,当检测到用户选中某一输入框(例如输入框1301)或向输入框1301中输入信息时,手机可识别输入框1301所属的应用的类型。例如,手机可获取输入框1301所属的应用的包名,进而根据该包名在应用市场中的分类确定该应用的类型。如果该应用属于通讯类或社交类应用,例如,短信应用、微信应用、QQ等,则手机可进一步识别使用输入框1301聊天时的具体聊天对象,例如对端联系人的名称、昵称、手机号码等信息。如果识别出使用输入框1301聊天时的聊天对象为指定的联系人,例如,10086、**银行、**公司的客服等,则手机可使用相应的智能算法确定出与识别出的联系人相关的候选输入项。Exemplarily, as shown in FIG. 13, when it is detected that a user selects an input box (for example, input box 1301) or inputs 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 may obtain the package name of the application to which the input box 1301 belongs, and then determine the type of the application according to the classification of the package name in the application market. If the application is 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, and mobile number of the opposite contact And other information. If it is identified that the chat object when using the input box 1301 to chat is the designated contact person, for example, 10086, ** bank, ** company's customer service, etc., the mobile phone can use the corresponding intelligent algorithm to determine that it is related to the identified contact Candidate input.
仍如图13所示,用户点击输入框1301后,可触发手机识别出输入框1301所属的应用为短信应用,即通讯类应用。手机可获取使用输入框1301聊天时聊天对象的手机号码为10086。由于10086为预设的特定联系人的电话号码,因此,手机可进一步确定与10086相关联的候选输入项。例如,用户向10086发短信时通常会回复各类短信服务代码,手机可预先存储这些短信服务代码与10086之间的对应关系。这样,当手机确定出对端的手机号码为10086时,手机可显示第三提示框1302,例如,可在输入框1301附近显示第三提示框1302,并将与10086对应的短信服务代码作为候选输入项显示在第三提示框1302中。这样,手机可根据聊天对象的不同,智能的在第三提示框1302中向用户提示与聊天对象相关的候选输入项,以提高用户的输入效率。Still shown in FIG. 13, after the user clicks on the input box 1301, the mobile phone can be triggered to recognize that the application to which the input box 1301 belongs is a short message application, that is, a communication application. The mobile phone can obtain the mobile phone number of the chat object when chatting using the input box 1301 is 10086. Since 10086 is a preset phone number of a specific contact, the mobile phone can further determine candidate input items associated with 10086. For example, when users send text messages to 10086, they usually reply to various types of short message service codes, and the mobile phone can store the correspondence between these short message service codes and 10086 in advance. In this way, when the mobile phone determines that the mobile phone number of the opposite end is 10086, the mobile phone may display a third prompt box 1302. For example, the third prompt box 1302 may be displayed near the input box 1301, and the short message service code corresponding to 10086 is used as a candidate input. Items are displayed in a third prompt box 1302. In this way, the mobile phone can intelligently prompt the user with candidate input items related to the chat object in the third prompt box 1302 according to different chat objects, so as to improve the input efficiency of the user.
在另一些实施例中,如果手机识别出当前用户操作的输入框所属的应用为通讯类应用或社交类应用,手机还可以识别此时输入框所在的聊天界面中的聊天内容。如图14所示,手机在显示与联系人张三的聊天界面1401时,如果检测到用户点击聊天界面1401中的输入框1402,手机可识别出输入框1402所属的应用为短信应用,即通讯类应用。进而,手机可获取聊天界面1401中用户与联系人张三的聊天内容1403,并对聊天内容1403进行识别。例如,手机可识别聊天内容1403中是否包含时间、日期、地点、天气等预设关键词。或者,手机可通过语义识别算法对聊天内容1403进行语义分析。进而,手机可根据对聊天内容1403的识别结果生成与聊天内容1403关联的候选输入项,并将生成的候选输入项显示在聊天界面1401的第四提示框1404中。In other embodiments, if the mobile phone recognizes that the application to which the input box operated by the user belongs is a communication application or a social application, the mobile phone may also identify the chat content in the chat interface where the input box is located at this time. As shown in FIG. 14, when the mobile phone displays the chat interface 1401 with the contact Zhang San, if it is detected that the user clicks the input box 1402 in the chat interface 1401, the mobile phone can recognize that the application to which the input box 1402 belongs is a text message application, that is, communication Class application. Furthermore, the mobile phone may obtain chat content 1403 of the user and the contact Zhang San in the chat interface 1401, and identify the chat content 1403. For example, the mobile phone can identify whether the chat content 1403 contains preset keywords such as time, date, place, and weather. Alternatively, the mobile phone may perform a semantic analysis on the chat content 1403 through a semantic recognition algorithm. Further, the mobile phone may generate candidate input items associated with the chat content 1403 according to the recognition result of the chat content 1403, and display the generated candidate input items in the fourth prompt box 1404 of the chat interface 1401.
例如,如果手机识别出聊天内容1403中包含天气的相关信息,则手机可将当前天气预报的内容作为候选输入项显示在上述第四提示框1404中。又例如,如果手机识别出聊天内容1403中包含美食的相关信息,则手机可将搜索到的附近餐厅的信息作为候选输入 项显示在上述第四提示框1404中。其中,本申请实施例中手机对聊天内容进行识别的具体方法,以及手机根据识别结果生成候选输入项的具体方法可由本领域技术人员根据实际应用场景或实际经验进行设置,本申请实施例对此不做任何限制。For example, if the mobile phone recognizes that the chat content 1403 contains weather-related information, the mobile phone may display the content of the current weather forecast as a candidate input item in the fourth prompt box 1404 described above. As another example, if the mobile phone recognizes that the chat content 1403 contains food related information, the mobile phone may display the searched information of nearby restaurants as candidate input items in the fourth prompt box 1404 described above. The specific method for identifying the chat content by the mobile phone in the embodiment of the present application and the specific method for the mobile phone to generate candidate input items based on the recognition result can be set by those skilled in the art according to the actual application scenario or actual experience. Without any restrictions.
在另一些实施例中,手机还可以根据当前用户操作的输入框所属的应用的类型生成对应的候选输入项。示例性的,可以将应用的类型划分为通讯类、音乐类、视频类、旅游类以及美食类等多种类型。手机可以预先设置不同类型应用的应用名单,这样手机可在该应用名单中查询某一应用的类型;或者,手机也可以在服务器中查询某一应用的类型。In other embodiments, the mobile phone may further generate corresponding candidate input items according to the type of the application to which the input box operated by the current user belongs. Exemplarily, the types of applications can be divided into communication, music, video, travel, and food categories. The mobile phone can preset an application list of different types of applications, so that the mobile phone can query the type of an application in the application list; or the mobile phone can also query the type of an application in the server.
示例性的,如图15所示,用户打开QQ音乐APP后,手机可显示QQ音乐APP的首页1501,首页1501中包含用于搜索的输入框1502。如果检测到用户点击该输入框1502,则手机可识别出输入框1502所属的QQ音乐应用为音乐类型的应用。进而,手机可将相关的音乐信息作为候选输入项显示在第五提示框1503中。其中,该音乐信息可以是搜索频率较高的热门歌曲或热门歌手等信息,本申请实施例对此不做任何限制。当然,如果手机识别出当前应用的类型为视频类应用,则手机可将相关的视频信息(例如热门电视剧、电影等)作为候选输入项;如果手机识别出当前应用的类型为旅游类应用,则手机可将相关的旅游信息(例如特价机票、景点推荐等)作为候选输入项。可以理解的是,本领域技术人员可以根据实际经验或实际应用场景设置生成与应用类型相关的候选输入项的具体方法。Exemplarily, as shown in FIG. 15, after the user opens the QQ Music APP, the mobile phone may display a home page 1501 of the QQ Music APP, and the home page 1501 includes an input box 1502 for searching. If it is detected that the user clicks on the input box 1502, the mobile phone may recognize that the QQ music application to which the input box 1502 belongs is a music type application. Further, the mobile phone may display the related music information as a candidate input item in the fifth prompt box 1503. The music information may be information such as a popular song or a popular singer with a high search frequency, which is not limited in the embodiment of the present application. Of course, if the mobile phone recognizes that the type of the current application is a video application, the mobile phone may use relevant video information (such as popular TV series, movies, etc.) as candidate input items; if the mobile phone recognizes that the type of the current application is a travel application, then The mobile phone can use relevant travel information (such as special airfare, attraction recommendation, etc.) as candidate input items. It can be understood that those skilled in the art can set a specific method for generating candidate input items related to application types according to actual experience or actual application scenario settings.
另外,仍如图15所示,手机显示出上述第五提示框1503后,如果检测到用户选中第五提示框1503中的某一候选输入项,则手机可将用户选中的候选输入项自动输入至输入框1502中。又或者,除了将用户选中的候选输入项自动输入至输入框1502之外,手机还可自动将用户选中的候选输入项作为搜索关键词进行搜索,并显示搜索结果。In addition, as shown in FIG. 15, after the mobile phone displays the fifth prompt box 1503, if it is detected that the user selects a candidate input item in the fifth prompt box 1503, the mobile phone may automatically input the candidate input item selected by the user Go to input box 1502. Or, in addition to automatically inputting the candidate input items selected by the user into the input box 1502, the mobile phone can also automatically search for the candidate input items selected by the user as search keywords, and display the search results.
在另一些实施例中,用户在操作某一输入框时,手机还可以根据用户在该输入框中的历史输入记录生成相应的候选输入项。例如,手机可以根据当前用户正在操作的输入框的ID查询与该输入框对应的历史记录表。进而,手机可根据查询到的历史记录表中的各条历史输入记录生成相关的候选输入项。例如,如果手机根据上述历史记录表确定出用户输入频率大于设置值的历史输入记录均是关于书籍的历史输入记录,那么,手机可以将与书籍相关的热门书名、热门作者等信息作为候选输入项提示给用户。也就是说,手机可以根据用户在输入框中的历史输入记录判断用户在该输入框中的输入习惯,进而基于用户的输入习惯为用户生成相应的候选输入项。In other embodiments, when the user operates an input box, the mobile phone may also generate corresponding candidate input items according to the historical input records of the user in the input box. For example, the mobile phone can query the history record table corresponding to the input box according to the ID of the input box that the current user is operating. Furthermore, the mobile phone can generate related candidate input items according to each historical input record in the query history record table. For example, if the mobile phone determines that the historical input records that the user input frequency is greater than the set value are historical input records about books according to the above history record table, then the mobile phone may use information such as popular book names and popular authors related to books as candidate inputs. The item is prompted to the user. That is, the mobile phone can judge the user's input habits in the input box according to 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.
可以看出,在本申请实施例中,用户在操作手机中的任意输入框时,手机都可以根据该输入框的历史输入记录、输入框所属应用的类型、与输入框相关联的联系人信息或聊天内容等信息生成相应的候选输入项,使得用户可以快速的在候选输入项中选择本次向输入框中输入的输入内容,从而提高手机内各个输入框中的输入效率,为用户带来智能化的输入体验。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 input records based on the history of the input box, the type of application to which the input box belongs, and contact information associated with the input box. Or chat content to generate corresponding candidate input items, so that users can quickly select the input content entered in the input box among the candidate input items, thereby improving the input efficiency of each input box in the phone, bringing users Intelligent input experience.
需要说明的是,用户在操作手机中的某一输入框时,手机可以按照上述各个实施例中所述的方法生成多个候选输入项,这些候选输入项既可以包括用户的历史输入记录,也可以包括手机根据应用类型、联系人信息或聊天内容等信息生成的候选输入项。示例性的,如图16所示,如果检测到用户在QQ音乐APP的首页1501中点击了输入框1502,则手机可显示两个提示框,即提示框1601和提示框1602,提示框1601和提示框1602中分别 包括一个或多个候选输入项。其中,提示框1601中的候选输入项是用户在输入框1502中的历史输入记录,提示框1602中的候选输入项是手机根据QQ音乐APP的应用类型为用户生成的相关音乐信息。后续,如果检测到用户选中某一提示框中的候选输入项,手机可将该选中的候选输入项自动输入至输入框1502中,这样用户仅通过一个选中操作便可完成向输入框1502中的输入过程,不仅可以提高输入框的输入效率,同时为用户提供了智能化的输入体验。It should be noted that when the user operates an input box in the mobile phone, the mobile phone can generate multiple candidate input items according to the methods described in the above embodiments, and these candidate input items can include the user's historical input records, and Can include candidate input items that the mobile phone generates based on information such as application type, contact information, or chat content. Exemplarily, as shown in FIG. 16, if it is detected that the user clicks the input box 1502 in the home page 1501 of the QQ music app, the mobile phone may display two prompt boxes, namely, a prompt box 1601 and a prompt box 1602, and a prompt box 1601 and The prompt box 1602 includes one or more candidate input items, respectively. The candidate input items in the prompt box 1601 are historical input records of the user in the input box 1502, and the candidate input items in the prompt box 1602 are related music information generated by the mobile phone for the user according to the application type of the QQ music APP. Subsequently, if it is detected that the user selects a candidate input item in a certain prompt box, the mobile phone can automatically input the selected candidate input item into the input box 1502, so that the user can complete the input into the input box 1502 through only one selection operation. The input process can not only improve the input efficiency of the input box, but also provide users with an intelligent input experience.
如图17所示,申请实施例公开了一种电子设备,包括:触摸屏1701,所述触摸屏1701包括触敏表面1706(触敏表面1706可作为一种输入设备)和显示屏1707;一个或多个处理器1702;存储器1703;一个或多个应用程序1708;以及一个或多个计算机程序1704,上述各器件可以相互连接,例如通过一个或多个通信总线1705相互连接。As shown in FIG. 17, an embodiment of the application discloses an electronic device including a touch screen 1701, which 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; memory 1703; one or more application programs 1708; and one or more computer programs 1704. The aforementioned devices may be connected to each other, for example, through one or more communication buses 1705.
其中,该一个或多个计算机程序1704被存储在上述存储器1703中并被配置为被该一个或多个处理器1702执行,该一个或多个计算机程序1704包括指令,上述指令可以用于执行如图2-图16及相应实施例中的各个步骤。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, and the instructions may be used to execute instructions such as Each step in FIG. 2 to FIG. 16 and corresponding embodiments.
本申请实施例还提供一种计算机存储介质,该计算机存储介质中存储有计算机程序代码,当上述处理器执行该计算机程序代码时,电子设备可执行与图2-图16中任一项相关的向输入框中输入信息的方法。An embodiment of the present application further provides a computer storage medium, where the computer storage code is stored in the computer storage medium. When the processor executes the computer program code, the electronic device may execute any of the operations related to any of FIG. How to enter information into the input box.
本申请实施例还提供了一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行与图2-图16中任一项相关的向输入框中输入信息的方法。The embodiment of the present application further provides a computer program product, which causes the computer to execute a method for inputting information into an input box related to any one of FIG. 2 to FIG. 16 when the computer program product runs on the computer.
其中,本申请实施例提供的电子设备、计算机存储介质或者计算机程序产品均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。The electronic devices, computer storage media, or computer program products provided in the embodiments of the present application are used to execute the corresponding methods provided above. Therefore, for the beneficial effects that can be achieved, refer to the corresponding methods provided above. The beneficial effects in the description are not repeated here.
可以理解的,基于说明书附图对本发明实施例做了说明。说明书中附图中的每一幅附图都可以理解是一个实施例。It can be understood that the embodiments of the present invention are described based on the drawings of the description. Each of the drawings in the specification can be understood as an embodiment.
本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:快闪存储器、移动硬盘、只读存储器、随机存取存储器、磁碟或者光盘等各种可以存储程序代码的介质。The technical solution of the embodiments of the present application is essentially a part that contributes to the existing technology or all or part of the technical solution may be embodied in the form of a software product. The computer software product is stored in a storage medium, including several The instructions are used to cause a computer device (which may be a personal computer, a server, or a network device) or a processor to execute all or part of the steps of the method described in the embodiments of the present application. The foregoing storage media include: flash media, mobile hard disks, read-only memories, random access memories, magnetic disks, or optical discs, which can store program codes.
以上所述,仅为本申请实施例的具体实施方式,但本申请实施例的保护范围并不局限于此,任何在本申请实施例揭露的技术范围内的变化或替换,都应涵盖在本申请实施例的保护范围之内。因此,本申请实施例的保护范围应以所述权利要求的保护范围为准。The above description is only a specific implementation of the embodiments of the present application, but the scope of protection of the embodiments of the present application is not limited to this. Any changes or replacements within the technical scope disclosed in the embodiments of the present application should be covered in the present. Within the protection scope of the application examples. Therefore, the protection scope of the embodiments of the present application shall be subject to the protection scope of the claims.

Claims (20)

  1. 一种向输入框中输入信息的方法,其特征在于,包括:A method for inputting information into an input box, comprising:
    电子设备显示显示界面,所述显示界面包含第一输入框;The electronic device displays a display interface, where the display interface includes a first input box;
    所述电子设备接收用户针对所述第一输入框的操作;Receiving, by the electronic device, a user's operation on the first input box;
    响应于所述操作,所述电子设备在所述显示界面显示第一提示框,所述第一提示框包括历史输入记录的M种类型,M为大于0的整数;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;
    所述电子设备接收用户从所述M种类型中选择第一类型的第一选中操作;Receiving, by the electronic device, a first selection operation in which a user selects a first type from among the M types;
    响应于所述第一选中操作,所述电子设备在所述显示界面中显示N个候选输入项,所述N个候选输入项均为所述第一类型的历史输入记录,N为大于0的整数;In response to the first selection operation, the electronic device displays N candidate input items in the display interface. The N candidate input items are historical input records of the first type, and N is greater than 0. Integer
    所述电子设备接收用户从所述N个候选输入项中选择第一候选输入项的第二选中操作;Receiving, by the electronic device, a second selection operation in which a user selects 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. 根据权利要求1所述的方法,其特征在于,所述N个候选输入项中包括第二输入框的历史输入记录。The method according to claim 1, wherein the N candidate input items include a historical input record of a second input box.
  3. 根据权利要求2所述的方法,其特征在于,The method according to claim 2, wherein:
    所述第一输入框为第一应用的输入框,所述第二输入框为第二应用的输入框;或者,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.
  4. 根据权利要求1所述的方法,其特征在于,所述N个候选输入项中包括所述第一输入框的历史输入记录。The method according to claim 1, wherein the N candidate input items include a history input record of the first input box.
  5. 根据权利要求1-4中任一项所述的方法,其特征在于,所述第一提示框中还包括第一按钮,所述方法还包括:The method according to any one of claims 1-4, wherein the first prompt box further comprises a first button, and the method further comprises:
    响应于用户点击所述第一按钮的操作,所述电子设备在所述第一提示框中显示除所述N个历史输入记录之外的其他历史输入记录。In response to a user's operation of clicking the first button, the electronic device displays other historical input records in addition to the N historical input records in the first prompt box.
  6. 根据权利要求1-4中任一项所述的方法,其特征在于,所述第一提示框中还包括第二按钮;所述方法还包括:The method according to any one of claims 1-4, wherein the first prompt box further comprises a second button; the method further comprises:
    响应于用户点击所述第二按钮的操作,所述电子设备以应用为粒度显示索引框;In response to a user clicking the second button, the electronic device displays an index box with an application as a 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, and the second prompt box includes at least one historical input record of the first application.
  7. 根据权利要求1-6中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-6, further comprising:
    所述电子设备接收用户向所述第一输入框输入的输入内容;Receiving, by the electronic device, input content input by the user into the first input box;
    所述电子设备基于所述输入内容,在所述第一提示框中显示与所述输入内容相关联的历史输入记录。The electronic device displays a history input record associated with the input content in the first prompt box based on the input content.
  8. 根据权利要求7所述的方法,其特征在于,所述显示界面中还包括保存按钮;The method according to claim 7, wherein the display interface further comprises 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 a user clicking the save button, the electronic device saves the input content as a history input record of the first input box.
  9. 根据权利要求8所述的方法,其特征在于,响应于用户点击所述保存按钮的操作,所述电子设备将所述输入内容作为所述第一输入框的历史输入记录进行保存,包括:The method according to claim 8, characterized in that, in response to a user's operation of clicking the save button, the electronic device saving the input content as a history input record of the first input box, comprising:
    响应于用户点击所述保存按钮的操作,所述电子设备显示所述输入内容的至少一种保存类型;In response to a user clicking the save button, the electronic device displays at least one save type of the input content;
    响应于用户选中的保存类型,所述电子设备保存所述输入内容,其中,所述输入内容与用户选中的保存类型相关。In response to the 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.
  10. 根据权利要求1-9中任一项所述的方法,其特征在于,所述M种类型包括文字、表情、图片、视频、数字、歌曲或古诗词中的至少一个。The method according to any one of claims 1-9, wherein the M types include at least one of a text, an expression, a picture, a video, a number, a song, or an ancient poem.
  11. 根据权利要求1-10中任一项所述的方法,其特征在于,在所述电子设备接收用户针对所述第一输入框的操作之后,还包括:The method according to any one of claims 1 to 10, wherein after the electronic device receives a user operation on the first input box, the method further comprises:
    响应于所述操作,所述电子设备在所述显示界面中显示K个候选输入项,K为大于0的整数;In response to the operation, the electronic device displays K candidate input items in the display interface, where K is an integer greater than 0;
    其中,所述K个候选输入项是根据所述显示界面中包含的聊天内容生成的;或者,所述K个候选输入项是根据所述显示界面中的聊天对象生成的;或者,所述K个候选输入项是根据所述显示界面所属的应用的类型生成的。Wherein, the K candidate input items are generated according to chat content included in the display interface; or the K candidate input items are generated according to chat objects in the display interface; or the K The candidate input items are generated according to the type of the application to which the display interface belongs.
  12. 一种电子设备,其特征在于,包括:一个或多个处理器、存储器、输入设备和显示屏;所述存储器、所述输入设备、所述显示屏与所述一个或多个处理器耦合,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,当所述一个或多个处理器执行所述计算机指令时,An electronic device, comprising: one or more processors, a memory, an input device, and a display screen; the memory, the input device, and the display screen are coupled with the one or more processors, The memory is configured to store computer program code, where the computer program code includes computer instructions, and when the one or more processors execute the computer instructions,
    所述显示屏,用于:显示显示界面,所述显示界面包含第一输入框;The display screen is configured to display a display interface, where the display interface includes a first input box;
    所述输入设备,用于:接收用户针对所述第一输入框的操作;The input device is configured to: receive a user operation on the first input box;
    所述处理器响应于用户针对所述第一输入框的操作,所述显示屏还用于:在所述显示界面显示第一提示框,所述第一提示框包括历史输入记录的M种类型,M为大于0的整数;In response to a user's operation on the first input box, the processor is further configured to display a first prompt box on the display interface, where the first prompt box includes M types of historical input records , M is an integer greater than 0;
    所述输入设备,还用于:接收用户从所述M种类型中选择第一类型的第一选中操作;The input device is further configured to: receive a first selection operation in which a user selects a first type from the M types;
    所述处理器响应于所述第一选中操作,所述显示屏还用于:在所述显示界面中显示N个候选输入项,所述N个候选输入项均为所述第一类型的历史输入记录,N为大于0的整数;In response to the first selection operation, the processor is further configured to display N candidate input items in the display interface, and the N candidate input items are the first type history. Input record, N is an integer greater than 0;
    所述输入设备,还用于:接收用户从所述N个候选输入项中选择第一候选输入项的第二选中操作;The input device is further configured to: receive a second selection operation in which the user selects a first candidate input item from the N candidate input items;
    所述处理器响应于所述第二选中操作,向所述第一输入框输入所述第一候选输入项,所述显示屏还用于:显示所述第一输入框输入的所述第一候选输入项。The processor inputs the first candidate input item to the first input box in response to the second selection operation, and the display screen is further configured to display the first input input by the first input box. Candidate input.
  13. 根据权利要求12所述的电子设备,其特征在于,所述N个候选输入项中包括第二输入框的历史输入记录,或者,所述N个候选输入项中包括所述第一输入框的历史输入记录;The electronic device according to claim 12, wherein the N candidate input items include a history input record of a second input box, or the N candidate input items include a history of the first input box Historical input records;
    其中,所述第一输入框为第一应用的输入框,所述第二输入框为第二应用的输入框;或者,所述第一输入框和所述第二输入框为同一应用中的两个不同输入框。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 in the same application. Two different input boxes.
  14. 根据权利要求12或13所述的电子设备,其特征在于,所述第一提示框中还包括第一按钮;The electronic device according to claim 12 or 13, wherein the first prompt box further comprises a first button;
    所述输入设备,还用于:接收用户点击所述第一按钮的操作;The input device is further configured to: receive an operation of a user clicking the first button;
    所述处理器响应于用户点击所述第一按钮的操作;所述显示屏还用于:在所述第一提示框中显示除所述N个历史输入记录之外的其他历史输入记录。The processor is responsive to a user's operation of clicking the first button; the display screen is further configured to display other historical input records except the N historical input records in the first prompt box.
  15. 根据权利要求12-14中任一项所述的电子设备,其特征在于,所述第一提示框中 还包括第二按钮;The electronic device according to any one of claims 12 to 14, wherein the first prompt box further includes a second button;
    所述输入设备,还用于:接收用户点击所述第二按钮的操作;The input device is further configured to: receive an operation of a user clicking the second button;
    所述处理器响应于用户点击所述第二按钮的操作;所述显示屏还用于:以应用为粒度显示索引框;The processor is responsive to a user's operation of clicking the second button; the display screen is further configured to display an index box with an application as a granularity;
    所述输入设备,还用于:接收用户在所述索引框中选中第一应用的操作;The input device is further configured to: receive an operation that a user selects a first application in the index box;
    所述处理器响应于用户在所述索引框中选中第一应用的操作;所述显示屏还用于:在所述显示界面显示第二提示框,所述第二提示框包括所述第一应用的至少一个历史输入记录。The processor is responsive to a user selecting the first application in the index box; the display screen is further configured to display a second prompt box on the display interface, where the second prompt box includes the first Application of at least one historical input.
  16. 根据权利要求12-15中任一项所述的电子设备,其特征在于,The electronic device according to any one of claims 12 to 15, wherein
    所述输入设备,还用于:接收用户向所述第一输入框输入的输入内容;The input device is further configured to: receive input content input by a user into the first input box;
    所述处理器响应于用户向所述第一输入框输入的输入内容;所述显示屏还用于:基于输入内容,在所述第一提示框中显示与所述输入内容相关联的历史输入记录。The processor is responsive to the input content input by the user into the first input box; the display screen is further configured to display the historical input associated with the input content in the first prompt box based on the input content recording.
  17. 根据权利要求12-16中任一项所述的电子设备,其特征在于,所述显示界面中还包括保存按钮;The electronic device according to any one of claims 12 to 16, wherein the display interface further comprises a save button;
    所述输入设备,还用于:接收用户点击所述保存按钮的操作;The input device is further configured to: receive an operation of a user clicking the save button;
    所述处理器响应于用户点击所述保存按钮的操作,将所述输入内容作为所述第一输入框的历史输入记录保存在历史输入记录中。In response to a user clicking the save button, the processor saves the input content as a history input record of the first input box in a history input record.
  18. 根据权利要求17所述的电子设备,其特征在于,The electronic device according to claim 17, wherein:
    所述处理器响应于用户点击所述保存按钮的操作,所述显示屏显示所述输入内容的至少一种保存类型;In response to the user clicking the save button, the processor displays at least one save type of the input content;
    所述输入设备,还用于:接收用户选中的保存类型,所述输入内容与用户选中的保存类型相关。The input device is further configured to receive a save type selected by the user, and the input content is related to the save type selected by the user.
  19. 根据权利要求12-18中任一项所述的电子设备,其特征在于,所述M种类型包括文字、表情、图片、视频、数字、歌曲或古诗词中的至少一个。The electronic device according to any one of claims 12 to 18, wherein the M types include at least one of a text, an expression, a picture, a video, a number, a song, or an ancient poem.
  20. 根据权利要求12-19中任一项所述的电子设备,其特征在于,The electronic device according to any one of claims 12 to 19, wherein
    所述显示屏,还用于:在所述显示界面中显示K个候选输入项,K为大于0的整数;The display screen is further configured to display K candidate input items in the display interface, where K is an integer greater than 0;
    其中,所述K个候选输入项是根据所述显示界面中包含的聊天内容生成的;或者,所述K个候选输入项是根据所述显示界面中的聊天对象生成的;或者,所述K个候选输入项是根据所述显示界面所属的应用的类型生成的。Wherein, the K candidate input items are generated according to chat content included in the display interface; or the K candidate input items are generated according to chat objects in the display interface; or the K The candidate input items are generated according to the type of the application to which the display interface belongs.
PCT/CN2018/108291 2018-09-28 2018-09-28 Method for inputting information into input box and electronic device WO2020062014A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2018/108291 WO2020062014A1 (en) 2018-09-28 2018-09-28 Method for inputting information into input box and electronic device
CN201880097766.2A CN112740148A (en) 2018-09-28 2018-09-28 Method for inputting information into input box and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/108291 WO2020062014A1 (en) 2018-09-28 2018-09-28 Method for inputting information into input box and electronic device

Publications (1)

Publication Number Publication Date
WO2020062014A1 true WO2020062014A1 (en) 2020-04-02

Family

ID=69950981

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/108291 WO2020062014A1 (en) 2018-09-28 2018-09-28 Method for inputting information into input box and electronic device

Country Status (2)

Country Link
CN (1) CN112740148A (en)
WO (1) WO2020062014A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114063855A (en) * 2021-11-12 2022-02-18 北京字跳网络技术有限公司 Content input method, device, equipment and medium of instant communication software

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113747249A (en) * 2021-07-30 2021-12-03 北京达佳互联信息技术有限公司 Live broadcast problem processing method and device and electronic equipment
CN116137617B (en) * 2021-11-17 2024-03-22 腾讯科技(深圳)有限公司 Expression pack display and associated sound acquisition methods, devices, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103365833A (en) * 2012-03-28 2013-10-23 百度在线网络技术(北京)有限公司 Context scene based candidate word input prompt method and system for implementing same
CN105760417A (en) * 2015-01-02 2016-07-13 国际商业机器公司 Cognitive Interactive Searching Method And System Based On Personalized User Model And Context
CN107621886A (en) * 2016-07-15 2018-01-23 北京搜狗科技发展有限公司 Method, apparatus and electronic equipment are recommended in one kind input

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103365833A (en) * 2012-03-28 2013-10-23 百度在线网络技术(北京)有限公司 Context scene based candidate word input prompt method and system for implementing same
CN105760417A (en) * 2015-01-02 2016-07-13 国际商业机器公司 Cognitive Interactive Searching Method And System Based On Personalized User Model And Context
CN107621886A (en) * 2016-07-15 2018-01-23 北京搜狗科技发展有限公司 Method, apparatus and electronic equipment are recommended in one kind input

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114063855A (en) * 2021-11-12 2022-02-18 北京字跳网络技术有限公司 Content input method, device, equipment and medium of instant communication software

Also Published As

Publication number Publication date
CN112740148A (en) 2021-04-30

Similar Documents

Publication Publication Date Title
US11450322B2 (en) Speech control method and electronic device
WO2020211701A1 (en) Model training method, emotion recognition method, related apparatus and device
CN110910872B (en) Voice interaction method and device
WO2020078299A1 (en) Method for processing video file, and electronic device
WO2020155014A1 (en) Smart home device sharing system and method, and electronic device
US20230140946A1 (en) Method for Recommending Service, Electronic Device, and System
US11863701B2 (en) Method for presenting video on electronic device when there is incoming call and electronic device
US20220358089A1 (en) Learning-Based Keyword Search Method and Electronic Device
WO2020029094A1 (en) Method for generating speech control command, and terminal
WO2020024108A1 (en) Application icon display method and terminal
US20230418630A1 (en) Operation sequence adding method, electronic device, and system
WO2020062014A1 (en) Method for inputting information into input box and electronic device
WO2023138305A1 (en) Card display method, electronic device, and computer readable storage medium
US20230385345A1 (en) Content recommendation method, electronic device, and server
WO2020216144A1 (en) Method for adding mail contact, and electronic device
EP4372579A1 (en) Application recommendation method and electronic device
WO2023221895A1 (en) Target information processing method and apparatus, and electronic device
CN114666441B (en) Method for calling capabilities of other devices, electronic device, system and storage medium
KR102584682B1 (en) Information display methods and devices
CN117972134A (en) Tone color recommendation method, electronic device, and computer storage medium
CN117009099A (en) Message processing method and electronic equipment
CN117785312A (en) Audio playing method, electronic device and storage medium
CN116301510A (en) Control positioning method and electronic equipment
CN115145665A (en) Display method, electronic equipment and system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18935637

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18935637

Country of ref document: EP

Kind code of ref document: A1