Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first" and "second," and the like, in the description and in the claims of embodiments of the present invention are used for distinguishing between different objects and not for describing a particular order of the objects. For example, the first content, the second content, and the like are for distinguishing different contents, and are not for describing a specific order of contents.
In the description of the embodiments of the present invention, the meaning of "a plurality" means two or more unless otherwise specified. For example, a plurality of elements refers to two elements or more.
The term "and/or" herein is an association relationship describing an associated object, and means that there may be three relationships, for example, a display panel and/or a backlight, which may mean: there are three cases of a display panel alone, a display panel and a backlight at the same time, and a backlight alone. The symbol "/" herein denotes a relationship in which the associated object is or, for example, input/output denotes input or output.
In the embodiments of the present invention, words such as "exemplary" or "for example" are used to mean serving as examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
The embodiment of the invention provides a content adding method and electronic equipment, wherein a user can display at least one addable content through a first input, so that the user can directly perform a second input on a target content in the at least one addable content according to a use requirement, the electronic equipment can rapidly and accurately add the target content at a corresponding position, and the user does not need to perform multiple inputs on a moving cursor to add the target content to the corresponding position, so that the operation of the user can be simplified, the operation time can be saved, and the content adding efficiency of the electronic equipment can be improved.
The content adding method and the electronic device provided by the embodiment of the invention can be applied to the process of adding the target content in the input content by the user.
The electronic device in the embodiment of the present invention may be an electronic device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present invention are not limited in particular.
The following describes a software environment to which the content adding method provided by the embodiment of the present invention is applied, by taking an android operating system as an example.
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention. In fig. 1, the architecture of the android operating system includes 4 layers, which are respectively: an application layer, an application framework layer, a system runtime layer, and a kernel layer (specifically, a Linux kernel layer).
The application program layer comprises various application programs (including system application programs and third-party application programs) in an android operating system.
The application framework layer is a framework of the application, and a developer can develop some applications based on the application framework layer under the condition of complying with the development principle of the framework of the application.
The system runtime layer includes libraries (also called system libraries) and android operating system runtime environments. The library mainly provides various resources required by the android operating system. The android operating system running environment is used for providing a software environment for the android operating system.
The kernel layer is an operating system layer of an android operating system and belongs to the bottommost layer of an android operating system software layer. The kernel layer provides kernel system services and hardware-related drivers for the android operating system based on the Linux kernel.
Taking an android operating system as an example, in the embodiment of the present invention, a developer may develop a software program for implementing the content adding method provided in the embodiment of the present invention based on the system architecture of the android operating system shown in fig. 1, so that the content adding method may operate based on the android operating system shown in fig. 1. That is, the processor or the electronic device may implement the content adding method provided by the embodiment of the present invention by running the software program in the android operating system.
The electronic device in the embodiment of the invention can be a mobile electronic device or a non-mobile electronic device. For example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a Personal Computer (PC), a Television (TV), a teller machine, a self-service machine, and the like, and the embodiment of the present invention is not particularly limited.
A content adding method and an electronic device provided in the embodiments of the present invention are described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
In the embodiment of the present invention, when a user edits a text through an application program of an electronic device, if the user needs to add a new content (for example, a content composed of two parts of sub-content, specifically, a punctuation mark such as a double quotation mark or a bracket) to an already input content (for example, a text content in an input box) in an interface of the application program, the user does not need to input a moving cursor in the input box multiple times in a conventional manner to add the new content to a corresponding position (that is, one sub-content corresponds to one position), but directly input a part of or all of the already input content (for example, a content that needs to be referenced by a double quotation mark) so that the electronic device displays (for example, displays in a floating window form) a plurality of addable contents (for example, a plurality of punctuation marks) on the interface, and the user can select a certain addable content (for example, a double quotation mark) that needs to be added from the plurality of addable contents, so that the electronic device adds the two parts of sub-content of the certain addable content to the two positions corresponding to the content marked by the electronic device respectively, so that the content marked by the electronic device is located between the two parts of sub-content (for example, the content marked by the electronic device is referred by double quotation marks) to realize text editing of the content input in the application program; therefore, through the scheme provided by the embodiment of the invention, the input of the mobile cursor when the user adds new content in the input content can be simplified, so that the efficiency of adding the content by the electronic equipment can be improved.
Optionally, in the embodiment of the present invention, the application program may be any one of the following: chat-type applications, memo applications, office-type applications, browser-type applications, and the like. The specific method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
Fig. 2 shows a flowchart of a content adding method provided in an embodiment of the present invention, and the method may be applied to an electronic device having an android operating system shown in fig. 1. As shown in fig. 2, the content adding method provided by the embodiment of the present invention may includesteps 201 to 204 described below.
Step 201, the electronic device receives a first input of a user on a first interface.
In an embodiment of the present invention, the first interface includes first content, and the first input is an input of a second content in the first content by a user.
Optionally, in this embodiment of the present invention, the first interface may be an interface capable of editing content, for example, the first interface may be a text editing interface, a chat conversation interface, or a search interface in an application program.
Optionally, in the embodiment of the present invention, the first content is a content that has been input by the user in the first interface; alternatively, the first content may be content that has been generated by the electronic device.
Optionally, in this embodiment of the present invention, the second content may be a part of or all of the first content.
Optionally, in an embodiment of the present invention, the first content specifically may include at least one of the following: text, letters, images (e.g., emoticons), symbols, numbers, links, and the like; the second content may specifically include at least one of the following: words, letters, images, symbols, numbers, links, and the like.
Optionally, in the embodiment of the present invention, the symbols may include punctuation marks, special symbols, and the like.
It should be noted that the characters, letters, images, symbols, numbers and links may be referred to as characters.
Optionally, in this embodiment of the present invention, the first input may be a selection input of a user for a second content in the first content. For example, the first input may specifically be a long-press input of the second content by the user, or a selection input of the second content through an input device (e.g., a keyboard, a mouse, etc.), or the like. The specific method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
Optionally, in this embodiment of the present invention, the first interface may further include a moving cursor, a soft keyboard, and other function options (for example, a delete option, a save option, and the like); the user can make a selection input for the second content by moving the cursor.
Step 202, the electronic device responds to the first input, marks the second content in a preset mode, and displays the first window.
In an embodiment of the present invention, the first window includes at least one addable content.
Optionally, in this embodiment of the present invention, each addable content in the at least one addable content includes a plurality of sub-contents, respectively (i.e., each addable content is composed of a plurality of sub-contents, respectively).
Optionally, in this embodiment of the present invention, the at least one addable content is a content that can be added/inserted in the content already displayed in the first interface by the electronic device.
Optionally, in this embodiment of the present invention, the electronic device may determine and mark the second content according to the position (e.g., the start position and the end position) of the first input; alternatively, the electronic device may determine and mark the second content according to semantic information, syntax information, and the like of the content corresponding to the position of the first input (e.g., the content displayed at the position and the content adjacent to the content).
Optionally, in this embodiment of the present invention, the electronic device may filter out at least one addable content (for example, an addable content composed of a plurality of content parts) from the plurality of contents according to the feature information of the plurality of contents stored in the electronic device, so as to display the at least one addable content.
Optionally, in this embodiment of the present invention, a user may set a content editing rule in the electronic device in advance (for example, turn on an addable content quick display function), so that the user may trigger the electronic device to display at least one addable content through the first input, where the at least one addable content may be selected by the user from a plurality of contents in the electronic device in advance.
Optionally, in an embodiment of the present invention, the at least one addable content includes at least one of: words, letters, images, symbols, numbers, and the like.
Optionally, in this embodiment of the present invention, the symbol may be a punctuation symbol or a combination symbol, where the punctuation symbol specifically includes at least one of the following: double quotation marks, single quotation marks, title numbers, and parentheses (e.g., small, medium, large, etc.) and the like. The specific method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
Optionally, in this embodiment of the present invention, each addable content in the at least one addable content may include a plurality of sub-contents, that is, one addable content is composed of a plurality of sub-contents.
Optionally, in an embodiment of the present invention, the preset manner may be any one of the following manners: a color marking content mode, a content flashing marking mode, a color marking background mode, a content amplifying display mode and the like; the electronic device may display the first window in a floating form; alternatively, the electronic device may display the first window in the first interface.
Illustratively, taking an electronic device as a mobile phone as an example for illustration, as shown in fig. 3 (a), the mobile phone displays a first interface (e.g., a text editing interface 10), thetext editing interface 10 displays first content (e.g., the first content includes a plurality of letters, words, numbers, etc.) that a user has input, asoft keyboard 11, and amobile cursor 12, and the user can perform a first input on a second content (e.g., today's weather is good) in the first content; as shown in fig. 3 (B), after the user makes the first input, the mobile phone may mark the second content in a color mark background manner (illustrated in a filled manner in fig. 3 (B)) and display afirst window 13, which includes at least one addable content (e.g., a double quotation mark, a single quotation mark, a book title number, and various brackets, etc.) in thefirst window 13.
Optionally, in this embodiment of the present invention, the first window further includes at least one control, where each control is used to indicate an editing processing mode, and each editing processing mode is used to edit the first content.
It can be understood that different controls correspond to different editing processing modes, and the different editing processing modes are used for performing different editing processing on the first content.
Optionally, in an embodiment of the present invention, the at least one control may include at least one of: a full selection control, a copy control, a cutting control, a content parameter adjusting control and the like; the at least one editing processing mode corresponding to the at least one control may include at least one of: a full selection processing mode, a copy processing mode, a cut processing mode, a content parameter adjustment mode (for example, a character size adjustment mode, a character color adjustment mode, a character format adjustment mode, etc.), and the like. The full selection processing mode is used for the electronic equipment to perform full selection processing on the first content, the copy processing mode is used for the electronic equipment to perform copy processing on the first content, and the cutting processing mode is used for the electronic equipment to perform cutting processing on the first content.
Optionally, in the embodiment of the present invention, a user may input any control of the at least one control to trigger the electronic device to edit the first content in an editing processing manner corresponding to the any control.
Illustratively, in conjunction with fig. 3 (B), as shown in fig. 4, thefirst window 13 in thefirst interface 10 further includes at least one control, for example, afull selection control 14, acopy control 15, and acut control 16, the user may make a selection input on thefull selection control 14 so that the first content may be selected by the mobile phone in full according to the second content, the user may make a selection input on thecopy control 15 so that the second content may be copied into the clipboard by the mobile phone, and the user may make a selection input on thecut control 16 so that the second content may be cut into the clipboard by the mobile phone.
Optionally, in this embodiment of the present invention, thestep 202 may be specifically implemented by the following step 202 a.
Step 202a, the electronic device responds to the first input, marks the second content in a preset mode, and displays the first window under the condition that the first interface is detected to be a text editing interface.
It is understood that the text editing interface can be understood as follows: an interface that allows a user to perform text editing, such as content addition, content deletion, content movement, content input, and the like.
In the embodiment of the invention, the electronic equipment can acquire the authority information of the first content in the first interface and determine whether the first interface is a text editing interface or not according to the authority information.
Optionally, in this embodiment of the present invention, in a case that the first interface is detected as another interface (i.e., a non-text editing interface, such as a reading interface, a browsing interface, and the like), the electronic device may not display at least one addable content, for example, display at least one control.
In the embodiment of the invention, the electronic equipment can determine whether the user can add content in the first interface according to whether the first interface is a text editing interface or not, so as to determine whether the first window comprising at least one addable content is displayed or not, and therefore, the flexibility of the electronic equipment in displaying the addable content is higher.
Optionally, in this embodiment of the present invention, thestep 202 may be specifically implemented by the following step 202 b.
Step 202b, the electronic device responds to the first input, marks the second content in a preset mode, and displays the first window under the condition that a third input is not detected within a preset time length.
In an embodiment of the present invention, the third input is a target editing input of a user on content in the electronic device; wherein the target editing input comprises at least one of: copy input and cut input.
In the embodiment of the present invention, the electronic device may start to detect after the first input is ended (i.e., the ending time of the first input), so as to determine whether the third input exists within a preset time period from the ending time to the previous time.
Optionally, in this embodiment of the present invention, the third input may be an input of content in the first interface by a user, or an input of content in another interface (for example, an interface other than the first interface (for example, an interface in another application)).
Optionally, in this embodiment of the present invention, the electronic device may detect whether to add content to be processed (for example, copied content or cut content) in the target storage area (for example, the clipboard) within a preset time period, and display the first window when it is determined that the content to be processed is added in the target storage area.
Optionally, in this embodiment of the present invention, in a case that the third input is detected within the preset time period, the electronic device may not display at least one addable content, for example, display at least one control.
In the embodiment of the present invention, the electronic device may determine whether the user needs the electronic device to perform other processing on the content in the first interface according to whether the third input is detected within the preset time period, so as to determine whether to display the first window including at least one addable content, so that the flexibility of displaying the addable content by the electronic device is higher.
Step 203, the electronic device receives a second input of the user.
In an embodiment of the present invention, the second input is an input (e.g., a selection input) of a user to a target content in the at least one addable content.
Optionally, in this embodiment of the present invention, the target content may include one addable content or multiple addable contents.
Instep 204, the electronic device adds the target content at the target location in response to the second input.
In an embodiment of the present invention, the target position is a position in the first interface corresponding to an area where the second content is located.
The position corresponding to the area where the second content is located may be understood as: a position before the second content (i.e., a position where the display of the second content is started) and/or a position after the second content (i.e., a position where the display of the second content is ended).
Optionally, in this embodiment of the present invention, the first content may include N characters (N is a positive integer), and the second content includes M characters (M is a positive integer less than or equal to N) of the N characters, where a first character of the M characters is an ith character (i is a positive integer) of the N characters, and a last character of the M characters is an i + M-1 th character of the N characters; the target position is a position between the (i-1) th character and the ith character, and/or a position between the (i + M-1) th character and the (i + M) th character.
It is to be appreciated that the electronic device can display the target content at the target location by adding the target content at the target location.
Optionally, in this embodiment of the present invention, the target content includes a first sub-content and a second sub-content, and the target location includes a first sub-location and a second sub-location. Referring to fig. 2, as shown in fig. 5, thestep 204 can be specifically realized by the followingstep 204 a.
Step 204a, the electronic device adds the first sub-content at the first sub-position and adds the second sub-content at the second sub-position in response to the second input.
In this embodiment of the present invention, the second content is located between the first sub-content and the second sub-content.
It is understood that after adding the first sub-content and the second sub-content, the second content is located between the first sub-content and the second sub-content.
Optionally, in this embodiment of the present invention, the first sub-position may be a position between the i-1 th character and the i-th character, and the second sub-position may be a position between the i + M-1 th character and the i + M-th character.
Optionally, in this embodiment of the present invention, the first sub-content may be a first half content of the target content, and the second sub-content may be a second half content of the target content.
Optionally, in this embodiment of the present invention, the first sub-content may be a leading quotation mark in a double quotation mark, and the second sub-content may be a trailing quotation mark in the double quotation mark; the first sub-content may be a front parenthesis among parenthesis, and the second sub-content may be a rear parenthesis among parenthesis; the first sub-content may be a front book name number in the book name number, and the second sub-content may be a back book name number in the book name number.
It is to be understood that the electronic device may display the first sub-content at a first sub-location by adding the first sub-content at the first sub-location, and display the second sub-content at a second sub-location by adding the second sub-content at the second sub-location.
Illustratively, in conjunction with (B) in fig. 3, as shown in fig. 6, after the user makes a second input on the target content (e.g., double quotation marks) in thefirst window 13, the mobile phone may add a first sub-content (e.g., a leading quotation mark of the double quotation mark) in the target content at a first sub-position (e.g., position m) in thetext editing interface 10, and add a second sub-content (e.g., a trailing quotation mark of the double quotation mark) in the target content at a second sub-position (e.g., position n) in thetext editing interface 10, so that the second content (i.e., today's weather is good) is located between the first sub-content and the second sub-content.
Optionally, in the embodiment of the present invention, before thestep 204a, the content adding method provided in the embodiment of the present invention further includes the following step 301, and thestep 204a may be specifically realized by the followingstep 204a 1.
Step 301, the electronic device obtains first characteristic information of the first sub-content and second characteristic information of the second sub-content.
Optionally, in this embodiment of the present invention, the first characteristic information may include a content format and attribute information of the first sub-content, and the second characteristic information may include a content format and attribute information of the second sub-content, where the content formats of the first sub-content and the second sub-content are the same.
Optionally, in an embodiment of the present invention, the content format may include at least one of the following: a text form, a letter form, a number form, an image form, a symbol form (e.g., a double quotation mark form, a title number form, etc.).
Step 204a1, the electronic device responds to the second input, and adds the first sub-content at the first sub-position and the second sub-content at the second sub-position according to the first characteristic information and the second characteristic information.
In the embodiment of the invention, the user can make the electronic device display at least one addable content through the first input, so that the user can directly perform the second input on the target content in the at least one addable content, so that the electronic device can rapidly and respectively add different word contents (namely, the first sub-content and the second sub-content) in the target content at different positions (namely, the first sub-position and the second sub-position), and the user does not need to perform multiple inputs on the moving cursor to add the target content to the corresponding positions, so that the operation of the user can be simplified, the operation time can be saved, and the efficiency of content adding processing by the electronic device can be improved.
The embodiment of the invention provides a content adding method, wherein an electronic device can mark second content and display a first window comprising at least one addable content according to first input of a user to the second content in first content, and add a target content in the at least one addable content at a target position according to second input of the user to the target content. The user can directly perform second input on the target content in the at least one addable content according to the use requirement, so that the electronic equipment can add the target content at the corresponding position quickly and accurately without performing multiple inputs on the mobile cursor to add the target content to the corresponding position, the operation of the user can be simplified, the operation time can be saved, and the efficiency of content adding processing by the electronic equipment can be improved.
Fig. 7 shows a schematic diagram of a possible structure of an electronic device involved in the embodiment of the present invention. As shown in fig. 7, theelectronic device 70 may include: a receivingmodule 71, a markingmodule 72, adisplay module 73 and an addingmodule 74.
The receivingmodule 71 is configured to receive a first input of a user in a first interface, where the first interface includes first content, and the first input is an input of a second content in the first content by the user. A markingmodule 72 for marking the second content in a preset manner in response to the first input received by the receivingmodule 71. Adisplay module 73, configured to display a first window including at least one addable content in response to the first input received by the receivingmodule 71. The receivingmodule 71 is further configured to receive a second input of the user, where the second input is an input of the user to the target content in the at least one addable content. And an addingmodule 74, configured to add, in response to the second input received by the receivingmodule 71, the target content at a target position, where the target position is a position in the first interface corresponding to the area where the second content is located.
In one possible implementation, the at least one addable content includes at least one of: text content, symbol content, and image content; the first window further comprises at least one control, each control is used for indicating an editing processing mode, and each editing processing mode is used for editing and processing the first content.
In a possible implementation manner, the target content includes a first sub-content and a second sub-content, and the target location includes a first sub-location and a second sub-location. The addingmodule 74 is specifically configured to add a first sub-content at a first sub-position, and add a second sub-content at a second sub-position; wherein the second content is located between the first sub-content and the second sub-content.
In a possible implementation manner, with reference to fig. 7 and as shown in fig. 8, an electronic device provided in an embodiment of the present invention further includes: anacquisition module 75. Wherein, the obtainingmodule 75 is configured to obtain the first characteristic information of the first sub-content and the second characteristic information of the second sub-content before the addingmodule 74 adds the first sub-content at the first sub-position. The addingmodule 74 is specifically configured to add the first sub-content at the first sub-position and add the second sub-content at the second sub-position according to the first characteristic information and the second characteristic information.
In a possible implementation manner, thedisplay module 73 is specifically configured to display the first window when it is detected that the first interface is a text editing interface.
In a possible implementation manner, thedisplay module 73 is specifically configured to display the first window under the condition that a third input is not detected, where the third input is a target editing input of a user on content in the electronic device within a preset time duration; wherein the target editing input comprises at least one of: copy input and cut input.
The electronic device provided by the embodiment of the present invention can implement each process implemented by the electronic device in the above method embodiments, and for avoiding repetition, detailed descriptions are not repeated here.
The embodiment of the invention provides electronic equipment, and a user can directly perform second input on target content in at least one addable content according to use requirements so that the electronic equipment can quickly and accurately add the target content at a corresponding position without inputting a moving cursor for multiple times so as to simplify the operation of the user and save the operation time, thereby improving the efficiency of content adding processing of the electronic equipment.
Fig. 9 is a hardware schematic diagram of an electronic device implementing various embodiments of the invention. As shown in fig. 9,electronic device 100 includes, but is not limited to:radio frequency unit 101,network module 102,audio output unit 103,input unit 104,sensor 105,display unit 106,user input unit 107,interface unit 108,memory 109,processor 110, andpower supply 111.
It should be noted that the electronic device structure shown in fig. 9 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown in fig. 9, or combine some components, or arrange different components, as will be understood by those skilled in the art. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
Theuser input unit 107 is configured to receive a first input of a user in a first interface, where the first interface includes first content, and the first input is an input of a second content in the first content by the user.
Aprocessor 110 for tagging the second content in a preset manner in response to the first input.
Adisplay unit 106 for displaying a first window including at least one addable content in response to a first input.
Theuser input unit 107 is further configured to receive a second input from the user, where the second input is input from the user to the target content in the at least one addable content.
Theprocessor 110 is further configured to add, in response to the second input, the target content at the target position, where the target position is a position in the first interface corresponding to the area where the second content is located.
The embodiment of the invention provides electronic equipment, and a user can directly perform second input on target content in at least one addable content according to use requirements so that the electronic equipment can quickly and accurately add the target content at a corresponding position without inputting a moving cursor for multiple times so as to simplify the operation of the user and save the operation time, thereby improving the efficiency of content adding processing of the electronic equipment.
It should be understood that, in the embodiment of the present invention, theradio frequency unit 101 may be used for receiving and sending signals during a message transmission or call process, and specifically, after receiving downlink data from a base station, the downlink data is processed by theprocessor 110; in addition, the uplink data is transmitted to the base station. Typically,radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, theradio frequency unit 101 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via thenetwork module 102, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
Theaudio output unit 103 may convert audio data received by theradio frequency unit 101 or thenetwork module 102 or stored in thememory 109 into an audio signal and output as sound. Also, theaudio output unit 103 may also provide audio output related to a specific function performed by the electronic apparatus 100 (e.g., a call signal reception sound, a message reception sound, etc.). Theaudio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
Theinput unit 104 is used to receive an audio or video signal. Theinput unit 104 may include a Graphics Processing Unit (GPU) 1041 and amicrophone 1042, and thegraphics processor 1041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on thedisplay unit 106. The image frames processed by thegraphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via theradio frequency unit 101 or thenetwork module 102. Themicrophone 1042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via theradio frequency unit 101 in case of a phone call mode.
Theelectronic device 100 also includes at least onesensor 105, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of thedisplay panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off thedisplay panel 1061 and/or the backlight when theelectronic device 100 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); thesensors 105 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
Thedisplay unit 106 is used to display information input by a user or information provided to the user. Thedisplay unit 106 may include adisplay panel 1061, and thedisplay panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), or the like.
Theuser input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, theuser input unit 107 includes atouch panel 1071 andother input devices 1072.Touch panel 1071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 1071 (e.g., operations by a user on or neartouch panel 1071 using a finger, stylus, or any suitable object or attachment). Thetouch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to theprocessor 110, and receives and executes commands sent by theprocessor 110. In addition, thetouch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to thetouch panel 1071, theuser input unit 107 may includeother input devices 1072. Specifically,other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, thetouch panel 1071 may be overlaid on thedisplay panel 1061, and when thetouch panel 1071 detects a touch operation thereon or nearby, thetouch panel 1071 transmits the touch operation to theprocessor 110 to determine the type of the touch event, and then theprocessor 110 provides a corresponding visual output on thedisplay panel 1061 according to the type of the touch event. Although in fig. 9, thetouch panel 1071 and thedisplay panel 1061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, thetouch panel 1071 and thedisplay panel 1061 may be integrated to implement the input and output functions of the electronic device, and is not limited herein.
Theinterface unit 108 is an interface for connecting an external device to theelectronic apparatus 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. Theinterface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within theelectronic apparatus 100 or may be used to transmit data between theelectronic apparatus 100 and the external device.
Thememory 109 may be used to store software programs as well as various data. Thememory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, thememory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
Theprocessor 110 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in thememory 109 and calling data stored in thememory 109, thereby performing overall monitoring of the electronic device.Processor 110 may include one or more processing units; alternatively, theprocessor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into theprocessor 110.
Theelectronic device 100 may further include a power supply 111 (e.g., a battery) for supplying power to each component, and optionally, thepower supply 111 may be logically connected to theprocessor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, theelectronic device 100 includes some functional modules that are not shown, and are not described in detail herein.
Optionally, an embodiment of the present invention further provides an electronic device, which includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, and when executed by the processor, the computer program implements each process of the foregoing content addition method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned content addition method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be, for example, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling an electronic device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.