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.
It should be noted that "/" in this context means "or", for example, A/B may mean A or B; "and/or" herein is merely an association describing an associated object, and means that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. "plurality" means two or more than two.
It should be noted that, in the embodiments of the present invention, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. 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 terms "first" and "second," and the like, in the description and in the claims 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 input and the second input, etc. are for distinguishing different inputs, rather than for describing a particular order of inputs.
In the method for sending a media file provided by the embodiment of the present invention, when a displayed first interface (for example, a desktop of an electronic device) includes an application identifier of a first application, identifiers of N first identifiers at the same level may be displayed on a first area in the first interface through a first input, where each first identifier is used to indicate one media file in the first application. Subsequently, through a second input of selecting a first target identifier in the N first identifiers, identifiers in M second identifiers at the same level are displayed on a second area in the first interface, where each second identifier is used for indicating one application of the media file to be shared with the first application. And, a third input of selecting a second target identifier of the M second identifiers may trigger sending the target media file indicated by the first target identifier by the second application indicated by the second target identifier. The application identifier of the first application, the identifiers of the N first identifiers and the identifiers of the M second identifiers are different levels of content provided by the first application, and the content is displayed on the first interface. Therefore, the user does not need to trigger the electronic equipment to open the first application and switch and display different interfaces of different hierarchies in the first application for multiple times to select and send the media file, but the input on the first interface can trigger the electronic equipment to respectively display different contents of different hierarchies on the first interface to select and send the media file. Therefore, the convenience and the intuition of the electronic equipment for sharing the media files such as the pictures are improved.
The electronic device in the embodiment of the invention can be a mobile electronic device or a non-mobile electronic device. The mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), etc.; the non-mobile electronic device may be a Personal Computer (PC), a Television (TV), a teller machine, a self-service machine, or the like; the embodiments of the present invention are not particularly limited.
It should be noted that, in the method for sending a media file according to the embodiment of the present invention, the execution main body may be an electronic device, or a Central Processing Unit (CPU) of the electronic device, or a control module in the electronic device for executing the method for sending the media file. The method for sending the media file provided by the embodiment of the invention is described by taking the method for sending the media file executed by the electronic equipment as an example.
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 applied to the method for sending a media file according to the embodiment of the present invention, 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, applications such as a system setup application, a system chat application, and a system camera application. And the third-party setting application, the third-party camera application, the third-party chatting application and other application programs.
It should be noted that, for convenience of description, the application program is simply referred to as an application, such as the first application or the second application, in the following embodiments.
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 method for sending a media file 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 method for sending a media file may run based on the android operating system shown in fig. 1. That is, the processor or the electronic device may implement the method for sending the media file provided by the embodiment of the present invention by running the software program in the android operating system.
The method for sending a media file according to the embodiment of the present invention is described in detail below with reference to the flowchart of the method for sending a media file shown in fig. 2. Wherein, although a logical order of methods of transmitting media files provided by embodiments of the present invention is shown in a method flow diagram, in some cases, the steps shown or described may be performed in an order different than here. For example, in implementation mode 1 of the embodiment of the present invention, the method for sending a media file shown in fig. 2 may include S201 to S203:
s201, under the condition that a first interface displayed by the electronic equipment comprises an application identifier of a first application, the electronic equipment responds to a received first input and displays an identifier of N first identifiers on a first area in the first interface.
Accordingly, the electronic device may receive a first input of the user before performing S201.
Optionally, the application identifier of the first application may be an icon of the first application, and may also be an icon of a shortcut of the first application. In the following embodiments, an application identifier of a first application is taken as an example of an icon of the first application.
In the embodiment of the present invention, the first interface is an interface for displaying the identifier of each application on the electronic device, for example, the first interface is a desktop of the electronic device.
Optionally, in this embodiment of the present invention, the first application may be an application that stores a media file, for example, the first application may be a gallery application.
The first input is used for triggering the electronic device to start executing a process of sharing the media file in the first application, such as a process of selecting the media file to be shared and a process of selecting the application of the media file to be shared.
Optionally, the first input is an input of selecting an application identifier of the first application.
In the embodiment of the present invention, the file type of the media file in the first application may include at least one of a picture type, a video type and an audio type. Specifically, in the following embodiments, the file type of the media file in the first application is taken as a picture type, that is, the media files in the first application are all pictures, which is taken as an example, and the method for sending the media file provided by the embodiments of the present invention is described. For example, in the case where the first application is a gallery application, the file type of the media file in the first application may be a picture type.
The file types of the media files in the first application can be multiple types, so that the types of the media files subsequently shared by the electronic equipment can be one or more of the multiple types, that is, the electronic equipment is supported to share the media files of different file types, and the diversity of the media files shared by the electronic equipment is improved.
Wherein N is a positive integer. Specifically, the electronic device may display some or all of the N first identifiers in the first area according to the size of the first area and the value of N.
In the embodiment of the invention, each first identifier is used for indicating one media file in the first application. For example, each first identifier is used to indicate a picture in the gallery application, and each first identifier may be a thumbnail of a picture.
Optionally, the identifiers of the N first identifiers may be displayed in a superimposed manner on the first area, or may be displayed in a suspended manner on the first area.
Optionally, the shape of the first region may be any shape that can be realized, such as a rectangle, a circle, a triangle, or a ring (e.g., a circular ring), and may be determined according to actual use requirements, which is not described herein again. Specifically, the following description will take the first region as an annular region as an example.
Optionally, the electronic device does not embody the first area when displaying an identifier of the N first identifiers on the first area, or may display a predefined line pattern on the first area to embody the first area. For example, the electronic device may display a border line on the first area, or fill in the first area with a pattern showing a predefined transparency to prompt the user of the location of the first area in the first interface.
Optionally, the electronic device may determine the position of the first area in the first interface according to the position of the application identifier of the first application in the first interface.
For example, the first area may be an area of the first interface corresponding to an application identifier of the first application. For example, the first area may be an area surrounding an application identifier of the first application, e.g. the first area is a part of a ring-shaped area surrounding the application identifier of the first application.
For example, where the application identification of the first application is located at the far right side of the first interface, the first area may be a ring-shaped area portion above, to the left, and below the application identification surrounding the first application. Alternatively, in the case where the application identifier of the first application is located at a middle position of the first interface, the first area may be a complete ring-shaped area surrounding the application identifier of the first application.
Optionally, the total number of the identifiers in the N first identifiers in the first area and the interval between the two identifiers are not specifically limited, and may be determined according to actual use requirements, and are not described herein again.
It can be understood that, in the embodiment of the present invention, the application identifier of the first application and the identifier of the N first identifiers are different levels of content, and the electronic device may display the identifiers of the N first identifiers on the first interface simultaneously without switching different pages of different levels to view the identifiers of the N first identifiers.
S202, the electronic equipment responds to the received second input of selecting the first target identifier in the N first identifiers, and displays the identifiers in the M second identifiers on the second area in the first interface.
Accordingly, the electronic device may receive a second input of the user between performing S201 and S202.
Specifically, the second input is used to select a first target identifier, which is used to indicate a target media file as described below.
Optionally, the first target identifier may include one or more first identifiers, and the corresponding target media file includes one or more media files, for example, the target media file includes one or more pictures.
Wherein M is a positive integer.
Specifically, each second identifier is used to indicate an application that is to share the media file of the first application.
Optionally, one second identifier is used to indicate an entry of a social information publishing platform in one application, an entry of a predefined folder (e.g., a favorite folder) in the application, or an entry of a chat group in the application, which may be determined according to actual usage requirements, and is not described here any more.
For example, in the case that a second identifier is used for indicating the entrance of the social information publishing platform in an application, the second identifier may be an icon of the application. The second identifier may be an icon of a predefined folder in an application, where the second identifier indicates an entry to the folder. The second identifier may be an icon of a chat group in an application, where the second identifier indicates entry of the chat group.
Optionally, the identifiers of the M second identifiers may be displayed in a superimposed manner on the second area, or may be displayed in a suspended manner on the second area.
Similarly, the description of the shape of the second region may refer to the description of the shape of the first region, and will not be repeated here. In the following, the second region is described as an annular region.
Similarly, for the description of whether the electronic device embodies the second area on the first interface, reference may be made to the description of the first area in the foregoing embodiment, which is not repeated herein.
It is understood that, in the case that the first target identifier is selected, the electronic device may cancel the display of the first identifiers other than the first target identifier on the first area and display the identifier of the M second identifiers on the second area.
Optionally, the electronic device may determine the position of the second area in the first interface according to the position of the first target identifier in the first interface.
For example, the second area may be an area of the first interface corresponding to the first target identifier. For example, the second region may be a region surrounding the first target marker, e.g. the second region is a partial annular region or a complete annular region surrounding the first target marker.
Optionally, the total number of identifiers in the M second identifiers in the second area and the interval between the two identifiers are not specifically limited, and may be determined according to actual use requirements, and are not described herein again.
It can be understood that, in the embodiment of the present invention, the identifiers in the N first identifiers and the identifiers in the M second identifiers are different levels of content, and the electronic device may display the content of the two levels at the same time on the first interface without switching different pages of the two levels by the electronic device to view the identifiers in the M second identifiers.
S203, the electronic equipment responds to the received third input of selecting a second target identifier in the M second identifiers, and sends the target media file through the second application.
Accordingly, the electronic device may receive a third input by the user between performing S202 and S203.
Specifically, the third input is used to select a second target identifier, and the second target identifier is used to indicate a second application described below.
Optionally, the second target identifier is used to indicate a second application, such as a social application, that is to share the media file of the first application. Specifically, the second target identifier is used to indicate an entry of the social information publishing platform in the second application, and at this time, the second target identifier is an icon of the second application.
Optionally, in a case where the second application includes a plurality of applications, the second target identifier includes icons of the plurality of applications, and each icon of one application indicates one application.
It is understood that, in the case that the second target identifier is selected, the electronic device may cancel displaying the second identifier other than the second target identifier on the second area, or cancel displaying the identifier on the second area.
For example, the electronic device sends the target media file through the second application, and the target media file, such as a certain picture, may be sent to the electronic device through a social information publishing platform in the second application.
For example, in a case where the second application includes a plurality of applications, the electronic device may transmit the target media file through each of the second applications, respectively.
Optionally, in response to the third input, the electronic device may display a sending interface for the second application to send the target media file, such as a sending interface of a social information publishing platform in the second application. Specifically, after the user performs a trigger input on the sending interface, such as an input on a sending button in the sending interface, the electronic device sends the target media file through the second application.
Optionally, in response to the third input, after the electronic device successfully sends the target media file through the second application, an interface in the second application for displaying information that the target media file has sent may be displayed, for example, an interface in which a social information publishing platform in the second application is located is displayed.
It should be noted that, in the method for sending a media file according to the embodiment of the present invention, in a case that an application identifier of a first application is included in a displayed first interface (e.g., a desktop of an electronic device), identifiers of N first identifiers at the same level may be displayed on a first area in the first interface through a first input, where each first identifier is used to indicate one media file in the first application. Subsequently, through a second input of selecting a first target identifier in the N first identifiers, identifiers in M second identifiers of the same hierarchy are displayed on a second area in the first interface, where each second identifier is used for indicating one application of the media file to be shared with the first application. And, a third input of selecting a second target identifier of the M second identifiers may trigger sending the target media file indicated by the first target identifier by the second application indicated by the second target identifier. The application identifier of the first application, the identifiers of the N first identifiers and the identifiers of the M second identifiers are different levels of content provided by the first application, and the content is displayed on the first interface. Therefore, the user does not need to trigger the electronic equipment to open the first application and switch and display different interfaces of different hierarchies in the first application for multiple times to select and send the media file, but the input on the first interface can trigger the electronic equipment to respectively display different contents of different hierarchies on the first interface to select and send the media file. Therefore, the convenience and the intuition of the electronic equipment for sharing the media files such as the pictures are improved.
Optionally, with reference to implementation mode 1, in implementation mode 2 provided in the embodiment of the present invention, when the electronic device includes a plurality of media folders in the first application, the electronic device may display identifiers of different media folders in the first interface, and then display identifiers of media files in the media files selected by the user. Optionally, the first input includes a first sub-input and a second sub-input, and the S201 may be implemented by S201a and S201 b:
s201a, in response to selecting the first sub-input of the application identifier of the first application, the electronic device displays an identifier of the P third identifiers on the third area in the first interface.
Wherein, the different third identifiers are used for indicating different media folders in the first application, the different first identifiers are identifiers of different media files in the media folders indicated by the third target identifier, and P is a positive integer.
For example, in the case that the first application is a gallery application, one media folder may be an album folder in the gallery application, such as a recent pictures folder, a screenshot folder, a social application pictures folder, and the like.
Optionally, the marks in the P third marks may be displayed in a superimposed manner on the third area, or may be displayed in a floating manner on the third area.
Similarly, the description of the shape of the third region may refer to the description of the shape of the first region, and is not repeated here. In the following, the third region is described as an annular region.
Similarly, for the description of whether the electronic device embodies the third area on the first interface, reference may be made to the description of the first area in the foregoing embodiment, which is not repeated herein.
Optionally, when the third target identifier is selected, the electronic device may cancel displaying other third identifiers except the third target identifier on the third area, and display a sending interface for sending the target media file in the second application on the first interface.
Optionally, the electronic device may determine the position of the third area in the first interface according to the position of the application identifier of the first application in the first interface.
For example, the third area may be an area corresponding to the application identifier of the first application in the first interface. For example, the third area may be an area surrounding an application identifier of the first application, e.g. the third area is a part of a ring-shaped area surrounding the application identifier of the first application.
For example, where the application identifier of the first application is located at the far right side of the first interface, the third area may be a portion of a ring-shaped area surrounding the application identifier of the first application above, to the left, and below. Alternatively, in a case where the application identifier of the first application is located at a middle position of the first interface, the third area may be a complete ring-shaped area surrounding the application identifier of the first application.
Optionally, the total number of the identifiers in the P third identifiers in the second area and the interval between the two identifiers are not specifically limited, and may be determined according to actual use requirements, and are not described herein again.
It should be noted that, the application identifiers of the first application, the P third identifiers, the N first identifiers, and the M second identifiers are sequentially reduced in hierarchy.
For example, the first sub-input may be a click input, a swipe input, or a hover input to an application identification of the first application.
S201b, in response to the second sub-input of the third target identifier of the P third identifiers being selected, the electronic device displays the identifiers of the N first identifiers on the first area.
It is understood that, in the case that the third target identifier is selected, the electronic device may cancel the display of the third identifiers other than the third target identifier on the first area, and display the identifier of the N first identifiers on the first area.
It should be noted that, in this embodiment of the present invention, the first input may include the input 1, the input 2, the first sub-input, and the second sub-input.
For example, the second sub-input may be a click input, a slide input, or a hover input to the third target identification.
In the method for sending the media file provided by the embodiment of the invention, under the condition that the first application comprises a plurality of media folders, the electronic device can respectively display the application identifiers of the first application at different levels in the first application, the identifiers of the P third identifiers, the identifiers of the N first identifiers and the identifiers of the M second identifiers on the first interface, so that a user can conveniently input the corresponding identifiers on the first interface, and the electronic device can be quickly and conveniently triggered to select and send the media file.
Optionally, in the method for sending media content provided by the embodiment of the present invention, when the fourth target identifier is selected, the electronic device may display the fourth target identifier with a preset effect. The fourth target identifier is the first target identifier, the second target identifier, the third target identifier or the application identifier of the first application.
Illustratively, the preset effect may be a highlight effect display (e.g., yellow highlight effect display), a box selection effect display, or the like. In the following embodiments, the preset effect may be a highlight effect display as an example.
In the embodiment of the invention, the electronic equipment displays the fourth target identifier with a preset effect, so that a user can conveniently and timely know that the fourth target identifier is successfully selected, and if the first target identifier is successfully selected, the target media file indicated by the first target identifier is successfully selected. Therefore, the man-machine interaction performance of the electronic equipment when the electronic equipment selects the media files such as pictures and the like can be improved.
Optionally, in example 1, the first target input is a touch input in which a finger of the user continuously touches a screen of the electronic device; wherein the first target input includes at least two of: a first input, a second input, a third input, and a fourth input.
In the following embodiments, the first target input including the first input, the second input, the third input, and the fourth input is taken as an example for explanation. That is, during the first input, the second input, the third input and the fourth input performed by the user, the finger of the user does not leave the screen, or the time period for which the finger of the user leaves the screen is less than or equal to a preset time period (e.g., 1 second).
It can be understood that, in the process of executing the first input, the second input, the third input and the fourth input, if the finger of the user leaves the screen for more than 1 second, the electronic device exits the process of sending the media file, for example, the electronic device normally displays an interface of a desktop, and does not control the application identifier of the first application in the interface to be in a floating state, and does not display the identifier of each level content in the first application on the interface. At this time, the user usually requires the electronic device to exit the process of sending the media file.
For example, the first input may include a long press input by the user to an application identification of the first application such that the application identification is in a hover state. And continuously touching the screen by the fingers of the user, and pressing and drawing a circle on the application identifier in the floating state, namely continuously touching and sliding along a circular sliding track.
In implementation 1, the second input may be an input in which the user continuously touches the screen and slides a finger to the first target identification.
It will be appreciated that when the user's finger slides over the plurality of first identifiers in the second input, the first target identifier comprises the plurality of first identifiers, i.e. the target media files that the user can select comprise a plurality of media files.
In implementation 2, the first sub-input of the second input may be an input in which the user continuously touches the screen and slides the finger to the third target identifier, and the second sub-input may be an input in which the user continuously touches the screen and slides the finger to the first target identifier.
It will be appreciated that, when the second sub-input slides over the plurality of third identifiers, the third target identifier includes the plurality of third identifiers, i.e., the number of media folders that can be selected by the user is plural.
The third input may be an input where the user continuously touches the screen and slides the hand towards the second target identification.
It is to be understood that, when the user's finger slides over the plurality of second identifiers in the third input, the second target identifier includes the plurality of second identifiers, that is, the second application that can be selected by the user includes a plurality of applications of the media files to be shared.
In embodiment 1, as shown in fig. 3, a schematic diagram of displaying content of an electronic device according to an embodiment of the present invention is shown. Fig. 3 (a) shows an interface (i.e., a first interface) of a desktop in an electronic device, which includes an icon a1 of a gallery application. After the user first presses the icon a1 for a long time and performs clockwise circle-drawing input (i.e., first input) on the icon a1 while continuously touching the screen, as shown in fig. 3 (B), the electronic device may display picture identifiers B1 to B5 on an annular region P1 (i.e., a first region) around the icon a1 (the picture identifiers B1 to B5 are all first identifiers, and N is 5). Subsequently, after the user continuously touches the screen and slides a finger (i.e., a second input) to the picture indication B1 (i.e., the first target indication), as shown in (C) of fig. 3, the electronic device may cancel displaying the picture indications B2-B5 on a ring-shaped region P1 (i.e., a first region) around the icon a1, and display an icon C1 of the application 2 and an icon C2 of the application 3 (both the icon C1 and the icon C2 are a second indication, and M is 2) on a ring-shaped region P2 (i.e., a second region) around the picture indication B1. Subsequently, after the user continuously touches the screen and slides the finger over the icon C1 (i.e., a third input), the electronic device may transmit the picture indicated by the picture identification B1 (i.e., the target media file) through the application 2.
In embodiment 2, in conjunction with fig. 3, after the user performs a long press input and then performs a clockwise circle drawing input (i.e., a slide input whose slide trajectory is a circle, i.e., a first input) on the icon a1 shown in (a) in fig. 3, the electronic apparatus does not display the content shown in (b) in fig. 3, but displays the content shown in (a) in fig. 4. As shown in fig. 4 (a), the electronic device displays album marks D1 to D3 in an annular region P3 (i.e., a third region) around the icon a1 (the album marks D1 to D3 are third marks, and P is 3). Subsequently, after the user continues to touch the screen and the input of sliding the finger to the album flag D1 (i.e., the first sub-input), as shown in (B) of fig. 4, the electronic device cancels the display of the album flag D2 and the album flag D3 on the ring-shaped area P3 and displays the picture flags B1 to B5 on the ring-shaped area P4 (i.e., the first area) around the album flag D1. Subsequently, after the user continues to touch the screen and slide the finger to the picture indication B1 (i.e., the second sub-input), as shown in (C) of fig. 4, the electronic device may display the picture indications B2 to B5 on the ring-shaped region P4 (i.e., the first region) in a canceled state, and display the icon C1 of the application 2 and the icon C2 of the application 3 on the ring-shaped region P5 (i.e., the second region) around the picture indication B1. Subsequently, after the user continuously touches the screen and slides the finger over the icon C1 (i.e., a third input), the electronic device may transmit the picture indicated by the picture identification B1 (i.e., the target media file) through the application 2.
In this way, the electronic device can continuously touch the screen and slide on the screen when the control finger is used, so that the electronic device respectively displays different levels of content in the first application on the first interface, and triggers the electronic device to select and send the media file. Therefore, the convenience of user operation in the process of sending the media file by the electronic equipment is further improved.
Optionally, in this embodiment of the present invention, the electronic device may display, on the first interface, a position identifier (e.g., a white dot or a white dot with a predetermined transparency) of the operation position of the finger of the user. For example, in a case where the finger of the user is a touch input to the screen, the electronic device displays, on the first interface, a position identification of a touch point of the finger of the user. In a case where the finger of the user is a hover input to the screen, the electronic device displays a hover operation point of the finger of the user on the first interface.
Therefore, the electronic equipment can display the position identification of the operation position of the finger of the user on the first interface, so that the user can conveniently know the operation position of the finger in the process of triggering the electronic equipment to share the media file by the user, and the accuracy of the user operation in the process of sharing the media file is improved, for example, the accuracy of selecting the target media file to be shared.
Optionally, in example 2, the second target input is a hover input of a finger of the user on a screen of the electronic device, the second target input including at least one of: a first input, a second input, a third input, and a fourth input; the electronic equipment collects images of the fingers of the user through the camera, identifies the fingers of the user, and acquires second target input executed by the fingers of the user.
Optionally, in the embodiment of the present invention, the electronic device may acquire an image of a finger of the user through the front-facing camera, so as to recognize a gesture of the finger of the user, that is, recognize the hovering input.
Optionally, the electronic device may select whether to turn on a function of "acquiring an image of a finger of a user through the front camera, and recognizing a hovering input" (i.e., a gesture recognition function). For example, the electronic device may use a physical button (e.g., an Artificial Intelligence (AI) button) to trigger the electronic device to turn the gesture recognition function on or off.
Specifically, the user can wake up the gesture recognition function of the electronic device by triggering the AI key without touching the screen with a finger, and can perform floating input on the first interface displayed on the screen. Specifically, the finger gesture recognition function is used to indicate: the electronic equipment shoots images through the front camera, recognizes the fingertips of the user through image recognition, and then takes the fingertips of the user as a point. When the finger of the user moves, the electronic equipment records the position of the point of the finger tip, so that a line is formed according to the movement of the point, and then the formed line is subjected to pattern recognition, so that the shape of the moving track of the finger is recognized.
For example, a user's finger rounding gesture (i.e., a first input) above a gallery application in a desktop displayed by the electronic device may trigger the electronic device to perform a process of selecting and sending a media file.
In conjunction with fig. 3, as shown in fig. 5, when an icon a1 of the gallery application is included in the desktop displayed by the electronic device, the user may perform a finger-rounding gesture (i.e., a first input) on the icon a 1. At this time, the electronic apparatus displays, on the icon a1, a position S1 of the user ' S finger and an input trajectory S2, the position S1 being used to indicate an operation position of the user ' S finger on the screen, and the input trajectory S2 being used to indicate an operation gesture of the user ' S finger on the icon a 1. As such, the electronic device may be triggered to display content as shown in (b) of fig. 3. Similarly, the user may trigger the electronic device to display the content as shown in (c) in fig. 3 through the gesture input, which is not described herein again.
In connection with implementation 1 and example 2, the second input is a gesture in which a finger of the user slides over the first target identification.
It will be appreciated that in the second input the first target identifier comprises the plurality of first identifiers when the user's finger is slid over the plurality of first identifiers, i.e. the target media files that the user may select comprise a plurality of media files.
In connection with implementation 2 and example 2, the first sub-input in the second input may be a gesture in which a finger of the user slides over the third target identification, and the second sub-input is a gesture in which a finger of the user slides over the first target identification.
It will be appreciated that when the user's finger slides over the plurality of third identifiers in the second sub-input, the third target identifiers include the plurality of third identifiers, i.e., the number of media folders that can be selected by the user is plural.
Alternatively, the third input may be a gesture in which the user's finger slides over the second target identification.
It will be appreciated that, when the user's finger slides over the plurality of second identifiers in the second input, the second target identifier includes the plurality of second identifiers, i.e. the second application that the user can select includes a plurality of applications of the media file to be shared.
In this way, the electronic device can hover over the screen for input by the control finger, so that the electronic device respectively displays different levels of content in the first application on the first interface, and triggers the electronic device to select and send the media file. Therefore, the convenience of user operation in the process of sending the media file by the electronic equipment is further improved.
In the embodiment of the present invention, when there are more identifiers displayed in any one of the first area, the second area, and the third area, the electronic device may update the identifiers in the corresponding area, so that the user can view all the identifiers in the area. Optionally, the method for sending a media file provided in the embodiment of the present invention further includes step S204:
and S204, before the identifier in the target area is selected, the electronic equipment responds to the received fourth input of the target area, and updates the identifier displayed on the target area.
Wherein the target region is any one of the first region, the second region, and the third region.
Optionally, the electronic device may update part or all of the identifiers displayed on the target area.
In the embodiment of the invention, the electronic equipment can update the identifier in any one of the first area, the second area and the third area, so that a user can conveniently select any identifier of the electronic equipment in the first area, the second area or the third area, and the man-machine interaction performance of the electronic equipment in the process of sending the media file is improved.
Optionally, in example 3, the target region includes an extension control, and the fourth input is an input to the extension control. Specifically, the "update of the mark displayed on the target area" in S204 may be implemented by S204 a:
s204a, the electronic device updates the mark displayed on the target area from K fourth marks to K fifth marks.
Wherein the K fourth identifiers and the K fifth identifiers are all different; under the condition that the target area is the first area, the K fourth identifications and the K fifth identifications are identifications in the N first identifications; under the condition that the target area is the second area, the K fourth identifications and the K fifth identifications are identifications in the M second identifications; under the condition that the target area is a third area, the K fourth identifications and the K fifth identifications are identifications in the P third identifications; k is a positive integer less than N.
Wherein, in example 3, the electronic device may update all identities in the target area each time it receives one fourth input.
Illustratively, the expansion control in the target area may be an icon "…".
In connection with example 1, the fourth input may be an input of a user's finger touching the screen and sliding towards the expansion control.
In connection with example 2, the fourth input may be a gesture in which a user's finger slides over the expansion control.
In this way, the electronic device may set an expansion control in each of the first area, the second area, and the third area to support a user to trigger the electronic device to update the identifier in the corresponding area by inputting the expansion control in any one of the first area, the second area, and the third area.
Optionally, in example 4, the target region is an annular region, and the target region includes a separation position. Specifically, the "update of the mark displayed on the target area" in S204 may be implemented by S204 b:
s204b, the electronic device controls the Q marks to rotate in the target area, so as to control W sixth marks in the Q marks to rotate out of the target area to a preset storage area corresponding to the target area on the first side of the separation position, and controls W seventh marks in the preset storage area to rotate into the target area from the preset storage area on the second side of the separation position.
Wherein the identifier in the preset storage area is invisible; under the condition that the target area is a first area, Q marks are marks in the N first marks; under the condition that the target area is a second area, Q marks are marks in M second marks; under the condition that the target area is a third area, Q marks are marks in P third marks; w is a positive integer less than Q.
Optionally, in example 4 the electronic device may update the partial identity in the target area each time it receives a fourth input.
The separation position may be located at a preset position in the target area, such as a position between two left-most adjacent markers in the target area.
Alternatively, the electronic device may embody the division position in one solid line, or not embody the division position.
In connection with example 1, the fourth input may be an input where a finger of the user touches the screen and slides from the first side to the second side through the separation position (e.g., a clockwise slide input or a counterclockwise slide input).
In connection with example 2, the fourth input may be a gesture (e.g., a clockwise swipe gesture, or a counterclockwise swipe gesture) in which the user's finger swipes over the screen (i.e., hovers over the screen) from the first side to the second side through the separation location.
Therefore, the user can control the mark of any one of the first area, the second area and the third area to rotate in the corresponding area so as to trigger the electronic equipment to update the mark in the corresponding area, and convenience in user operation in the process of updating the mark in the corresponding area by the electronic equipment is improved.
Optionally, in the embodiment of the present invention, when the electronic device selects the identifier in the target area, the electronic device may be triggered to preview the content indicated by the identifier in the target area on the current interface. Specifically, the "update of the mark displayed on the target area" in S204 may be implemented by S204 c:
s204c, the electronic equipment updates the mark displayed on the target area and updates the content displayed on the first interface to the content indicated by the mark on the target area.
And the mark on the target area is displayed on the first interface in an overlapping mode.
When the target area is the first area, the content indicated by the mark on the target area is a certain picture in the first application; when the target area is the second area, the content indicated by the identification on the target area is a sending interface for sending the media file in the first application; and when the target area is the third area, the content indicated by the identifier on the target area is a picture in a certain album folder in the first application.
Therefore, in the process of sending the media file by the electronic equipment, the user can conveniently see the media files such as the pictures to be shared and the contents such as the sending interface of the application of the media files to be shared.
Optionally, in the embodiment of the present invention, when the electronic device displays the identifiers of the contents of different hierarchies in the first application on the first interface, the electronic device may further preview and display the contents of each hierarchy. Specifically, the electronic device may zoom in and display the content indicated by the identifier on the target area on the first interface, with the identifier on the target area as a center.
Therefore, the display effect of the contents such as the transmission interface of the application of the media file to be shared and the like can be improved.
Fig. 6 is a schematic diagram of a possible structure of an electronic device according to an embodiment of the present invention. The electronic device 60 shown in fig. 6 includes: a display module 61 and a transmission module 62; the display module 61 is configured to, in a case that an application identifier of a first application is included in a first interface displayed by the electronic device, display an identifier of the N first identifiers on a first area in the first interface in response to a received first input; in response to the received second input for selecting the first target identifier in the N first identifiers, displaying the identifiers in the M second identifiers on a second area in the first interface; a sending module 62, configured to send, in response to a received third input selecting a second target identifier in the M second identifiers displayed by the display module 61, a target media file through a second application; each first identifier is used for indicating one media file in the first application, each second identifier is used for indicating one application of the media files of the first application to be shared, the target media file is the media file indicated by the first target identifier, the second application is the application indicated by the second target identifier, and M and N are positive integers; the file type of the media file in the first application includes at least one of a picture type, a video type, and an audio type.
Optionally, the first input includes a first sub-input and a second sub-input; the display module 61 is specifically configured to display, in response to the received first sub-input of the selected application identifier, an identifier of the P third identifiers on a third area in the first interface; in response to the received second sub-input for selecting a third target identifier in the P third identifiers, displaying identifiers in the N first identifiers on the first area; wherein, the different third identifiers are used for indicating different media folders in the first application, the different first identifiers are identifiers of different media files in the media folders indicated by the third target identifier, and P is a positive integer.
Optionally, the display module 61 is further configured to update the identifier displayed on the target area in response to a received fourth input to the target area before the identifier in the target area is selected; wherein the target region is any one of the first region, the second region, and the third region.
Optionally, the target region includes an extension control, and the fourth input is input to the extension control; the display module 61 is specifically configured to update the identifiers displayed on the target area from the K fourth identifiers to the K fifth identifiers; wherein the K fourth identifiers and the K fifth identifiers are all different; under the condition that the target area is the first area, the K fourth identifications and the K fifth identifications are identifications in the N first identifications; under the condition that the target area is the second area, the K fourth identifications and the K fifth identifications are identifications in the M second identifications; under the condition that the target area is a third area, the K fourth identifications and the K fifth identifications are identifications in the P third identifications; k is a positive integer less than N.
Optionally, the target region is an annular region, and the target region includes a separation position; the display module 61 is specifically configured to control the Q identifiers to rotate in the target area, so as to control W sixth identifiers of the Q identifiers to be transferred out of the target area to a preset storage area corresponding to the target area on a first side of the separation position, and control W seventh identifiers in the preset storage area to be transferred into the target area from the preset storage area on a second side of the separation position; wherein the identifier in the preset storage area is invisible; under the condition that the target area is a first area, the Q marks are marks in the N first marks; under the condition that the target area is a second area, Q marks are marks in M second marks; under the condition that the target area is a third area, Q marks are marks in P third marks; w is a positive integer less than Q.
Optionally, the display module 61 is specifically configured to update the identifier displayed on the target area, and update the content displayed on the first interface to the content indicated by the identifier on the target area; and the mark on the target area is displayed on the first interface in an overlapping mode.
Optionally, the display module 61 is specifically configured to display the content indicated by the identifier on the target area on the first interface in an enlarged manner with the identifier on the target area as a center.
Optionally, the display module 61 is further configured to display the fourth target identifier with a preset effect under the condition that the fourth target identifier is selected; and the fourth target identifier is the first target identifier, the second target identifier, the third target identifier or the application identifier.
Optionally, the first target input is a touch input in which a finger of a user continuously touches a screen of the electronic device; wherein the first target input includes at least two of: a first input, a second input, a third input, and a fourth input.
Optionally, the second target input is a hovering input of a finger of the user on a screen of the electronic device, and the second target input includes at least one of: a first input, a second input, a third input, and a fourth input; the electronic equipment collects images of the fingers of the user through the camera, identifies the fingers of the user, and acquires second target input executed by the fingers of the user.
Optionally, the file type of the media file in the first application includes at least one of a picture type, a video type, and an audio type.
In the electronic device provided by the embodiment of the present invention, when a displayed first interface (for example, a desktop of the electronic device) includes an application identifier of a first application, identifiers of N first identifiers at the same level may be displayed on a first area in the first interface through a first input, where each first identifier is used to indicate one media file in the first application. Subsequently, through a second input of selecting a first target identifier in the N first identifiers, identifiers in M second identifiers at the same level are displayed on a second area in the first interface, where each second identifier is used for indicating one application of the media file to be shared with the first application. And, a third input of selecting a second target identifier of the M second identifiers may trigger sending the target media file indicated by the first target identifier by the second application indicated by the second target identifier. The application identifier of the first application, the identifiers of the N first identifiers and the identifiers of the M second identifiers are different levels of content provided by the first application, and the content is displayed on the first interface. Therefore, the user does not need to trigger the electronic equipment to open the first application and switch and display different interfaces of different hierarchies in the first application for multiple times to select and send the media file, but the input on the first interface can trigger the electronic equipment to respectively display different contents of different hierarchies on the first interface to select and send the media file. Therefore, the convenience and the intuition of the electronic equipment for sharing the media files such as the pictures are improved.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device 100 according to an embodiment of the present invention, where 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. 7 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 electronic device, a wearable device, a pedometer, and the like.
The display unit 106 is configured to, in a case that an application identifier of a first application is included in a first interface displayed by the electronic device, display an identifier of the N first identifiers on a first area in the first interface in response to a received first input; in response to the received second input for selecting the first target identifier in the N first identifiers, displaying the identifiers in the M second identifiers on a second area in the first interface; a processor 110, configured to send a target media file through a second application in response to a received third input selecting a second target identifier of the M second identifiers displayed by the display unit 106; each first identifier is used for indicating one media file in the first application, each second identifier is used for indicating one application of the media files of the first application to be shared, the target media file is the media file indicated by the first target identifier, the second application is the application indicated by the second target identifier, and M and N are positive integers.
In the electronic device provided by the embodiment of the present invention, when a displayed first interface (for example, a desktop of the electronic device) includes an application identifier of a first application, identifiers of N first identifiers at the same level may be displayed on a first area in the first interface through a first input, where each first identifier is used to indicate one media file in the first application. Subsequently, through a second input of selecting a first target identifier in the N first identifiers, identifiers in M second identifiers at the same level are displayed on a second area in the first interface, where each second identifier is used for indicating one application of the media file to be shared with the first application. And, a third input of selecting a second target identifier of the M second identifiers may trigger sending the target media file indicated by the first target identifier by the second application indicated by the second target identifier. The application identifier of the first application, the identifiers of the N first identifiers and the identifiers of the M second identifiers are different levels of content provided by the first application, and the content is displayed on the first interface. Therefore, the user does not need to trigger the electronic equipment to open the first application and switch and display different interfaces of different hierarchies in the first application for multiple times to select and send the media file, but the input on the first interface can trigger the electronic equipment to respectively display different contents of different hierarchies on the first interface to select and send the media file. Therefore, the convenience and the intuition of the electronic equipment for sharing the media files such as the pictures are improved.
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. 7, 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; preferably, 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 source 111 (such as a battery) for supplying power to each component, and preferably, the power source 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.
Preferably, an embodiment of the present invention further provides an electronic device, which includes a processor 110, a memory 109, and a computer program stored in the memory 109 and capable of running on the processor 110, where the computer program, when executed by the processor 110, implements each process of the foregoing 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 the processes of the method embodiments, and can achieve the same technical effects, and in order to avoid repetition, the details are not repeated here. The computer-readable storage medium may be 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.