File sharing method and apparatus, electronic device, and readable storage medium

By displaying sharing controls in the shooting preview interface and establishing the association between file characteristics and objects, the problem of cumbersome steps for users to share files is solved, enabling fast file sharing.

CN116156312BActive Publication Date: 2025-12-19VIVO MOBILE COMM CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211315387.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-26
Publication Date
2025-12-19
Estimated Expiration
2042-10-26

AI Technical Summary

Technical Problem

In existing technologies, users have to go through many steps when sharing files, resulting in slow file sharing speeds.

Method used

By displaying sharing controls in the shooting preview interface and establishing a relationship between file characteristics and objects, users can send the captured file to the associated object with simple input.

Benefits of technology

It reduces the steps users need to take to share files and increases the speed of file sharing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116156312B_ABST
    Figure CN116156312B_ABST
Patent Text Reader

Abstract

The application discloses a file sharing method and device, an electronic device and a readable storage medium, and belongs to the technical field of communication. The file sharing method comprises the following steps: receiving a first input of a user to a shooting preview interface; in response to the first input, a first file is obtained by shooting, and a sharing control is displayed in the shooting preview interface; receiving a second input of the user to the sharing control; and in response to the second input, the first file is sent to a first object; wherein the first file comprises at least one of the following: an image and a video; and the first object has an association relationship with a file feature of the first file.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application belongs to the technical field of communication, and particularly relates to a file sharing method and device, an electronic device and a readable storage medium. BACKGROUND

[0002] At present, when a user wants to share a file photographed to a social friend, the user needs to select a target file to be shared after photographing the file, then select a corresponding social application program, select a target social friend in the social application program, and then control the electronic device to send the target file to the selected target social friend by clicking a "share" control or a "confirm" control or the like. In this way, when the user shares the file to the social friend, the operation steps are numerous, and the file sharing speed is slow. SUMMARY

[0003] The embodiments of the present application aim to provide a file sharing method and device, an electronic device and a readable storage medium, which can reduce the operation steps required by the user when sharing the file, thereby improving the file sharing speed.

[0004] In a first aspect, the embodiments of the present application provide a file sharing method, which comprises: receiving a first input of a user to a photograph preview interface; in response to the first input, photographing a first file and displaying a sharing control in the photograph preview interface; receiving a second input of the user to the sharing control; and in response to the second input, sending the first file to a first object; wherein the first file comprises at least one of an image and a video; and the first object has an association relationship with a file feature of the first file.

[0005] In a second aspect, the embodiments of the present application provide a file sharing device, which comprises: a receiving unit configured to receive a first input of a user to a photograph preview interface; a photographing unit configured to photograph a first file in response to the first input; a display unit configured to display a sharing control in the photograph preview interface; the receiving unit is further configured to receive a second input of the user to the sharing control; and a processing unit configured to send the first file to a first object in response to the second input; wherein the first file comprises at least one of an image and a video; and the first object has an association relationship with a file feature of the first file.

[0006] In a third aspect, the embodiments of the present application provide an electronic device, which comprises a processor and a memory, the memory stores programs or instructions executable on the processor, and the programs or instructions are executed by the processor to implement the steps of the file sharing method of the first aspect.

[0007] In a fourth aspect, the embodiments of the present application provide a readable storage medium, which stores programs or instructions, and the programs or instructions are executed by the processor to implement the steps of the file sharing method of the first aspect.

[0008] In a fifth aspect, an embodiment of the present application provides a chip, which comprises a processor and a communication interface, the communication interface and the processor being coupled, and the processor being configured to run programs or instructions to implement steps of the file sharing method according to the first aspect.

[0009] In a sixth aspect, an embodiment of the present application provides a computer program product stored in a storage medium, which is executed by at least one processor to implement steps of the file sharing method according to the first aspect.

[0010] In the file sharing method provided by the embodiment of the present application, when the electronic device receives a first input of a user on a shooting preview interface, the electronic device shoots a first file in response to the first input, and displays a sharing control in the shooting preview interface. On this basis, when the electronic device receives a second input of the user on the sharing control, the electronic device sends the first file shot to a first object in response to the second input. The first file includes at least one of an image and a video, and the first object has an association relationship with a file feature of the first file.

[0011] Through the above file sharing method, when the user shoots an image or a video file, i.e., a first file, by a first input on a shooting preview interface of an electronic device, a sharing control is displayed in the shooting preview interface. On this basis, the user can directly send the first file shot to a first object having an association relationship with a file feature of the first file by a simple input, i.e., a second input, on the sharing control. In this way, by establishing an association relationship between the first object and the file feature of the first file, a dynamic association relationship between the first object and the first file is realized, so that the user can quickly share the first file shot to the first object having a dynamic association relationship with the first file by a simple input on the shooting preview interface, and the operation steps required by the user when sharing the file are reduced, thereby improving the speed of the user sharing the file. BRIEF DESCRIPTION OF DRAWINGS

[0012] Figure 1 A flowchart of the file sharing method provided by the embodiment of the present application;

[0013] Figure 2 One of the operation interface diagrams of the file sharing method provided by the embodiment of the present application;

[0014] Figure 3 The second operation interface diagram of the file sharing method provided by the embodiment of the present application;

[0015] Figure 4 The third operation interface diagram of the file sharing method provided by the embodiment of the present application;

[0016] Figure 5 Figure 4 is an operation interface diagram of a file sharing method provided by an embodiment of the present application;

[0017] Figure 6 Figure 5 is an operation interface diagram of a file sharing method provided by an embodiment of the present application;

[0018] Figure 7 Figure 6 is an operation interface diagram of a file sharing method provided by an embodiment of the present application;

[0019] Figure 8 Figure 7 is an operation interface diagram of a file sharing method provided by an embodiment of the present application;

[0020] Figure 9 Figure 8 is an operation interface diagram of a file sharing method provided by an embodiment of the present application;

[0021] Figure 10 Figure 9 is an operation interface diagram of a file sharing method provided by an embodiment of the present application;

[0022] Figure 11 Figure 10 is an operation interface diagram of a file sharing method provided by an embodiment of the present application;

[0023] Figure 12 Figure 11 is an operation interface diagram of a file sharing method provided by an embodiment of the present application;

[0024] Figure 13 Figure 12 is a structural block diagram of a file sharing device provided by an embodiment of the present application;

[0025] Figure 14 Figure 13 is a structural block diagram of an electronic device provided by an embodiment of the present application;

[0026] Figure 15 Figure 14 is a hardware structural schematic diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0027] The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art belong to the scope of protection of the present application.

[0028] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of a kind and do not limit the number of objects, for example, the first object can be one or more. In addition, "and / or" in the specification and claims indicates at least one of the connected objects, and the character " / ", generally indicates that the objects before and after are in a "or" relationship.

[0029] The embodiments of the first aspect of the present application provide a file sharing method. The execution subject of the technical scheme of the file sharing method provided by the embodiments of the present application can be a file sharing device, which can be determined according to actual use requirements, and the embodiments of the present application do not limit it. In order to more clearly describe the file sharing method provided by the embodiments of the present application, the execution subject of the file sharing method in the following method embodiments is exemplarily illustrated as a file sharing device.

