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 application.
The term "and/or" herein is an association relationship describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. The symbol "/" herein denotes a relationship in which the associated object is or, for example, a/B denotes a or B.
The terms "first" and "second," etc. herein are used to distinguish between different objects and are not used to describe a particular order of objects. For example, the first input and the second input, etc. are for distinguishing different inputs, rather than for describing a particular order of inputs.
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.
In the description of the embodiments of the present invention, unless otherwise specified, "a plurality" means two or more, for example, a plurality of elements means two or more elements, and the like.
The embodiment of the invention provides a paste control method and electronic equipment. Specifically, under the condition that the electronic device displays the first interface, if the electronic device receives a first input of a user, the electronic device may set, in response to the first input, first content in the first interface as to-be-pasted content corresponding to the target application program; therefore, under the condition that the electronic equipment receives a second input of the user, the electronic equipment can automatically display the content to be pasted, which corresponds to the target application program and comprises the first content, on the second interface; then, after the electronic device receives a third input of the first content to be pasted by the user, the electronic device may display the first content in the target input area in response to the third input, so as to complete the copy and paste of the first content in the target application program. Through the scheme, if a user needs to copy some contents (such as text contents) in the first interface to a plurality of application programs at one time, the user can trigger the electronic device to set the target contents as the contents to be pasted corresponding to the target application programs through one input. Then, when the user enters the corresponding application program interface, the target content to be pasted in the corresponding first interface in the application program can be displayed under the condition that the electronic equipment receives a second input of the user, so that the user can trigger the electronic equipment to paste and display the target content in the input area through one input, and the content of the first interface can be copied and pasted in the input areas of a plurality of different application programs without repeatedly executing a series of operations by the user, therefore, the copying and pasting process of the electronic equipment can be simplified, the copying and pasting efficiency of the electronic equipment is improved, and the human-computer interaction performance is improved.
The electronic device in the embodiment of the 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 paste control 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. For example, an application, such as a browser application, displaying the first interface in an embodiment of the invention may be developed based on an application framework.
Generally, a browser application may include two parts, one part refers to a service (service) running in the background of an electronic device, and is used for detecting various inputs of a user on a first interface; the other part is content displayed on a screen of the electronic device, for example, content displayed in response to various inputs by the user.
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 paste control 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 paste control method may operate based on the android operating system shown in fig. 1. That is, the processor or the electronic device may implement the paste control 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 terminal, 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 or a self-service machine, and the like, and the embodiment of the present invention is not particularly limited.
An execution main body of the paste control method provided in the embodiment of the present invention may be the electronic device, or may also be a functional module and/or a functional entity capable of implementing the paste control method in the electronic device, which may be determined specifically according to actual use requirements, and the embodiment of the present invention is not limited. The following takes an electronic device as an example to exemplarily describe the paste control method provided by the embodiment of the present invention.
In the embodiment of the present invention, in a first scenario, when a user needs to copy and paste a content (for example, a text content) to an input area of an interface of an application program, the user does not need to repeatedly perform a series of steps in a conventional manner, but may directly trigger an electronic device to display a plurality of application identifiers (each application identifier may indicate an application program), and then the user may trigger the electronic device to set the content as a to-be-pasted content corresponding to the application program by inputting the application identifier of the application program. Therefore, under the condition that an input cursor of the electronic equipment is positioned in an input area of the interface of the application program, the electronic equipment can display the content to be pasted corresponding to the application program. The user may then trigger the electronic device to paste the content in the input area by an input.
In the second scenario, when a user needs to copy and paste a plurality of contents (e.g., text contents) into an input area of an interface of an application program, the user does not need to repeatedly perform a series of steps in a conventional manner, but may first trigger the electronic device to select one of the plurality of contents, then trigger the electronic device to display a plurality of application identifiers (each application identifier may indicate one application program), and trigger the electronic device to set the one content as a to-be-pasted content corresponding to the application program by inputting the application identifier of the application program; then, the user can trigger the electronic device to select another content in the plurality of contents, then trigger the electronic device to display the plurality of application identifiers, and trigger the electronic device to set the another content as the content to be pasted corresponding to the application program again through inputting the application identifier of the application program. By analogy, the electronic device can be triggered to set the plurality of contents as the contents to be pasted corresponding to the application program respectively. In addition, the user may also trigger the electronic device to select all of the plurality of contents at a time, then display a plurality of application identifiers (each application identifier may indicate one application program) on the triggered electronic device, and trigger the electronic device to set all of the plurality of contents as the contents to be pasted corresponding to the application program by inputting the application identifier of the application program. Therefore, under the condition that an input cursor of the electronic equipment is located in an input area of an interface of the application program, the electronic equipment can directly display the contents to be pasted corresponding to the application program, and then a user can trigger the electronic equipment to paste and display the contents in the input area through one input.
In a third scenario, when a user needs to copy and paste a certain content (e.g., text content) to an input area of an interface of different application programs, the user does not need to repeatedly perform a series of steps in a conventional manner, but directly may trigger the electronic device to display a plurality of application identifiers (each application identifier may indicate one application program), and then the user may trigger the electronic device to set the content as the content to be pasted corresponding to the application programs by inputting the application identifiers of the application programs. Therefore, when the input cursor of the electronic device is located in the input area of the interface of one of the application programs, the electronic device can display the content to be pasted corresponding to the application program. Then, the user can trigger the electronic equipment to paste and display the content in the input area through one input. In this way, by analogy, for each application program, the user can trigger the electronic device to paste and display the content in the input area of the interface of the application program, so that the electronic device can paste and display the content in the input area of the interface of the application program respectively.
In a fourth scenario, when a user needs to copy and paste a plurality of contents (e.g., text contents) to an interface of different application programs, the user does not need to repeatedly perform a series of steps in a conventional manner, but may first trigger the electronic device to select one of the plurality of contents, then trigger the electronic device to display a plurality of application identifiers (each of which may indicate one application program), and trigger the electronic device to set the one content as a to-be-pasted content corresponding to the one application program by inputting an application identifier of the one application program among the plurality of application programs; then, the user can trigger the electronic device to select another content in the plurality of contents, then trigger the electronic device to display the plurality of application identifications, and trigger the electronic device to set the another content as the content to be pasted corresponding to the another application program through inputting the application identification of the another application program in the plurality of application programs. By analogy, the electronic device can be triggered to set the plurality of contents as the contents to be pasted corresponding to the application programs respectively. Therefore, when the input cursor of the electronic device is located in the input area of the interface of one of the application programs, the electronic device can display the content to be pasted corresponding to the application program. Then, the user can trigger the electronic device to display the content to be pasted corresponding to the application program in the input area of the interface of the application program through one input. In this way, by analogy, for each application program, the user can trigger the electronic device to paste and display the content to be pasted corresponding to the application program in the input area of the interface of the application program, so that the electronic device can paste and display a plurality of contents in the input area of the interface of the application programs respectively.
According to the above four scenarios, since the user can set some contents (e.g. a certain content or a plurality of contents) as the contents to be pasted corresponding to different application programs respectively through one input. Moreover, under the condition that an input cursor of the electronic equipment is positioned in an input area of an interface of an application program, the electronic equipment can directly display the contents to be pasted corresponding to the application program, and then a user can paste and display the contents in the input area through one input, and the contents can be copied and pasted in the input area without repeatedly executing a series of operations for many times by the user, so that the copying and pasting processes of the electronic equipment can be simplified, the copying and pasting efficiency of the electronic equipment is improved, and the man-machine interaction performance is improved.
The paste control method provided by the embodiment of the invention is described in detail below with reference to the accompanying drawings.
As shown in fig. 2, an embodiment of the present invention provides a paste control method, which may include S201 to S206 described below.
S201, the electronic equipment receives a first input of a user under the condition that the electronic equipment displays a first interface.
The first input may be input by a user for first content in the first interface, and the first content may be content selected by the user in the first interface. It is to be appreciated that the user may perform an input in the first interface to select the first content in the first interface before performing the first input on the first content.
Optionally, in the embodiment of the present invention, the first interface may be an interface of a communication application, an interface of a reading application, an interface of a shopping application, an interface of a browser application, or the like. The method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
Optionally, in the embodiment of the present invention, the first content may be a text, a picture, a file, or the like. The 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 input may include a first sub-input and a second sub-input. The first sub-input is sliding input of a user on the first interface along different directions; the second sub-input is input by the user to the identification of the target application program in the identification of the at least one candidate application program, and is used for selecting the application program identification.
It should be noted that, the description of the identification of the at least one candidate application may refer to the following related description in S202, and is not repeated herein. In addition, the identifier of the application program in the embodiment of the present invention may also be referred to as an application identifier.
Optionally, in this embodiment of the present invention, the first sub-input may specifically be an input that a user slides along "up", slides along "down", slides along "left", or slides along "right" on the first interface, and may specifically be determined according to an actual use requirement, which is not limited in this embodiment of the present invention.
It should be noted that, the directions "up", "down", "left" and "right" in the embodiment of the present invention are all described by taking an example of the user's input above the screen when the screen of the electronic device faces the user. That is, the directions "up", "down", "left" and "right" in the embodiment of the present invention are relative to the user when the screen of the electronic device faces the user. It is understood that the directions "up", "down", "left" and "right" are exemplary and not intended to limit the embodiments of the present invention. In actual implementation, any other possible directions may also be used, which may be determined according to actual use requirements, and the embodiment of the present invention is not limited.
Optionally, in this embodiment of the present invention, the second sub-input may be a click input of the user on the identifier of the target application program, or the second sub-input may be a long-press input of the user on the identifier of the target application program; alternatively, the second sub-input may be a user's re-press input on the identification of the target application, etc. The method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
Optionally, the identifier of the target application may be an identifier of one application or identifiers of multiple applications. The method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
S202, the electronic equipment responds to the first input, and the first content in the first interface is set as the content to be pasted, corresponding to the target application program.
In the embodiment of the present invention, after the electronic device receives a first input of a user, the electronic device may set, in response to the first input, first content in the first interface as content to be pasted corresponding to a target application program. Specifically, after the electronic device receives a first sub-input of the user, the electronic device may determine, according to a preset rule, at least one application program in response to the first sub-input, obtain an identifier of the at least one application program, obtain an identifier of at least one candidate application program, and then the electronic device may display the identifier of the at least one candidate application program in the first interface. After the electronic device receives the second sub-input of the user, the electronic device may set the first content in the first interface as the content to be pasted corresponding to the target application program in response to the second sub-input.
In the embodiment of the present invention, after the electronic device sets the first content as the content to be pasted corresponding to the target application program, the content to be pasted corresponding to the target application program may include the first content.
Optionally, in this embodiment of the present invention, each identifier of the at least one candidate application in the identifier of the at least one candidate application may indicate one application, and different identifiers of the candidate applications may be used to indicate different applications.
Optionally, in this embodiment of the present invention, in a case that the identifier of the target application is an identifier of one application, the electronic device may set the first content as the content to be pasted, which corresponds to the target application, in response to the first input. In the case where the identification of the target application program identifies the identifications of the plurality of application programs, the electronic device may set the first contents as contents to be pasted corresponding to the target application programs, respectively.
Optionally, in an implementation of the present invention, the preset rule may be to acquire an application program running within a preset time period. Correspondingly, the identifier of the at least one candidate application may be an identifier of an application that is run by the electronic device within a preset time period, for example, an identifier of an application that is run within the last month is obtained; alternatively, the preset rule may be to acquire an application program whose user usage frequency is greater than a frequency threshold within a preset time period. Accordingly, the identifier of the at least one candidate application may be an identifier of an application with a frequency of use greater than a frequency threshold in a preset time period, for example, an identifier of an application with a frequency of use greater than a frequency threshold in the last two months may be obtained.
Optionally, in this embodiment of the present invention, when the electronic device displays the identifier of the at least one candidate application in the first interface, the electronic device may reduce, according to a preset scale, original content in the first interface (that is, content displayed by the first interface before the first input is received).
The above-mentioned S201 and S202 are exemplarily explained with reference to fig. 3.
Illustratively, as shown in fig. 3 (a), an interface diagram of a first interface is displayed for the electronic device, and the first content is assumed to be the content shown as 30. When the user performs the selection input on the first content 30, the electronic device may select the first content 30 as shown in (b) of fig. 3. As shown in (c) of fig. 3, after the user performs the first sub-input on the first content on the first interface, that is, the user slides in the direction shown by 31 on the first interface, as shown in (d) of fig. 3, the electronic device may display an application identifier 32 (indicating a short message application), an application identifier 33 (indicating a messaging application), an application identifier 34 (indicating a video application), an application identifier 35 (indicating a shopping 1 application), and an application identifier 36 (indicating a map application) in the first interface, and reduce the original content in the first interface. Assuming that the target application is a communication application, when the user performs the second sub-input to the application identifier 33, the electronic device may set the first content 30 as the content to be pasted corresponding to the communication application indicated by the application identifier 33 in response to the second sub-input.
Note that, in (c) of fig. 3, in order to clearly illustrate the direction of the first input by the user, the content of the first interface displayed in (c) of fig. 3 is not shown in the figure, and in an actual implementation, the content of the first interface displayed in (c) of fig. 3 is the same as the content shown in (b) of fig. 3.
It should be noted that, in the embodiment of the present invention, the electronic device executing the above S201-S202 may be referred to as the electronic device copying content.
S203, the electronic equipment receives a second input of the user.
The second input may be used to trigger the electronic device to display an input cursor in a target input area in the second interface. That is, the user can trigger the electronic device to control the input cursor to be located in the target input area in the second interface through the second input.
And S204, the electronic equipment responds to the second input, and displays the content to be pasted corresponding to the target application program on a second interface.
In the embodiment of the present invention, when the electronic device receives a second input from the user, that is, when the input cursor is located in the target input area in the second interface, the electronic device may display, in response to the second input, the content to be pasted corresponding to the target application program on the second interface.
The content to be pasted may include a first content. It is understood that the content to be pasted may include only the first content; or may include both the first content and other content.
Optionally, in the embodiment of the present invention, the electronic device may sequentially display each of the contents to be pasted according to a time sequence of each of the contents to be pasted. Wherein, the time sequence can be from the current time, from near to far or from far to near, etc.
Optionally, in this embodiment of the present invention, the second interface may be an interface of a target application program.
In the embodiment of the invention, before the user performs the second input, the user can trigger the electronic device to run the target application program. After the user triggers the electronic device to run the target application, the electronic device may display a second interface (i.e., the interface of the target application) on the screen. And then the user can trigger the electronic device to control the input cursor to be located in the target input area in the second interface, in this case, when the electronic device detects that the input cursor is located in the target input area in the second interface, the electronic device can determine that the user may need to input content, at this time, the electronic device can acquire the content to be pasted corresponding to the target application program, and display the content to be pasted in the second interface, so as to prompt the user that the content to be pasted exists.
Optionally, in the embodiment of the present invention, the electronic device may keep displaying the content to be pasted corresponding to the target application program in the second interface until the user triggers the electronic device to cancel displaying the content to be pasted through input.
S205, the electronic equipment receives a third input of the first content in the content to be pasted by the user.
Optionally, in this embodiment of the present invention, the third input may be a click input of the user on the first content, or the third input may be a long-press input of the user on the first content; alternatively, the third input may be a user's re-press input on the first content, or the like. The method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
S206, the electronic equipment responds to the third input and displays the first content in the target input area.
In an embodiment of the present invention, after the electronic device receives a third input from the user, the electronic device may display the first content in the target input area in response to the third input. That is, the electronic device can directly display the content selected by the user through the third input in the target input area, so that the user does not need to manually input the content in the target input area, and the convenience of inputting the content and the input efficiency can be further improved.
The above-mentioned S203-S206 will be exemplarily described with reference to fig. 4.
For example, assuming that the target application is a communication application, as shown in fig. 4 (a), an interface diagram of an interface (i.e., a second interface) of the communication application is displayed for the electronic device. In the case where the electronic device detects that the input cursor 40 is located in the input area 41 in the second interface, as shown in (b) of fig. 4, the electronic device may display the content to be pasted 42 corresponding to the communication application program on the second interface. When the user performs the third input to the first content 43 of the to-be-pasted contents 42, as shown in (c) of fig. 4, the electronic apparatus may display the first content 43 in the input area 41.
It should be noted that, after the electronic device displays the first content 43 in the input area 41, the electronic device may cancel displaying the content to be pasted 42, or may continue displaying the content to be pasted 42, which may be determined according to actual usage requirements, and the embodiment of the present invention is not limited thereto.
Further, when the electronic device cancels the display of the to-be-pasted content 42, if the user further needs to input other content than the first content 43 in the to-be-pasted content 42 in the input area 41, the user may trigger the electronic device to redisplay the to-be-pasted content 42 through other input.
It should be noted that, in the embodiment of the present invention, the electronic device executing S203-S206 may be referred to as the electronic device pasting content.
In the paste control method provided by the embodiment of the invention, if a user needs to copy and paste some contents (for example, text contents) into an input area of an interface of an application program, the user can trigger the electronic device to set the contents as to-be-pasted contents corresponding to the application program through one input. Then, when the input cursor of the electronic device is located in the input area of the interface of the application program, the electronic device can directly display the contents to be pasted corresponding to the application program, so that the user can trigger the electronic device to paste and display the contents in the input area through one input, and the contents can be copied and pasted in the input area without repeatedly executing a series of operations for many times by the user, thereby simplifying the copying and pasting process of the electronic device, improving the copying and pasting efficiency of the electronic device, and improving the man-machine interaction performance.
Optionally, in this embodiment of the present invention, after the electronic device receives the first input of the user, the electronic device may further copy the first content to the buffer of the target application program in response to the first input.
For example, after S201, the paste control method provided in the embodiment of the present invention may further include S207 described below.
S207, the electronic equipment responds to the first input and copies the first content to the target buffer area.
The target buffer may be a buffer of a target application. For example, as shown in (d) of fig. 3, assuming that the identifier of the target application is the application identifier 32, the target buffer may be the buffer of the short message application indicated by the application identifier 32.
Optionally, in the embodiment of the present invention, each application program in the electronic device may correspond to one buffer, and the buffer of each application program may be used to store the content to be pasted, which corresponds to the application program. For example, the target buffer may be used to store the content to be pasted corresponding to the target application, i.e., the first content described above.
In the embodiment of the present invention, after the electronic device receives a first input of a user, the electronic device may set, in response to the first input, the first content as a content to be pasted corresponding to the target application program, copy the first content, and store the copied first content in a buffer of the target application program (i.e., a target buffer).
In the embodiment of the invention, each application program in the electronic equipment can correspond to one buffer area, so that the electronic equipment can store different contents in the buffer area of each application program respectively, thereby realizing the operation of copying a plurality of contents to the buffer areas of different application programs simultaneously, further realizing the operation of pasting a plurality of contents to the input areas of interfaces of different application programs, namely realizing the operation of copying and pasting a plurality of contents to the input areas of the interfaces of different application programs.
Optionally, in the embodiment of the present invention, when the input cursor is located in the target input area in the second interface, before the electronic device displays the content to be pasted corresponding to the target application program in the second interface, the electronic device may first display a prompt message to prompt the user to determine whether to paste and display the content to be pasted corresponding to the target application program in the target input area.
For example, after S203, the paste control method according to the embodiment of the present invention may include S208 described below. And the above S204 may be implemented by S204a-S204b described below.
S208, the electronic equipment displays the target prompt information in the second interface.
The target prompt information may be used to prompt the user to determine whether to paste the content to be pasted (i.e., the content in the target buffer) corresponding to the target application program in the target input area. The target prompt information may be preset prompt information in the electronic device, or may also be prompt information generated by the electronic device in real time, and may be determined specifically according to actual use requirements, which is not limited in the embodiment of the present invention.
Optionally, in this embodiment of the present invention, the target prompt information may include first prompt content and a first prompt option. The first prompt content may be used to prompt the user to determine whether to paste the content to be pasted (i.e., the content in the target buffer) corresponding to the target application program in the target input area. The first prompt option may include a first option and a second option; the first option may be used to determine to-be-pasted content (i.e., content in the target buffer) corresponding to the target application program to be pasted and displayed in the target input area, that is, the user's input of the first option may be used to determine to-be-pasted content (i.e., content in the target buffer) corresponding to the target application program to be pasted and displayed in the target input area; the second option may be used to determine that the content to be pasted corresponding to the target application program (i.e., the content in the target buffer area) is not pasted and displayed in the target input area, that is, the user inputs the second option may be used to determine that the content to be pasted corresponding to the target application program (i.e., the content in the target buffer area) is not pasted and displayed in the target input area.
Illustratively, as shown in fig. 5, the target prompt message may be "paste or not paste the content in the buffer" (as shown at 50 in fig. 5), the first option may be a "yes" option (as shown at 51 in fig. 5), and the second option may be a "no" option (as shown at 52 in fig. 5).
S204a, the electronic equipment receives seventh input of the target prompt information by the user.
The seventh input may be an input of the user to the first option, that is, the seventh input may be used to determine to paste and display the content to be pasted (that is, the content in the target buffer area) corresponding to the target application in the target input area.
Illustratively, the seventh input may be a user input to the "yes" option shown at 51 in FIG. 5, above.
S204b, the electronic device responds to the seventh input, and the content to be pasted is displayed in the second interface.
In the embodiment of the present invention, after the electronic device receives the seventh input of the user, the electronic device may display, in response to the seventh input, the content to be pasted (i.e., the content in the target buffer area) corresponding to the target application program in the second interface. Therefore, the user can input the first content in the content to be pasted and trigger the electronic equipment to display the first content in the target input area. The content to be pasted corresponding to the target application program may be all the content to be pasted corresponding to the target application program.
It should be noted that, in the embodiment of the present invention, when the user performs an input on the second option, the electronic device does not need to perform any operation in response to the input, that is, the electronic device does not display the content to be pasted corresponding to the target application program in the second interface.
In the embodiment of the invention, before the electronic device displays the content to be pasted corresponding to the target application program in the second interface, a prompt message can be displayed to prompt the user whether the content to be pasted corresponding to the target application program needs to be pasted, and only when the user triggers the electronic device to display the content to be pasted corresponding to the target application program, the electronic device can display the content to be pasted, that is, when the user does not trigger the electronic device to display the content to be pasted corresponding to the target application program, the electronic device does not display the content to be pasted, so that the user can continue to execute other operations, thereby improving the flexibility of displaying the content to be pasted and improving the man-machine interaction performance.
Optionally, in this embodiment of the present invention, after the user triggers the electronic device to set the first content in the first interface as the content to be pasted corresponding to the target application program, the user may also trigger the electronic device to delete the first content from the content to be pasted corresponding to the target application program through an input (for example, a fourth input described below).
For example, after S202 described above, the paste control method provided in the embodiment of the present invention may further include S209 and S2010 described below.
And S209, the electronic equipment receives a fourth input of the user.
Optionally, in an embodiment of the present invention, the fourth input may be an input of a user shaking the electronic device in the first direction once, twice or a first preset number of times. For example, the first direction may be a clockwise direction, a "left" direction, or a "right" direction.
And S2010, the electronic equipment responds to the fourth input, and the first content is deleted from the content to be pasted corresponding to the target application program.
In this embodiment of the present invention, after the electronic device receives a fourth input from the user, the electronic device may determine, according to the setting order, the content to be pasted (i.e., the first content) corresponding to the target application program that is set last time in response to the fourth input, and then the electronic device may delete the first content from the content to be pasted corresponding to the target application program, that is, the electronic device may delete the first content from the buffer of the target application program.
In the embodiment of the invention, after the electronic device sets the first content as the content to be pasted corresponding to the target application program, because the user can trigger the electronic device to delete the first content from the content to be pasted corresponding to the target application program through one input, the user can conveniently and quickly delete the content to be pasted corresponding to the target application program, which is set by the electronic device last time, so that the flexibility of copying the content (namely triggering the electronic device to store the content in the buffer area) is improved.
Specifically, in the embodiment of the present invention, after the electronic device sets the first content as the content to be pasted corresponding to the target application program, the user may perform an input on the electronic device, for example: and shaking the electronic equipment to trigger the electronic equipment to delete the first content from the content to be pasted corresponding to the target application program.
Optionally, in the embodiment of the present invention, after the electronic device displays the content to be pasted corresponding to the target application program in the second interface, the user may trigger the electronic device to perform a relevant operation on the displayed content to be pasted through one input (for example, an eighth input described below).
For example, after S204, the paste control method provided in the embodiment of the present invention may further include S2011-S2012 described below.
S2011, the electronic device receives an eighth input from the user.
Optionally, in an embodiment of the present invention, the eighth input may be any one of the following: the user's input of a delete option (e.g., option 2003 in (b) in fig. 4) in the second interface, the user's input of a first adjustment option (e.g., option 2001 in (b) in fig. 4) or a second adjustment option (e.g., option 2002 in (b) in fig. 4) in the second interface.
S2012, the electronic device responds to the eighth input and executes the first operation.
In the embodiment of the present invention, after the electronic device receives the eighth input of the user, the electronic device may perform the first operation in response to the eighth input.
Optionally, in this embodiment of the present invention, the first operation may include any one of: the electronic equipment deletes the content in the content to be pasted, and the electronic equipment adjusts the display sequence of different contents in the content to be pasted in the second interface. Specifically, in a case that the eighth input is an input of a deletion option in the second interface by the user, the first operation may be that the electronic device deletes the content in the content to be pasted. In a case that the eighth input is an input of the first adjustment option or the second adjustment option in the second interface by the user, the first operation may be to adjust, for the electronic device, a display order of different contents in the contents to be pasted in the second interface.
In the embodiment of the invention, the user can trigger the electronic equipment to adjust the display sequence of different contents in the contents to be pasted in the second interface, so that the user can conveniently execute the same operation on a plurality of contents.
Optionally, in the embodiment of the present invention, in the content to be pasted displayed in the second interface, except for the displayed first content and the displayed last content, each content may correspond to one deletion option, one first adjustment option, and one second adjustment option. The first content may correspond to a deletion option and a second adjustment option and the last content may correspond to a deletion option and a first adjustment option.
S2011 and S2012 are exemplarily described below with reference to fig. 4 (b) and fig. 6.
Exemplarily, as shown in (b) in fig. 4, a schematic diagram of the to-be-pasted content 42 corresponding to the target application program is displayed in the second interface for the electronic device. The content to be pasted 42 includes a content 43, a content 44, a content 45, and a content 46. Content 43 corresponds to second adjustment option 1001 and deletion option 1002, content 44 corresponds to first adjustment option 2001, second adjustment option 2002, and deletion option 2003, content 45 corresponds to first adjustment option 3001, second adjustment option 3002, and deletion option 3003, and content 46 corresponds to first adjustment option 4001 and deletion option 4002. After the user clicks the delete option 2003, the electronic device may cancel the display of the content 44, i.e., delete the content 44 in the to-be-pasted content, as shown in fig. 6 (a). After the user clicks the first adjustment option 2001, as shown in (b) of fig. 6, the electronic device may adjust the display order of the contents 43 and 44, that is, the electronic device may adjust the storage order of the contents 43 and 44 in the target buffer. After the user clicks the second adjustment option 2002, as shown in fig. 6 (c), the electronic device may adjust the display order of the content 44 and the content 45, that is, the electronic device may adjust the storage order of the content 44 and the content 45 in the target buffer.
In the embodiment of the invention, the user can trigger the electronic equipment to execute different operations on the content to be pasted in the second interface through different inputs, so that the user can conveniently finish different operations in the same interface, and the man-machine interaction performance can be further improved.
Optionally, in this embodiment of the present invention, after the electronic device displays the first content in the target input area, the user may trigger the electronic device to display the identifier of the at least one application program and the content to be pasted corresponding to each application program through an input (for example, a fifth input described below).
For example, after S206, the paste control method provided in the embodiment of the present invention may further include S2013-S2014 described below.
S2013, the electronic equipment receives a fifth input of the user.
Optionally, in an embodiment of the present invention, the fifth input may be input of one or two times or a second preset number of times that the user swings the electronic device along the second direction. For example, the second direction may be a different direction than the first direction, e.g., may be a counterclockwise direction, a "rear" direction, or a "left" direction.
S2014, the electronic device responds to the fifth input, and displays the identification of at least one application program and the content to be pasted corresponding to each application program.
The at least one application program may include a first application program and a second application program.
Optionally, in this embodiment of the present invention, the electronic device may display, on the third interface, the identifier of at least one application program and the content to be pasted corresponding to each application program. The third interface may be a specific interface for the electronic device to display the identifier of the application program and the content to be pasted corresponding to the application program, or an interface of the application program run by the electronic device before the electronic device receives the fifth input. The method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
In this embodiment of the present invention, after the electronic device receives a fifth input from the user, the electronic device may, in response to the fifth input, determine at least one application program to which content is to be pasted in the buffer, and obtain an identifier of the at least one application program, to obtain an identifier of the at least one application program, and then the electronic device may obtain the content to be pasted in the buffer of the application programs (i.e., the content to be pasted corresponding to the application programs), and display the identifier of the at least one application program and the content to be pasted corresponding to each application program.
Optionally, in this embodiment of the present invention, the identifier of the at least one application program may be an identifier of an application program (third party application program and system application program) of the electronic device, and the buffer includes an identifier of the application program of the content to be pasted.
Optionally, in this embodiment of the present invention, the identifier of the at least one application program may be partially or completely the same as the identifier of the at least one candidate application program.
For example, after the user swings the electronic device once in the counterclockwise direction, as shown in fig. 7, the electronic device may display the application identifier 70 and the content to be pasted corresponding to the short message application indicated by the application identifier 70, the application identifier 71 and the content to be pasted corresponding to the map application indicated by the application identifier 71 on the third interface.
In the embodiment of the invention, as the user can trigger the electronic equipment to display the application program of the electronic equipment through one input, the buffer area comprises the application identifier of the application program of the content to be pasted and the content to be pasted corresponding to each application program, the user can conveniently view the content to be pasted corresponding to each application program currently, namely the content to be pasted in the buffer area of each application program.
Optionally, in this embodiment of the present invention, after the electronic device displays the identifier of the at least one application program and the content to be pasted corresponding to each application program, the user may further trigger the electronic device to perform a relevant operation on the content to be pasted corresponding to the first application program and the content to be pasted corresponding to the second application program through an input (for example, a sixth input described below).
S2015, the electronic device receives a sixth input of the identity of the first application and the identity of the second application by the user.
Optionally, in this embodiment of the present invention, the sixth input may be used to trigger the electronic device to interchange the content to be pasted corresponding to the first application program and the content to be pasted corresponding to the second application program, or may be used to trigger the electronic device to update both the content to be pasted corresponding to the first application program and the content to be pasted corresponding to the second application program to the target content. Specifically, in a case that the sixth input is used to trigger the electronic device to interchange the content to be pasted corresponding to the first application program and the content to be pasted corresponding to the second application program, the electronic device may execute S2016 described below. In a case where the sixth input is used to trigger the electronic device to update both the content to be pasted corresponding to the first application and the content to be pasted corresponding to the second application to the target content, the electronic device may perform S2017 described below.
And S2016, the electronic equipment responds to the sixth input, and interchanging the content to be pasted corresponding to the first application program and the content to be pasted corresponding to the second application program.
Optionally, in this embodiment of the present invention, the sixth input may include a third sub input and a fourth sub input. The third sub-input may be an input by the user dragging the identity of the first application onto the identity of the second application. After the user performs the third sub-input, the electronic device may display a second prompt (e.g., shown at 80 in FIG. 8). The second reminder information may include second reminder content (e.g., shown at 81 in fig. 8) and second reminder options. The second prompting content may be used to prompt the user to execute a relevant operation on the content to be pasted corresponding to the application program indicated by the two application program identifiers. The second prompt option may include a third option (e.g., shown at 82 in FIG. 8) and a fourth option (e.g., shown at 83 in FIG. 8); the third option may be used to interchange content, that is, to trigger the electronic device to interchange the content to be pasted corresponding to the application program indicated by the identifiers of the two application programs, and the fourth option may be used to synchronize content, that is, to trigger the electronic device to update the content to be pasted corresponding to the two application programs to a union of the content to be pasted corresponding to the two application programs. The fourth sub-input may be an input of the third option by the user, and after the fourth sub-input is performed on the third option by the user, the electronic device may interchange contents in the buffer of the application program indicated by the two application identifications.
S2017, in response to the sixth input, the electronic device updates the content to be pasted corresponding to the first application program and the content to be pasted corresponding to the second application program to target content.
The target content may be a union of the content to be pasted corresponding to the first application program and the content to be pasted corresponding to the second application program.
Optionally, in an embodiment of the present invention, the sixth input may include a fifth sub-input and a sixth sub-input. The fifth sub-input may be an input by the user dragging the identity of the first application onto the identity of the second application. After the user performs the fifth sub-input, the electronic device may display a second prompt (e.g., shown at 80 in FIG. 8). The second reminder information may include second reminder content (e.g., shown at 81 in fig. 8) and second reminder options. The second prompt option may include a third option (e.g., shown at 82 in fig. 8) and a fourth option (e.g., shown at 83 in fig. 8). After the user performs the sixth sub-input on the fourth option, the electronic device may update both the contents to be pasted corresponding to the two applications to the union of the contents to be pasted corresponding to the two applications (i.e., the target content).
For example, assuming that the to-be-pasted contents corresponding to the first application are "AAA" and "BBB" and the to-be-pasted contents corresponding to the second application are "AAAA" and "CCC", after the user performs the fifth sub-input and the sixth sub-input with respect to the identifier of the first application and the identifier of the second application, the electronic device may update the to-be-pasted contents corresponding to the two applications to be: "AAA", "BBB", "AAAA" and "CCC".
In the embodiment of the invention, because the user can directly trigger the electronic device to interchange the content to be pasted corresponding to the first application program and the content to be pasted corresponding to the second application program through one input, or trigger the electronic device to update the content to be pasted corresponding to the first application program and the content to be pasted corresponding to the second application program to the target content, the user can conveniently adjust the content in the content to be pasted corresponding to the application program, and the man-machine interaction performance is improved.
Optionally, in this embodiment of the present invention, the user may further trigger the electronic device to perform other operations on the content to be pasted corresponding to the first application program and the content to be pasted corresponding to the second application program through one input (for example, a ninth input).
The following specifically describes other operations performed by the electronic device with respect to the different ninth input.
(1) In a case that the ninth input is input by the user to a deletion option corresponding to the identifier of a certain application program in the third interface, the electronic device may delete the content to be pasted corresponding to the application program in response to the ninth input. After the electronic device deletes the content corresponding to the deletion option, the electronic device may cancel displaying the content on the third interface.
For example, as shown in fig. 7, in the case where the identifier of the certain application program is the application identifier 70, one deletion option corresponding to the application identifier may be the option 75, and the content corresponding to the deletion option may be the content 76.
(2) In a case that the ninth input is input of a one-key-off option corresponding to an identifier of a certain application program in the third interface by the user, the electronic device may delete the content to be pasted corresponding to the application program in response to the ninth input. After the electronic device deletes the entire content, the electronic device may cancel displaying the entire content and the identifier of the application program on the third interface.
For example, as shown in fig. 7, in the case where the identifier of the certain application program is an application identifier 70, the one-key-off option corresponding to the application identifier may be an option 72, and the entire contents may be a content 76, a content 77, a content 78, and a content 79.
It should be noted that, in the embodiment of the present invention, the user may further trigger the electronic device to delete the to-be-pasted contents corresponding to all the application programs displayed in the third interface by inputting the one-key-down option shown in 74 in fig. 7. After the electronic device deletes the contents, the electronic device may cancel displaying all the contents and all the identifiers of the application programs on the third interface.
It will be appreciated that the one-touch-up option shown at 74 in FIG. 7 may correspond to the identification of all applications displayed in the third interface.
(3) In a case that the ninth input is input by the user to the first adjustment option (or the second adjustment option) corresponding to the identifier of the certain application program in the third interface, the electronic device may adjust, in response to the ninth input, a display order of different contents corresponding to the first adjustment option (or the second adjustment option) in the contents to be pasted corresponding to the application program.
For example, as shown in fig. 7, in the case where the identifier of the certain application program is the application identifier 70, one first adjustment option corresponding to the application identifier may be the option 710, and different content corresponding to the first adjustment option may be the content 76 and the content 77.
(4) In a case that the ninth input is input of the user for the one-key synchronization option in the third interface, in response to the ninth input, the electronic device may update all the to-be-pasted contents corresponding to at least one application program displayed in the third interface to be a union of the to-be-pasted contents corresponding to the application programs.
In the embodiment of the invention, as the user can trigger the electronic equipment to execute different operations on the content in the third interface through different inputs, the user can conveniently complete different operations in the same interface, and the man-machine interaction performance can be further improved.
Optionally, in the embodiment of the present invention, the user may trigger the electronic device to set the plurality of contents to be the contents to be pasted (corresponding to the second scenario) corresponding to the application program respectively. Specifically, after the user triggers the electronic device to set the first content as the content to be pasted corresponding to the target application program through the first input, the user may also trigger the electronic device to set another content as the content to be pasted corresponding to the target application program through another input, for example, the second content described below.
For example, after S202, the paste control method provided in the embodiment of the present invention may further include S2018-S2019 described below.
S2018, the electronic equipment receives a tenth input of the user.
The tenth input may be input by the user for second content in the fourth interface, and the second content may be content selected by the user in the fourth interface by triggering the electronic device. It is to be appreciated that the user may perform an input in the fourth interface to select the second content in the fourth interface before performing a tenth input on the second content.
Optionally, in an embodiment of the present invention, the fourth interface may be the same as the first interface, or may be different from the first interface. The method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
Optionally, in the embodiment of the present invention, the second content may be a text, a picture, a file, or the like. The method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
Optionally, in an embodiment of the present invention, the tenth input may include a seventh sub-input and an eighth sub-input. The seventh sub-input is sliding input of the user on the fourth interface along different directions; the eighth child input is user input to an identification of the target application among the identifications of the at least one candidate application.
For other descriptions of S2018, reference may be made to the related description in S201, and details are not repeated here to avoid repetition.
S2019, in response to the tenth input, the electronic device sets the second content in the fourth interface as the content to be pasted, corresponding to the target application program.
The content to be pasted may include the first content and the second content.
In the embodiment of the present invention, after the electronic device receives a tenth input of the user, the electronic device may set, in response to the tenth input, the second content in the fourth interface as the content to be pasted, which corresponds to the target application program.
Further, the electronic device may copy the second content and store the copied second content to the destination buffer. Thus, the content to be pasted in the target buffer may include the first content and the second content.
It should be noted that, in the embodiment of the present invention, the above-mentioned S2018-S2019 may also be executed at other occasions or scenes, for example, the above-mentioned S2018-S2019 may also be executed after S206. The second content and the first content may be content in the same interface or content in different interfaces.
It should be noted that, in the embodiment of the present invention, executing S2018-S2019 by the electronic device may be referred to as copying content by the electronic device.
In the embodiment of the invention, as the user can firstly set the plurality of contents as the contents to be pasted corresponding to one application program respectively, namely the plurality of contents are stored in the buffer area of the target application program, and then the user can display the contents in a certain input area of the interface of the target application program through one input. In this case, the user can paste all the contents into the input area, that is, the user can trigger the electronic device to copy a plurality of contents and then trigger the electronic device to paste the contents synchronously.
In the embodiment of the present invention, the paste control methods shown in the above method drawings are all exemplarily described with reference to one drawing in the embodiment of the present invention. In specific implementation, the paste control method shown in each method drawing can also be implemented by combining any other drawing which can be combined and is illustrated in the above embodiments, and details are not described here.
As shown in fig. 9, an embodiment of the present invention provides an electronic device 400, and the electronic device 400 may include a receiving module 401, a processing module 402, and a display module 403. The receiving module 401 may be configured to receive a first input of a user when the first interface is displayed; the processing module 402 may be configured to set, in response to the first input received by the receiving module 401, first content in the first interface as content to be pasted corresponding to the target application program; the receiving module 401 may be further configured to receive a second input of the user; a display module 403, configured to display, in response to the second input received by the receiving module 401, to-be-pasted content corresponding to the target application program on a second interface, where the to-be-pasted content may include the first content; the receiving module 401 may further be configured to receive a third input of the first content to be pasted by the user; the display module 403 may be further configured to display the first content in the target input area in response to the third input received by the receiving module 401.
Optionally, in this embodiment of the present invention, the processing module 402 may be further configured to copy the first content to a target buffer area in response to the first input, where the target buffer area may be a buffer area of the target application program.
Optionally, in this embodiment of the present invention, the receiving module 401 may be further configured to receive a fourth input of the user after the first content in the first interface is set as the content to be pasted, which corresponds to the target application program; the processing module 402 may be further configured to delete the first content from the content to be pasted corresponding to the target application program in response to the fourth input received by the receiving module 401.
Optionally, in this embodiment of the present invention, the receiving module 401 may be further configured to receive a fifth input from the user; the display module 403 may be further configured to display, in response to the fifth input received by the receiving module 401, an identifier of at least one application program and content to be pasted corresponding to each application program; wherein the at least one application may include a first application and a second application.
Optionally, in this embodiment of the present invention, the receiving module 401 may be further configured to receive a sixth input of the identifier of the first application program and the identifier of the second application program by the user after the display module 403 displays the identifier of at least one application program and the content to be pasted corresponding to each application program; the processing module 402 is further configured to, in response to the sixth input received by the receiving module 401, interchange the content to be pasted corresponding to the first application program and the content to be pasted corresponding to the second application program, or, in response to the sixth input, update both the content to be pasted corresponding to the first application program and the content to be pasted corresponding to the second application program to be target content; the target content may be a union of the content to be pasted corresponding to the first application program and the content to be pasted corresponding to the second application program.
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 is not described herein again to avoid repetition.
The embodiment of the invention provides electronic equipment, wherein under the condition that the electronic equipment displays a first interface, if the electronic equipment receives a first input of a user, the electronic equipment can respond to the first input and set first content in the first interface as to-be-pasted content corresponding to a target application program; therefore, under the condition that the electronic equipment receives a second input of the user, the electronic equipment can automatically display the content to be pasted, which corresponds to the target application program and comprises the first content, on the second interface; then, after the electronic device receives a third input of the first content to be pasted by the user, the electronic device may display the first content in the target input area in response to the third input, thereby completing the copy and paste of the first content. Through the scheme, if a user needs to copy and paste some contents (for example, text contents) into an input area of an interface of an application program, the user can trigger the electronic device to set the contents as the contents to be pasted corresponding to the application program through one input. Then, when the electronic device receives a second input of the user, the electronic device can directly display the contents to be pasted corresponding to the application program, so that the user can trigger the electronic device to paste and display the contents in the input area through one input, and the contents can be copied and pasted in the input area without repeatedly executing a series of operations by the user, thereby simplifying the copying and pasting process of the electronic device, improving the copying and pasting efficiency of the electronic device, and improving the man-machine interaction performance.
Fig. 10 is a hardware schematic diagram of an electronic device implementing various embodiments of the invention. As shown in fig. 10, the 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, and power supply 111. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 10 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. 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.
The user input unit 107 may be configured to receive a first input of a user when the first interface is displayed; the processor 110 may be configured to set, in response to a first input received by the user input unit 107, first content in the first interface as content to be pasted corresponding to the target application; the user input unit 107 can be further used for receiving a second input of the user; the display unit 106 may be configured to display, in response to a second input received by the user input unit 107, content to be pasted corresponding to the target application program on a second interface; the user input unit 107 may be further configured to receive a third input of the first content of the contents to be pasted by the user; the display unit 106 may be further configured to display the first content in the target input area in response to a third input received by the user input unit 107. Wherein the content to be pasted may include the first content.
It can be understood that, in the embodiment of the present invention, the receiving module 401 in the structural schematic diagram of the electronic device (for example, fig. 9) may be implemented by the user input unit 107. The processing module 402 in the structural schematic diagram of the electronic device (for example, fig. 9) may be implemented by the processor 110. The display module 403 in the structural schematic diagram of the electronic device (for example, fig. 9) can be implemented by the display unit 106.
The embodiment of the invention provides electronic equipment, wherein under the condition that the electronic equipment displays a first interface, if the electronic equipment receives a first input of a user, the electronic equipment can respond to the first input and set first content in the first interface as to-be-pasted content corresponding to a target application program; therefore, under the condition that the electronic equipment receives a second input of the user, the electronic equipment can automatically display the content to be pasted, which corresponds to the target application program and comprises the first content, on the second interface; then, after the electronic device receives a third input of the first content to be pasted by the user, the electronic device may display the first content in the target input area in response to the third input, thereby completing the copy and paste of the first content. Through the scheme, if a user needs to copy and paste some contents (for example, text contents) into an input area of an interface of an application program, the user can trigger the electronic device to set the contents as the contents to be pasted corresponding to the application program through one input. Then, when the electronic device receives a second input of the user, the electronic device can directly display the contents to be pasted corresponding to the application program, so that the user can trigger the electronic device to paste and display the contents in the input area through one input, and the contents can be copied and pasted in the input area without repeatedly executing a series of operations by the user, thereby simplifying the copying and pasting process of the electronic device, improving the copying and pasting efficiency of the electronic device, and improving the man-machine interaction performance.
It should be understood that, in the embodiment of the present invention, the radio 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 the processor 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, the radio 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 the network module 102, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output as sound. Also, the audio 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.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 104 is used to receive an audio or video signal. The input unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the graphics 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 the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the network module 102. The microphone 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 the radio frequency unit 101 in case of a phone call mode.
The electronic device 100 also includes at least one sensor 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 the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or the backlight when the electronic 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); the sensors 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.
The display unit 106 is used to display information input by a user or information provided to the user. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), or the like.
The user 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, the user input unit 107 includes a touch panel 1071 and other 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 near touch panel 1071 using a finger, stylus, or any suitable object or attachment). The touch 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 the processor 110, and receives and executes commands sent by the processor 110. In addition, the touch 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 the touch panel 1071, the user input unit 107 may include other 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, the touch panel 1071 may be overlaid on the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in fig. 10, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the electronic device, and is not limited herein.
The interface unit 108 is an interface for connecting an external device to the electronic 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. The interface 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 the electronic apparatus 100 or may be used to transmit data between the electronic apparatus 100 and the external device.
The memory 109 may be used to store software programs as well as various data. The memory 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, the memory 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.
The processor 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 the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the electronic device. Processor 110 may include one or more processing units; alternatively, the processor 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 the processor 110.
The electronic device 100 may further include a power supply 111 (e.g., a battery) for supplying power to each component, and optionally, the power supply 111 may be logically connected to the processor 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, the electronic 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, where the computer program, when executed by the processor, implements the processes of the foregoing method embodiment, and can achieve the same technical effect, and details are not repeated here to avoid repetition.
Optionally, an 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 foregoing 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 include a read-only memory (ROM), a Random Access Memory (RAM), a magnetic or optical disk, and the like.
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 application 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 application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.