[0030] The file sharing method provided by the embodiments of the present application will be described in detail below in combination with the drawings, through specific embodiments and application scenarios.

[0031] As shown in Figure 1 The embodiments of the present application provide a file sharing method, which can include the following S102 and S108:

[0032] S102: receiving a first input of a user on a shooting preview interface.

[0033] The file sharing method provided by the embodiments of the present application can be applied to an electronic device with a file sharing function. In actual application process, the above-mentioned electronic device can be specifically a smart phone, a tablet computer, a notebook computer or the like, which is not specifically limited here.

[0034] Further, the first input can be specifically a touch input, a voice input, a gesture input, a mouse input or the like of the user on the shooting preview interface. Wherein, in the case that the first input is a touch input of the user on the shooting preview interface, the touch input can be specifically a single-click input, a double-click input, a knuckle tap input, a sliding input or the like. For the specific form of the first input, those skilled in the art can set it according to actual situation, which is not specifically limited here.

[0035] Further, the first input is used to instruct the electronic device to shoot a video or an image, so as to obtain a corresponding video file or image file.

[0036] S104: In response to the first input, a first file is captured, and the sharing control is displayed in the photograph preview interface.

[0037] The first file includes at least one of an image and a video.

[0038] Specifically, when the electronic device displays the photograph preview interface, the user can control the electronic device to capture a video file or an image file (i.e., the first file) through a first input to the photograph preview interface, and display the captured first file in the form of a thumbnail in the photograph preview interface. Meanwhile, a sharing control is displayed in the photograph preview interface, and the user can start the file sharing function of the electronic device through the sharing control to perform a sharing operation on the captured video file or image file.

[0039] S106: Receive a second input of the sharing control by the user.

[0040] The second input can be a touch input of the sharing control by the user, which can be a single-click input, a double-click input, a sliding input, etc. The specific form of the second input can be set by a person skilled in the art according to actual conditions, and is not limited here.

[0041] Further, the second input is used to control the electronic device to perform a sharing operation on the captured video file or image file, i.e., to control the electronic device to perform a sharing operation on the captured file displayed in the form of a thumbnail in the photograph preview interface.

[0042] S108: In response to the second input, the first file is sent to a first object.

[0043] The first object is a social friend of the user in a certain social application.

[0044] Further, the first object has an association relationship with a file feature of the first file.

[0045] In the embodiments of the present application, by establishing an association relationship between the first object and a certain file feature, i.e., by establishing a relationship between the first object and a type of files having a certain file feature, a dynamic association relationship between the first object and the camera application is realized, i.e., a dynamic association relationship between the first object and the file to be shared in the photograph preview interface is realized. In this way, when the electronic device receives the second input of the sharing control by the user, the captured first file is directly sent to the first object having an association relationship with the file feature of the first file based on the above dynamic association relationship.

[0046] In practical applications, the above-mentioned file characteristics may specifically include: the file contains portraits, the file contains landscape scenes, the file contains flowers and plants, the file contains night scenes, the file contains animals, the file contains a specific person, the file contains a specific animal or object, etc., without specific restrictions.

[0047] For example, a link can be established between the file feature "Puppy A" and the owner of Puppy A. When the first file captured contains an image or video of Puppy A, the electronic device can directly share the first file with the owner of Puppy A through user input to the sharing control. Alternatively, a link can be established between the file feature "Flowers and Plants" and a plant enthusiast. When the first file captured contains flowers and plants, the electronic device can directly share the first file with the plant enthusiast in response to a second user input. Or, a link can be established between the file feature "Night Scene" and a social media friend. When the first file captured is a night scene image or video, the electronic device can directly share the first file with the social media friend in response to a second user input. Furthermore, when the first file captured contains both Puppy A and flowers and plants, the electronic device can directly share the first file with both the owner of Puppy A and the plant enthusiast in response to a second user input.

[0048] Specifically, in the file sharing method provided in this application embodiment, after the electronic device receives a first input from the user to the shooting preview interface, the electronic device responds to the first input by taking a picture of a first file and simultaneously displays a sharing control on the shooting preview interface. Based on this, when the electronic device receives a second input from the user to the sharing control, the electronic device responds to the second input by analyzing the first file to determine its file characteristics, and then quickly shares the first file with a first object that is associated with the file characteristics of the first file.

[0049] In addition, in practical applications, when establishing the association between each sharing object and file characteristics, the electronic device can store the association in its own storage space. This way, when the electronic device shares the first file based on the user's second input, it can retrieve the stored association between each sharing object and file characteristics and directly share the first file with the first object that has an association with the file characteristics of the first file, thereby reducing the computational load of the electronic device and further improving the speed of file sharing.

[0050] For example, such as Figure 2As shown, the user takes a first file 204 by a first input to the photograph preview interface 202 of the electronic device, and the first file 204 is a portrait photo. On this basis, a preview of the first file 204 and a sharing control 206 are displayed in the photograph preview interface 202, and at this time, the user can send the first file 204 directly to a first object associated with the file feature of "containing a portrait" by a second input to the sharing control 206.

[0051] By the above file sharing method provided by the embodiments of the present application, when the user takes a first file of an image or a video by a first input to the photograph preview interface of the electronic device, a sharing control is displayed in the photograph preview interface. On this basis, the user can send the first file taken directly to a first object associated with the file feature of the first file by a simple input, i.e., a second input, to the sharing control. In this way, by establishing an association between the first object and the file feature of the first file, a dynamic association between the first object and the first file is realized, so that the user can quickly share the first file taken to the first object having a dynamic association with the first file by a simple input to the photograph preview interface, and the operation steps required by the user when sharing the file are reduced, thereby improving the speed of the user sharing the file.

[0052] In addition, it should be noted that the file sharing method provided by the embodiments of the present application is not limited to sharing the file taken immediately, but can also be used to share the file stored or downloaded in the electronic device.

[0053] That is, in actual application, the file sharing method provided by the embodiments of the present application is not limited to sharing the file in the photograph preview interface, but when the user views or edits the file, the user can also perform a quick sharing operation on the file by inputting the sharing control of the file viewing interface or the file editing interface.

[0054] Exemplarily, as shown in FIG. 2, Figure 4 As shown, the second file 256 and the sharing control 206 are displayed in the image viewing interface 236 of the electronic device, and the second file 256 is a single-person photo. On this basis, the user can send the second file 256 directly to a first object associated with the file feature of "single-person photo" by a touch input to the sharing control 206.

[0055] Exemplarily, as shown in FIG. 2, Figure 5As shown, the third file 262, which is a flower picture, and the sharing control 206 are displayed in the image editing interface 238 of the electronic device. On this basis, the user can send the third file 262 to the first object associated with the file feature "containing flowers" by performing a touch input on the sharing control 206.

[0056] In the embodiments of the present application, the second input includes the first operation and the second operation, and on this basis, S108 can specifically include S108a and S108b as follows:

[0057] S108a: in response to the first operation of the user on the sharing control, the permission sub-control is displayed.

[0058] In the file sharing method provided in the embodiments of the present application, the second input includes the first operation, which can be specifically a touch operation, a mouse operation or a keyboard operation of the user on the sharing control.

[0059] Further, the permission sub-control is used for sharing files, and the permission sub-control has a sharing confirmation function. After receiving the input of the user on the permission sub-control, the electronic device confirms that the user wants to share the first file obtained by shooting, and directly performs a sharing operation on the first file.

[0060] Specifically, in the process of sharing files, the electronic device receives and responds to the first operation of the user on the sharing control, and displays the permission sub-control, so that the user can make the electronic device send the first file obtained by shooting to the first object according to the set sharing rule by operating the permission sub-control.

[0061] S108b: in response to the second operation of the user on the permission sub-control, the first file is shared with the first object.

[0062] The first input further includes the second operation, which can be specifically a touch operation, a mouse operation or a keyboard operation of the user on the permission sub-control.

[0063] Further, the second operation is used to control the electronic device to send the first file to the first object according to the set sharing rule.

[0064] Specifically, in the file sharing method provided in the embodiments of the present application, in the process of sharing files, the electronic device receives and responds to the first operation of the user on the sharing control in the shooting preview interface, and displays the permission sub-control. On this basis, the electronic device receives and responds to the second operation of the user on the permission sub-control, analyzes the first file to determine the file feature of the first file, determines the first object associated with the file feature, and directly sends the first file to the determined first object.

[0065] In addition, in practical applications, after the electronic device responds to the user's first operation on the share control, it will also display a cancel sub-control. Based on this, the user can use the cancel sub-control to make the electronic device cancel the sharing of the first file.

[0066] For example, such as Figure 2 As shown, the electronic device's shooting preview interface 202 displays a preview image of the captured first file 204 and a sharing control 206. The file characteristic of the first file 204 is "contains a human image". The electronic device receives and responds to the user's click input on the sharing control 206, such as... Figure 3 As shown, the Allow sub-control 208 and the Cancel sub-control 210 are displayed. At this time, the user can cause the electronic device to directly send the first file 204 to the first object by touching the Allow sub-control 208, where the first object is associated with the file feature of "containing a human image". Alternatively, the user can cancel the sharing of the first file by touching the Cancel sub-control 210. Additionally, as... Figure 3 As shown, the enable sub-control 208 and the undo sub-control 210 can be displayed in the first window 212. The first window is a dynamic window, which displays the enable sub-control 208 and the undo sub-control 210 in the form of animation, thereby increasing the naturalness and smoothness of the display of the enable sub-control 208 and the undo sub-control 210.

[0067] In the embodiments provided in this application, the second input includes a first operation and a second operation. Based on this, the electronic device, in response to the user's first operation on the sharing control, displays an allow sub-control. Further, in response to the user's second operation on the allow sub-control, the electronic device shares the first file with the first object. Thus, on the one hand, the user can quickly share the first file to the first object associated with the file characteristics of the first file by simply inputting into the allow sub-control, reducing the number of steps required for file sharing and thus improving the speed of file sharing. On the other hand, the first file is only shared with the first object after the user operates on the sharing control and then on the allow sub-control, preventing accidental sending of the first file when the user accidentally touches the sharing control and reducing user errors.

[0068] In this embodiment of the application, prior to S106, the file sharing method may further include the following S110 and S112:

[0069] S110: Receive the user's third input.

[0070] In a case where the electronic device has a touch screen function, the third input can be a touch input of the electronic device by the user, which can be a single-click input, a double-click input, a sliding input, etc. In a case where the electronic device does not have a touch function, the third input can be a mouse input or a keyboard input of the electronic device by the user. The specific form of the third input can be set by a person skilled in the art according to actual conditions, and is not specifically limited herein.

[0071] S112: In response to the third input, an association relationship between the first type of file and the first object is established.

[0072] The file feature of the first type of file includes the file feature of the first file.

[0073] Further, the third input is used to establish an association relationship between the first object and the first type of file before the file is shared, that is, an association relationship between the first object and the file feature of the first file is established, that is, a dynamic association relationship between the first object and the camera application program is established, so that in subsequent sharing of the first file, the electronic device directly sends the first file to the first object associated with the file feature of the first file according to the file feature of the first file, thereby reducing the operation steps of the user when sharing the file.

[0074] The above embodiments provided in the present application further receive a third input of the user before receiving a second input of the user on the sharing control, and the electronic device establishes an association relationship between the first type of file and the first object in response to the third input, wherein the file feature of the first type of file includes the file feature of the first file. In this way, before the file is shared, an association relationship between the first object and the first type of file is established to realize a dynamic association relationship between the first object and the camera application program, so that in subsequent sharing of the first file, the electronic device can share the first file to the first object associated with the file feature according to the dynamic association relationship, thereby reducing the operation steps required by the user when sharing the file, and improving the speed of sharing the file by the user.

[0075] In the embodiments of the present application, the third input includes a third operation, a fourth operation, and a fifth operation, and on this basis, S112 can specifically include S112a-S108c as follows:

[0076] S112a: In response to the third operation of the user on the first application icon, a first interface is displayed.

[0077] The electronic device includes a first application program having a chat function. In actual application, the first application program can be a social application program, a payment application program, a game application program, or a video application program having a friend chat function, without specific limitation.

[0078] Further, the first application icon corresponds to the first application program, the first interface is an interface of the application program corresponding to the first application icon, and the first interface includes at least one object identifier, which can be an avatar or nickname of a chat object in the first application program, without specific limitation.

[0079] Further, the third input includes a third operation, which can be an operation of the user on the first application icon in the electronic device.

[0080] Specifically, before the user shares a file through the electronic device, the electronic device displays, in response to a third operation of the user on the first application icon, a first interface of an application program corresponding to the first application icon. The first interface displays at least one object identifier, so that the user establishes a dynamic association relationship between at least one chat object in the first application program and the camera application program through an operation on the at least one object identifier.

[0081] In actual application, a target area can be provided in the desktop interface of the electronic device, and the third operation corresponds to the target area. For example, the third operation can be an operation of the user sliding the first application icon to the target area.

[0082] S112b: In response to a fourth operation of the user on a first object identifier in the at least one object identifier, a second interface is displayed.

[0083] The second interface includes at least one shooting scene, and the first object identifier is an identifier corresponding to the first object, such as an avatar or nickname of the first object.

[0084] Further, the third input further includes a fourth operation, which can be an operation of the user on a first object identifier in the at least one object identifier in the first interface.

[0085] Specifically, the first interface includes at least one object identifier. After the electronic device displays the first interface, the electronic device continues to receive and respond to a fourth operation of the user on a first object identifier corresponding to the first object in the first interface, and displays a second interface. The second interface displays at least one shooting scene, so that the user establishes an association relationship between the first object and a type of file indicated by the shooting scene through an operation on the at least one shooting scene.

[0086] S112c: in response to the fifth operation of the user on the first shooting scene in the at least one shooting scene, establishing the association relationship between the first object and the first type of file.

[0087] The first shooting scene is used to indicate the first type of file, and the file feature of the first type of file includes the file feature of the first file.

[0088] Further, the third input further includes the fifth operation, which can be specifically an operation of the user on the first shooting scene in the at least one shooting scene in the second interface.

[0089] Specifically, the second interface includes at least one shooting scene, after the electronic device displays the second interface, the electronic device continues to receive and respond to the fifth operation of the user on the first shooting scene in the second interface, which is used to indicate the first type of file, to establish the association relationship between the first object and the first type of file, that is, the association relationship between the first object and the file feature of the first type of file, that is, the association relationship between the first object and the file feature of the first file, thereby realizing the dynamic association relationship between the first object and the camera application, so that the electronic device can directly send the first file obtained by shooting to the first object associated with the file feature of the first file according to the dynamic association relationship.

[0090] For example, as shown in FIG. 2A, the electronic device displays a target area 216 and a first application icon 218 in a desktop interface 214 of the electronic device, and the application corresponding to the first application icon 218 is a social application. The electronic device receives and responds to the sliding input of the user dragging the first application icon 218 to the target area 216, as shown in FIG. 2B, to display a first interface 220. Figure 6 Figure 7 The first interface 220 includes a plurality of object identifiers 222 and a plurality of first controls 226, and one object identifier 222 corresponds to one first control 226. On this basis, after the user clicks the first control 226 corresponding to the first object identifier 224 of the first object, and then clicks the "Confirm" control in the first interface 220, the electronic device responds to the above operation, as shown in FIG. 2C. Figure 8 ​As shown, the second interface 228 is displayed. The second interface 228 includes a plurality of shooting scenes 230, i.e., “night scene”, “portrait”, “cat”, “dog”, “landscape”, and “flowers and plants”. Further, the second interface 228 includes a plurality of second controls 234, one second control 234 corresponding to one shooting scene 230. On this basis, after the user clicks the second control 234 corresponding to the first shooting scene 232, and further clicks the “confirm” control in the second interface 228, the electronic device establishes the association relationship between the first object and the first class of files indicated by the first shooting scene 232, i.e., “night scene”.

[0091] In the above embodiment, the third input includes a third operation, a fourth operation, and a fifth operation. On this basis, the electronic device displays a first interface including at least one object identifier in response to the third operation of the user on the first application icon. Further, the electronic device displays a second interface including at least one shooting scene in response to the fourth operation of the user on the first object identifier corresponding to the first object. On this basis, the electronic device receives and responds to the fifth operation of the user on the first shooting scene for indicating the first class of files to establish the association relationship between the first object and the first class of files. In this way, before sharing the files, the user establishes the association relationship between the first object and the first class of files in the application corresponding to the first application icon through the input on the first application icon, to establish the association relationship between the first object and the file features of the first class of files, thereby realizing the dynamic association relationship between the first object and the camera application, so that the electronic device can quickly share the first file obtained by shooting to the first object according to the dynamic association relationship, thereby reducing the operation steps of the user for sharing the first file.

[0092] In the embodiment of the present application, before the step of establishing the association relationship between the first class of files and the first object, the file sharing method can further include the following S114 and S116:

[0093] S114: receiving a fourth input of the user.

[0094] The fourth input can be a touch input, a mouse input, or a keyboard input of the user on the electronic device. The specific form of the fourth input can be set by those skilled in the art according to the actual situation, which is not limited here.

[0095] S116: determining the first class of files in response to the fourth input.

[0096] Specifically, before the user establishes the association between the first object and the first type of file, the electronic device receives and responds to a fourth input of the user, classifies the existing files in the storage space of the electronic device according to the file features of the existing files such as the album file, to determine the first type of file.

[0097] The above embodiments provided in the present application, before establishing the association between the first type of file and the first object, the electronic device further receives and responds to a fourth input of the user to determine the first type of file. In this way, before sharing the file, the electronic device can classify the existing files according to the input of the user, to determine the first type of file, so as to subsequently establish the association between the first object and the file features of the first type of file by establishing the association between the first object and the first type of file, thereby realizing the dynamic binding relationship between the first object and the camera application, so as to realize the quick sharing of the first file based on the dynamic association relationship.

[0098] In the embodiments of the present application, the fourth input includes a sixth operation and a seventh operation, and on this basis, S116 can specifically include the following S116a and S116b:

[0099] S116a: displaying a third interface in response to the sixth operation of the user.

[0100] The third interface includes at least one candidate file, and the at least one candidate file includes the first type of file.

[0101] Further, the third interface can be specifically a photo album interface of the electronic device, and the candidate file can be displayed in the form of a thumbnail. In the case where the candidate file is a video file, the thumbnail of the candidate file can be any frame of image in the video file.

[0102] S116b: determining the first type of file in response to the seventh operation of the user on the first type of file in the at least one candidate file.

[0103] The file features of the first type of file include the file features of the first file.

[0104] Specifically, in the case where the electronic device displays the third interface, the electronic device receives and responds to the sixth operation of the user on the at least one candidate file in the third interface, which includes the file features of the first file, to divide the at least one candidate file into a category, to determine the first type of file.

[0105] Specifically, in practical applications, after the electronic device responds to the user's selection input of at least one candidate file whose file characteristics include the aforementioned first file in the third interface, a fourth interface is displayed. This fourth interface includes a feature list, and the feature list includes at least one file characteristic. Based on this, the electronic device receives and responds to the user's selection input of the first file characteristic from the at least one file characteristic in the feature list, categorizing the selected at least one candidate file into a class to determine the first class of files whose file characteristics are the first file characteristic. In this way, the existing files in the electronic device are categorized to determine the aforementioned first class of files based on their file characteristics. This allows for the subsequent establishment of an association between the first object and the first class of files, enabling a dynamic binding relationship between the first object and the camera application, thereby facilitating the rapid sharing of captured files.

[0106] In addition, in practical applications, users can also customize the specific names of file features in the feature list, such as setting the name of the first file feature to "flowers and plants", "portraits", "night scenes", etc., so that when users classify the selected files, they can quickly and accurately find the corresponding image scene based on the name of each file feature.

[0107] For example, such as Figure 9 As shown in (a), multiple candidate files 242 are displayed in the photo album interface, i.e., the third interface 240, of the electronic device. The file characteristics of the multiple candidate files 242 include "night scene", "flowers", "portrait", "cat", and "dog". Based on this, after the user selects four files with the file characteristic of "night scene" in the third interface 240, and then clicks the fifth control 244, i.e., the "more" control, in the third interface 240, the electronic device responds to the above operation as follows: Figure 9 As shown in (b), a second window 258 is displayed. Based on this, the electronic device receives and responds to the user's click input on the "Select Feature" control in the second window 258, such as... Figure 10 As shown, a fourth interface 246 is displayed. This fourth interface 246 displays a feature list 248, which includes multiple file features: "Night Scene," "Cat," "Feature 1," and "Feature 2." Furthermore, the feature list 248 includes multiple third controls 260, with one third control 260 corresponding to each file feature. Based on this, after the user clicks the third control 260 corresponding to the first file feature 250, and then clicks the "OK" control in the fourth interface 246, the electronic device responds to the above operation, classifying the four selected files as files with the "Night Scene" feature, i.e., the first type of files.

[0108] In the above embodiment provided in the present application, the fourth input includes a sixth operation and a seventh operation. On this basis, the electronic device displays a third interface in response to the sixth operation of the user, the third interface including at least one to-be-selected file, and the at least one to-be-selected file including the first type of file. The electronic device further determines the first type of file in response to the seventh operation of the user on the first type of file in the at least one to-be-selected file. In this way, before sharing the file, the electronic device classifies the existing file according to the input of the user to determine the first type of file, so as to subsequently establish the association relationship between the first object and the first type of file, realize the dynamic binding relationship between each first object and the camera application, and thus realize the quick sharing of the photographed file.

[0109] In the embodiment of the present application, after the step of displaying the fourth interface, the file sharing method specifically further includes S118-S124 as follows:

[0110] S118: receiving a fifth input of the user on the fourth interface.

[0111] The fifth input specifically can be a touch input, a mouse input, a keyboard input, etc. of the user on the fourth interface. The specific form of the fifth input can be set by the person skilled in the art according to the actual situation, and is not specifically limited here.

[0112] S120: adding a new file feature in the feature list in response to the fifth input.

[0113] The fifth input is used to add a new file feature in the feature list.

[0114] Specifically, when the user classifies the existing file in the electronic device, if none of the existing file features in the feature list meets the file feature of the selected type of file by the user, the user can add a new file feature in the feature list through the fifth input on the fourth interface, and determine the new file feature as the file feature of the selected type of file by the user.

[0115] S122: receiving a sixth input of the user on a second file feature in the at least one file feature.

[0116] The second file feature is any file feature in the at least one file feature.

[0117] Further, the sixth input specifically can be a touch input, a mouse input, a keyboard input, etc. of the user on any file feature in the feature list. The specific form of the sixth input can be set by the person skilled in the art according to the actual situation, and is not specifically limited here.

[0118] S124: In response to the sixth input, remove the second file feature from the feature list.

[0119] Specifically, when the electronic device displays the aforementioned feature list, the user can delete a file feature from the feature list by entering the sixth input for any file feature in the feature list.

[0120] For example, such as Figure 10 As shown, the fourth interface 246 of the electronic device includes a fourth control 252, which is used to create new file features. The electronic device receives and responds to user click input on the fourth control 252, such as... Figure 11 As shown, a third window 254 is displayed. The user enters the feature name "human image" in the third window 254 and then clicks the "OK" control. The electronic device responds to this operation as follows: Figure 12 As shown, a third file feature 264 named "Portrait" is added to the feature list 248 in the fourth interface 246.

[0121] Furthermore, such as Figure 10 As shown, the fourth interface 246 also includes a "delete" control. After selecting a file feature such as "feature 1", the user can delete "feature 1" from the feature list 248 by clicking the "delete" control.

[0122] In the embodiments provided in this application, after displaying the fourth interface, the electronic device can also receive and respond to a fifth input from the user to the fourth interface, adding a new file feature to the feature list of the fourth interface. The electronic device can also receive and respond to a sixth input from the user to any file feature in the feature list, i.e., a second file feature, deleting that second file feature from the feature list. In this way, the user can edit the file features in the feature list through touch input on the fourth interface, increasing the diversity of the dynamic association established between the first object and the camera application, and ensuring the accuracy of file sharing.

[0123] The file sharing method provided in the first aspect of this application can be executed by a file sharing device. This application uses a file sharing device executing the above-described file sharing method as an example to illustrate the file sharing device provided in the second aspect of this application.

[0124] like Figure 13 As shown, this application embodiment provides a file sharing device 1300, which may include the receiving unit 1302, the shooting unit 1304, the display unit 1306 and the processing unit 1308 described below.

[0125] The receiving unit 1302 is used to receive the user's first input to the shooting preview interface;

[0126] The photographing unit 1304 is configured to photograph a first file in response to the first input;

[0127] The display unit 1306 is configured to display the sharing control in the photographing preview interface.

[0128] The receiving unit 1302 is further configured to receive a second input of the sharing control by the user.

[0129] The processing unit 1308 is configured to send the first file to the first object in response to the second input.

[0130] The first file includes at least one of an image and a video, and the first object has an association relationship with a file feature of the first file.

[0131] According to the file sharing apparatus provided in the embodiments of the present application, when the user photographs an image or a video file (i.e., a first file) by performing a first input on a photographing preview interface of an electronic device, a sharing control is displayed in the photographing preview interface. On this basis, the user can directly send the photographed first file to a first object having an association relationship with a file feature of the first file by performing a simple input (i.e., a second input) on the sharing control. In this way, by establishing an association relationship between the first object and the file feature of the first file, a dynamic association relationship between the first object and the first file is realized, so that the user can quickly share the photographed first file to the first object having a dynamic association relationship with the first file by performing a simple input on the photographing preview interface, and the operation steps required by the user when sharing the file are reduced, thereby improving the speed of sharing the file by the user.

[0132] In the embodiments of the present application, the second input includes a first operation and a second operation, and the display unit 1306 is further configured to display an allow sub-control in response to the first operation of the sharing control by the user. The processing unit 1308 is specifically configured to share the first file to the first object in response to the second operation of the allow sub-control by the user.

[0133] The above embodiments provided in the present application, the second input includes the first operation and the second operation. On this basis, the electronic device displays the permission sub-control in response to the first operation of the user on the sharing control, and further, the electronic device shares the first file to the first object in response to the second operation of the user on the permission sub-control. In this way, on the one hand, the user can quickly share the first file to the first object associated with the file feature of the first file according to the file feature of the first file to be shared through simple input on the permission sub-control, reducing the operation steps required by the user when sharing the file, thereby improving the speed of the user sharing the file. On the other hand, the user will share the first file to the first object after operating the sharing control and then operating the permission sub-control, avoiding the user from sending the first file when the sharing control is mistakenly touched, and reducing the user's misoperation.

[0134] In the embodiments of the present application, before receiving the second input of the user on the sharing control, the receiving unit 1302 is further configured to receive a third input of the user; and the processing unit 1308 is further configured to: in response to the third input, establish an association relationship between the first type of file and the first object, and the file feature of the first type of file includes the file feature of the first file.

[0135] The above embodiments provided in the present application, before receiving the second input of the user on the sharing control, the electronic device will also receive a third input of the user, and the electronic device establishes an association relationship between the first type of file and the first object in response to the third input, wherein the file feature of the first type of file includes the file feature of the first file. In this way, before sharing the file, the association relationship between the first object and the first type of file is established, realizing the dynamic association relationship between the first object and the camera application, so that the electronic device can directly share the first file to the first object associated with the file feature according to the above dynamic association relationship when sharing the first file subsequently, reducing the operation steps required by the user when sharing the file, thereby improving the speed of the user sharing the file.

[0136] In the embodiments of the present application, the third input includes a third operation, a fourth operation and a fifth operation, the display unit 1306 is further configured to: display a first interface in response to the third operation of the user on the first application icon, the first interface is an interface of an application corresponding to the first application icon, and the first interface includes at least one object identifier; display a second interface in response to the fourth operation of the user on a first object identifier in the at least one object identifier, the second interface includes at least one shooting scene, and each shooting scene is used to indicate a type of file, and the first object identifier is an identifier corresponding to the first object; and the processing unit 1308 is specifically configured to: establish an association relationship between the first object and the first type of file in response to the fifth operation of the user on a first shooting scene in the at least one shooting scene, and the first shooting scene is used to indicate the first type of file.

[0137] In the above embodiments provided by the present application, the third input includes a third operation, a fourth operation, and a fifth operation. In this way, the electronic device displays the first interface including at least one object identifier in response to the third operation of the first application icon by the user. Further, the electronic device displays the second interface including at least one shooting scene in response to the fourth operation of the first object identifier corresponding to the first object by the user. In this way, the electronic device establishes the association between the first object and the first type of file in response to the fifth operation of the first shooting scene for indicating the first type of file by the user. In this way, before sharing the file, the user establishes the association between the first object and the first type of file in the application corresponding to the first application icon, so as to establish the association between the first object and the file feature of the first type of file, thereby realizing the dynamic association between the first object and the camera application, so that the electronic device can share the first file obtained by shooting to the first object according to the dynamic association, thereby reducing the operation steps of the user for sharing the first file.

[0138] In the embodiments of the present application, before the association between the first type of file and the first object is established, the receiving unit 1302 is further configured to receive a fourth input of the user, and the processing unit 1308 is further configured to determine the first type of file in response to the fourth input.

[0139] In the above embodiments provided by the present application, before the association between the first type of file and the first object is established, the electronic device further receives and responds to the fourth input of the user to determine the first type of file. In this way, before sharing the file, the electronic device can classify the existing files according to the input of the user, so as to determine the first type of file, so that the association between the first object and the first type of file is established, the association between the first object and the file feature of the first type of file is established, thereby realizing the dynamic binding relationship between the first object and the camera application, and realizing the fast sharing of the first file based on the dynamic association.

[0140] In the embodiments of the present application, the fourth input includes a sixth operation and a seventh operation, and the display unit 1306 is further configured to display a third interface in response to the sixth operation of the user, and the third interface includes at least one candidate file, and the at least one candidate file includes the first type of file. The processing unit 1308 is specifically configured to determine the first type of file in response to the seventh operation of the first type of file in the at least one candidate file by the user.

[0141] In the above embodiments provided in the present application, the fourth input includes a sixth operation and a seventh operation. On this basis, the electronic device displays a third interface in response to the sixth operation of the user, the third interface including at least one to-be-selected file, and the at least one to-be-selected file including the first type of file. The electronic device further determines the first type of file in response to the seventh operation of the user on the first type of file in the at least one to-be-selected file. In this way, before sharing the file, the electronic device classifies the existing file according to the input of the user to determine the first type of file, so as to subsequently establish the association relationship between the first object and the first type of file, realize the dynamic binding relationship between each first object and the camera application, and thus realize the quick sharing of the photographed file.

[0142] In the embodiments of the present application, after displaying the fourth interface, the receiving unit 1302 is further configured to receive a fifth input of the user on the fourth interface; the processing unit 1308 is further configured to add a new file feature in the feature list in response to the fifth input; and the receiving unit 1302 is further configured to receive a sixth input of the user on a second file feature in the at least one file feature, the second file feature being any file feature in the at least one file feature; and the processing unit 1308 is further configured to delete the second file feature from the feature list in response to the sixth input.

[0143] In the above embodiments provided in the present application, after displaying the fourth interface, the electronic device can further receive and respond to a fifth input of the user on the fourth interface to add a new file feature in the feature list of the fourth interface. The electronic device can further receive and respond to a sixth input of the user on any one file feature, i.e., a second file feature, in the feature list to delete the second file feature from the feature list. In this way, the user can edit the file features in the feature list through the input on the fourth interface, to increase the diversity of the dynamic association relationship establishment between the first object and the camera application, and ensure the accuracy of the file sharing.

[0144] The file sharing apparatus 1300 in the embodiments of the present application can be an electronic device, or a component in an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or other devices than a terminal. For example, the electronic device can be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a Mobile Internet Device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The electronic device can also be a server, a Network Attached Storage (NAS), a personal computer (PC), a television (TV), a cash register, or a self-service machine, etc. The embodiments of the present application are not limited in this regard.

[0145] The file sharing apparatus 1300 in the embodiments of the present application can be an apparatus with an operating system. The operating system can be an Android operating system, an iOS operating system, or other possible operating systems. The embodiments of the present application are not limited in this regard.

[0146] The file sharing apparatus 1300 provided by the second aspect of the embodiments of the present application can implement the method embodiments of the above-mentioned first aspect. Figure 1 The processes implemented by the method embodiments are described above, and thus will not be repeated here.

[0147] Optionally, as shown in Figure 14 The embodiments of the present application also provide an electronic device 1400, which includes a processor 1402 and a memory 1404. The memory 1404 stores programs or instructions executable by the processor 1402. When the programs or instructions are executed by the processor 1402, the programs or instructions implement the steps of the file sharing method embodiments of the above-mentioned first aspect, and achieve the same technical effects. The processes implemented by the method embodiments are described above, and thus will not be repeated here.

[0148] It should be noted that the electronic device in the embodiments of the present application includes the mobile electronic device and the non-mobile electronic device described above.

[0149] Figure 15 A hardware structure of an electronic device is shown in FIG. 13.

[0150] The electronic device 1500 includes, but is not limited to, a radio frequency unit 1501, a network module 1502, an audio output unit 1503, an input unit 1504, a sensor 1505, a display unit 1506, a user input unit 1507, an interface unit 1508, a memory 1509, and a processor 1510, etc.

[0151] Those skilled in the art can understand that the electronic device 1500 can further include a power supply (such as a battery) for supplying power to each component, and the power supply can be logically connected to the processor 1510 through a power management system, so as to realize the functions of managing charging, discharging, and power consumption management through the power management system. Figure 15 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and the electronic device can include more or fewer components than the figure, or combine certain components, or different component arrangements, which are not described here.

[0152] The electronic device 1500 of the embodiments of the present application can be used to implement each step of the above-mentioned first aspect file sharing method embodiment.

[0153] The user input unit 1507 is configured to receive a first input of a user on the shooting preview interface.

[0154] The processor 1510 is configured to, in response to the first input, shoot to obtain a first file.

[0155] The display unit 1506 is configured to display a sharing control in the shooting preview interface.

[0156] The user input unit 1507 is further configured to receive a second input of a user on the sharing control.

[0157] The processor 1510 is further configured to, in response to the second input, send the first file to a first object.

[0158] The first file includes at least one of the following: an image, a video; the first object has an association relationship with a file feature of the first file.

[0159] In the embodiments of the present application, when a user takes a picture or a video file, i.e., a first file, through a first input to a shooting preview interface of an electronic device, a sharing control is displayed in the shooting preview interface. On this basis, the user can directly send the first file obtained by shooting to a first object having an associated relationship with a file feature of the first file through a simple input, i.e., a second input, to the sharing control. In this way, by establishing an associated relationship between the first object and the file feature of the first file, a dynamic association between the first object and the first file is realized, so that the user can quickly share the first file obtained by shooting to the first object having a dynamic associated relationship with the first file through a simple input to the shooting preview interface, thereby reducing the operation steps required by the user when sharing a file and improving the speed of sharing a file by the user.

[0160] Optionally, the second input includes a first operation and a second operation, and the display unit 1506 is configured to display an allow sub-control in response to the first operation of the user to the sharing control, and the processor 1510 is specifically configured to share the first file to the first object in response to the second operation of the user to the allow sub-control.

[0161] The above embodiments provided in the present application, the second input includes a first operation and a second operation. On this basis, the electronic device displays an allow sub-control in response to the first operation of the user to the sharing control, and further, the electronic device shares the first file to the first object in response to the second operation of the user to the allow sub-control. In this way, on the one hand, the user can quickly share the first file to the first object having an associated relationship with the file feature of the first file according to the file feature of the first file to be shared through a simple input to the allow sub-control, thereby reducing the operation steps required by the user when sharing a file and improving the speed of sharing a file by the user; on the other hand, the user will share the first file to the first object only after operating the allow sub-control after operating the sharing control, thereby avoiding the first file being sent by the user when the sharing control is mistakenly touched, and reducing the user's misoperation.

[0162] Optionally, before receiving the second input of the user to the sharing control, the user input unit 1507 is further configured to receive a third input of the user, and the processor 1510 is further configured to establish an associated relationship between the first type of file and the first object in response to the third input, and the file feature of the first type of file includes the file feature of the first file.

[0163] The above-mentioned embodiments provided in this application, before receiving the second input of the user on the sharing control, the electronic device further receives a third input of the user, and the electronic device establishes an association relationship between the first type of file and the first object in response to the third input, wherein the file features of the first type of file include the file features of the first file. In this way, before sharing the file, by establishing the association relationship between the first object and the first type of file, the dynamic association relationship between the first object and the camera application is realized, so that when the first file is shared subsequently, the electronic device can share the first file directly to the first object associated with the file features according to the above-mentioned dynamic association relationship, reducing the operation steps required by the user when sharing the file, thereby improving the speed of the user sharing the file.

[0164] Optionally, the third input includes a third operation, a fourth operation and a fifth operation, and the display unit 1506 is further configured to: display a first interface in response to the third operation of the user on the first application icon, the first interface being an interface of an application corresponding to the first application icon, and the first interface including at least one object identifier; display a second interface in response to the fourth operation of the user on a first object identifier in the at least one object identifier, the second interface including at least one shooting scene, and the first object identifier being an identifier corresponding to the first object; and the processor 1510 is specifically configured to: establish an association relationship between the first object and the first type of file in response to the fifth operation of the user on a first shooting scene in the at least one shooting scene, the first shooting scene being used to indicate the first type of file.

[0165] The above-mentioned embodiments provided in this application, the third input includes a third operation, a fourth operation and a fifth operation. On this basis, the electronic device displays a first interface including at least one object identifier in response to the third operation of the user on the first application icon. Further, the electronic device displays a second interface including at least one shooting scene in response to the fourth operation of the user on a first object identifier corresponding to the first object. On this basis, the electronic device receives and responds to the fifth operation of the user on a first shooting scene used to indicate the first type of file, and establishes an association relationship between the first object and the first type of file. In this way, before sharing the file, the user establishes the association relationship between the first object and the first type of file in the application corresponding to the first application icon through the input of the first application icon, to establish the association relationship between the first object and the file features of the first type of file, thereby realizing the dynamic association relationship between the first object and the camera application, so that the electronic device can share the first file obtained by shooting to the first object quickly according to the dynamic association relationship, thereby reducing the operation steps of the user sharing the first file.

[0166] Optionally, before the association between the first type of file and the first object is established, the user input unit 1507 is further configured to receive a fourth input of the user; and the processor 1510 is further configured to determine the first type of file in response to the fourth input.

[0167] The above embodiments provided in this application, before the association between the first type of file and the first object is established, the electronic device further receives and responds to the fourth input of the user to determine the first type of file. In this way, before the file is shared, the electronic device can classify the existing files according to the input of the user to determine the first type of file, so as to subsequently establish the association between the first object and the file feature of the first type of file by establishing the association between the first object and the first type of file, thereby realizing the dynamic binding relationship between the first object and the camera application, and realizing the quick sharing of the first file based on the dynamic association relationship.

[0168] Optionally, the fourth input includes a sixth operation and a seventh operation, and the display unit 1506 is further configured to display a third interface in response to the sixth operation of the user, the third interface including at least one candidate file, and the at least one candidate file including the first type of file; and the processor 1510 is specifically configured to determine the first type of file in response to the seventh operation of the user on the first type of file in the at least one candidate file.

[0169] The above embodiments provided in this application, the fourth input includes a sixth operation and a seventh operation. On this basis, the electronic device displays a third interface in response to the sixth operation of the user, the third interface including at least one candidate file, and the at least one candidate file including the first type of file. The electronic device further determines the first type of file in response to the seventh operation of the user on the first type of file in the at least one candidate file. In this way, before the file is shared, the electronic device classifies the existing files according to the input of the user to determine the first type of file, so as to subsequently establish the dynamic binding relationship between each first object and the camera application by establishing the association between the first object and the first type of file, thereby realizing the quick sharing of the photographed file.

[0170] Optionally, after the fourth interface is displayed, the user input unit 1507 is further configured to receive a fifth input of the user on the fourth interface; the processor 1510 is further configured to add a new file feature to the feature list in response to the fifth input; the user input unit 1507 is further configured to receive a sixth input of the user on a second file feature in the at least one file feature, the second file feature being any file feature in the at least one file feature; and the processor 1510 is further configured to delete the second file feature from the feature list in response to the sixth input.

[0171] In the above-mentioned embodiments provided by the present application, after the fourth interface is displayed, the electronic device can further receive and respond to a fifth input of the user on the fourth interface to add a new file feature in the feature list of the fourth interface. The electronic device can further receive and respond to a sixth input of the user on any one file feature, i.e., a second file feature, in the feature list to delete the second file feature from the feature list. In this way, the user can edit the file features in the feature list through the input on the fourth interface, so as to increase the diversity of the dynamic association relationship between the first object and the camera application, and ensure the accuracy of file sharing.

[0172] It should be understood that in the embodiments of the present application, the input unit 1504 can include a graphics processor (GPU) 15041 and a microphone 15042. The graphics processor 15041 processes image data of a still picture or a video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 1506 can include a display panel 15061, which can be configured in the form of a liquid crystal display, an organic light-emitting diode, etc. The user input unit 1507 includes at least one of a touch panel 15071 and other input devices 15072. The touch panel 15071 is also called a touch screen. The touch panel 15071 can include two parts of a touch detection device and a touch controller. The other input devices 15072 can include, but are not limited to, a physical keyboard, function keys (such as volume control keys, on-off keys, etc.), a trackball, a mouse, a joystick, and the like, which will not be described here.

[0173] The memory 1509 can be used to store software programs and various data. The memory 1509 can mainly include a first storage area storing programs or instructions and a second storage area storing data, wherein the first storage area can store an operating system, application programs or instructions required by at least one function (such as a sound playing function, an image playing function, etc.), etc. In addition, the memory 1509 can include a volatile memory or a non-volatile memory, or the memory 1509 can include both volatile and non-volatile memories. The non-volatile memory can be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically EPROM (EEPROM), or a flash memory. The volatile memory can be a Random Access Memory (RAM), a Static RAM (SRAM), a Dynamic RAM (DRAM), a Synchronous DRAM (SDRAM), a Double Data Rate SDRAM (DDR SDRAM), an Enhanced SDRAM (ESDRAM), a Synch link DRAM (SLDRAM), and a Direct Rambus RAM (DRRAM). The memory 1509 in the embodiments of the present application includes but is not limited to these and any other suitable types of memories.

[0174] The processor 1510 can include one or more processors 1510; optionally, the processor 1510 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and an application program, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It can be understood that the above-mentioned modem processor can also not be integrated into the processor 1510.

[0175] The embodiments of the present application also provide a readable storage medium, and the readable storage medium stores programs or instructions, the programs or instructions are executed by a processor to realize the processes of the embodiments of the first aspect file sharing method, and the same technical effects can be achieved. To avoid repetition, details are not described here.

[0176] The processor is a processor in the electronic device in the above embodiments. The readable storage medium includes a computer readable storage medium, such as a computer readable only memory (ROM), a random access memory (RAM), a magnetic disc or an optical disc, etc.

[0177] The embodiment of the present application further provides a chip, which comprises a processor and a communication interface. The communication interface is coupled with the processor. The processor is used to run programs or instructions, to realize the processes of the file sharing method in the first aspect and achieve the same technical effects. To avoid repetition, details are not described herein.

[0178] It should be understood that the chip mentioned in the embodiment of the present application can also be referred to as a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0179] The embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to realize the processes of the file sharing method in the first aspect and achieve the same technical effects. To avoid repetition, details are not described herein.

[0180] It should be noted that, in this document, the term "comprising" or "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or further includes elements inherent to such process, method, article or device. Without more limitations, the element defined by the statement "comprising a" does not exclude the presence of another identical element in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the method and device in the embodiment of the present application is not limited to the order of performing the functions as shown or discussed, but can also include performing the functions in a substantially simultaneous manner or in a reverse order, for example, the described method can be performed in an order different from the described order, and various steps can be added, omitted or combined. In addition, the features described with reference to some examples can be combined in other examples.

[0181] Through the above description of the embodiments, those skilled in the art can clearly understand that the above-mentioned example methods can be realized by means of software and a necessary general hardware platform, and of course, can also be realized by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present application can be embodied in the form of a computer software product in essence or in the form of a part that contributes to the prior art, which is stored in a storage medium (such as a ROM / RAM, a magnetic disc, an optical disc), and includes a plurality of instructions for causing a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of various embodiments of the present application.

[0182] The embodiments of the present application are described above in combination with the drawings, but the present application is not limited to the above-mentioned specific embodiments, and the above-mentioned specific embodiments are only illustrative, not restrictive. Those skilled in the art can make many forms under the inspiration of the present application without departing from the scope of the present application and the scope protected by the claims.

Claims

1. A file sharing method characterized by, The method comprises: receiving a first input of a user to a shooting preview interface; in response to the first input, shooting a first file and displaying a sharing control in the shooting preview interface; receiving a second input of the user to the sharing control; in response to the second input, sending the first file to a first object; wherein the first file comprises at least one of an image and a video, and the first object has an association relationship with a file feature of the first file; the second input comprises a first operation and a second operation, and the response to the second input to send the first file to the first object comprises: in response to the first operation of the user to the sharing control, displaying an allow sub-control; in response to the second operation of the user to the allow sub-control, sharing the first file to the first object; before the receiving of the second input of the user to the sharing control, the method further comprises: receiving a third input of the user; in response to the third input, establishing an association relationship between a first type of file and the first object, and a file feature of the first type of file comprises a file feature of the first file; the third input comprises a third operation, a fourth operation and a fifth operation, and the response to the third input to establish the association relationship between the first type of file and the first object comprises: in response to the third operation of the user to a first application icon, displaying a first interface, the first interface being an interface of an application corresponding to the first application icon, and the first interface comprising at least one object identifier; in response to the fourth operation of the user to a first object identifier in the at least one object identifier, displaying a second interface, the second interface comprising at least one shooting scene, each shooting scene being used for indicating a type of file, and the first object identifier being an identifier corresponding to the first object; in response to the fifth operation of the user to a first shooting scene in the at least one shooting scene, establishing the association relationship between the first object and the first type of file, the first shooting scene being used for indicating the first type of file; the shooting scene comprises night scene, portrait, cat, dog, landscape and flower.

2. The file sharing method of claim 1, wherein, before the establishment of the association relationship between the first type of file and the first object, the method further comprises: receiving a fourth input of the user; in response to the fourth input, determining the first type of file.

3. The file sharing method of claim 2, wherein, the fourth input comprises a sixth operation and a seventh operation, and the response to the fourth input to determine the first type of file comprises: in response to the sixth operation of the user, displaying a third interface, the third interface comprising at least one candidate file, and the at least one candidate file comprising the first type of file; in response to the seventh operation of the user to the first type of file in the at least one candidate file, determining the first type of file.

4. A file sharing apparatus characterized by comprising: The file sharing device comprises: a receiving unit configured to receive a first input of a user to a shooting preview interface; a shooting unit configured to shoot a first file in response to the first input; a display unit configured to display a sharing control in the shooting preview interface; the receiving unit is further configured to receive a second input of the user to the sharing control; the receiving unit is further configured to receive a second input of the user to the sharing control. a processing unit, configured to send the first file to a first object in response to the second input; wherein the first file comprises at least one of an image and a video, and the first object has an association relationship with a file feature of the first file; the display unit is further configured to: in response to a first operation of the sharing control performed by the user, display an allow sub-control; the processing unit is specifically configured to: in response to a second operation of the allow sub-control performed by the user, share the first file with the first object; the receiving unit is further configured to receive a third input of the user; the processing unit is further configured to, in response to the third input, establish an association relationship between a first type of file and the first object, and a file feature of the first type of file comprises a file feature of the first file; the third input comprises a third operation, a fourth operation and a fifth operation, and the display unit is further configured to: in response to a third operation of a first application icon performed by the user, display a first interface, the first interface being an interface of an application corresponding to the first application icon, and the first interface comprises at least one object identifier; in response to a fourth operation of a first object identifier in the at least one object identifier performed by the user, display a second interface, the second interface comprising at least one shooting scene, each shooting scene being used for indicating a type of file, and the first object identifier being an identifier corresponding to the first object; 5. An electronic device, comprising: the processing unit is specifically further configured to:

6. A readable storage medium characterized by, in response to a fifth operation of a first shooting scene in the at least one shooting scene performed by the user, establish an association relationship between the first object and the first type of file, the first shooting scene being used for indicating the first type of file; the shooting scene comprises night scene, portrait, cat, dog, landscape and flower. a processor and a memory, the memory storing programs or instructions executable on the processor, the programs or instructions being executed by the processor to implement the steps of the file sharing method according to any one of claims 1 to 3. a readable storage medium, the readable storage medium storing programs or instructions, the programs or instructions being executed by a processor to implement the steps of the file sharing method according to any one of claims 1 to 3.

Citation Information

Patent Citations

  • Multimedia file sharing method and device, terminal equipment and storage medium

    CN114124879A

  • Multimedia file sharing method and terminal device

    WO2018094911A1