File sharing method and electronic device
By displaying the sharing object and file identification, and responding to user input of mobile sharing objects and determining the file order, the problem of inflexible file sharing interaction in the prior art is solved, and flexible sharing and interactive operation of files are achieved.
Patent Information
- Application Number
- CN202210047598.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-17
- Publication Date
- 2025-02-18
- Estimated Expiration
- 2042-01-17
AI Technical Summary
In the prior art, the interactive operation mode of file sharing is relatively single and not flexible enough.
By displaying m sharing object identifiers and n file identifiers, receiving and responding to user input, moving the sharing object identifiers and determining the file order based on the input trajectory, flexible sharing of files is achieved.
It enriches the interactive operation methods of file sharing, allows users to flexibly and conveniently share files in different orders, and improves the interactive operation flexibility of sharing files.
Smart Images

Figure CN114416681B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of human-computer interaction, and specifically relates to a file sharing method and an electronic device. Background Art
[0002] Currently, when sharing files with contacts or social platforms, the user usually opens a file collection in a dialog box with the contact or an editing page on the social platform, selects multiple files in the file collection, and then clicks Confirm to share. This interactive operation method for sharing files is relatively simple and not flexible enough. Summary of the invention
[0003] The purpose of the embodiments of the present application is to provide a file sharing method and an electronic device, which can solve the problem that the interactive operation of file sharing in the related art is not flexible enough.
[0004] In a first aspect, an embodiment of the present application provides a file sharing method, the method comprising:
[0005] Display m shared object identifiers and n file identifiers;
[0006] receiving a first input of a first sharing object identifier among the m sharing object identifiers, where the first sharing object identifier is a sharing object identifier among the m sharing object identifiers;
[0007] In response to a first input, a first sharing object identifier is moved, and p file identifiers are determined based on an input trajectory of the first input;
[0008] Sending the p files corresponding to the p file identifiers to the first sharing object corresponding to the first sharing object identifier in a first order, where the first order is determined based on the input trajectory of the first input;
[0009] Wherein, m, n, and p are all positive integers greater than or equal to 2, and p≤n.
[0010] In a second aspect, an embodiment of the present application provides a file sharing device, the device comprising:
[0011] A first display unit, used to display m sharing object identifiers and n file identifiers;
[0012] A first receiving unit is configured to receive a first input of a first sharing object identifier among the m sharing object identifiers, where the first sharing object identifier is a sharing object identifier among the m sharing object identifiers;
[0013] a moving unit, configured to move the first sharing object identifier in response to the first input, and determine p file identifiers based on an input trajectory of the first input;
[0014] A first sending unit, configured to send the p files corresponding to the p file identifiers to the first sharing object corresponding to the first sharing object identifier in a first order, where the first order is determined based on an input trajectory of the first input;
[0015] Wherein, m, n, and p are all positive integers greater than or equal to 2, and p≤n.
[0016] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the file sharing method described in the first aspect.
[0017] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the file sharing method described in the first aspect are implemented.
[0018] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the file sharing method as described in the first aspect.
[0019] In an embodiment of the present application, by displaying m sharing object identifiers and n file identifiers, receiving a first input of a first sharing object identifier among the m sharing object identifiers, moving the first sharing object identifier in response to the first input, and determining p file identifiers based on an input trajectory of the first input, and then sending the p files corresponding to the p file identifiers to the first sharing object corresponding to the first sharing object identifier according to a first order determined based on the input trajectory of the first input, the interactive operation mode of sharing files can be enriched, files can be shared flexibly and conveniently in different orders, and the flexibility of the interactive operation of sharing files can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 is a flowchart of a file sharing method in one embodiment of the present application;
[0021] Figure 2 This is an interface diagram of a file sharing method in another embodiment of the present application. Figure 1 ;
[0022] Figure 3 This is an interface diagram of a file sharing method in another embodiment of the present application. Figure 2 ;
[0023] Figure 4 This is an interface diagram of a file sharing method in another embodiment of the present application. Figure 3 ;
[0024] Figure 5 This is an interface diagram of a file sharing method in another embodiment of the present application. Figure 4 ;
[0025] Figure 6 This is an interface diagram of a file sharing method in another embodiment of the present application. Figure 5 ;
[0026] Figure 7 is a schematic block diagram of the structure of a file sharing device in one embodiment of the present application;
[0027] Figure 8 is a schematic block diagram of the structure of an electronic device in an embodiment of the present application;
[0028] Fig. 9 It is a schematic block diagram of the structure of an electronic device in another embodiment of the present application. DETAILED DESCRIPTION
[0029] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0030] 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 interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0031] The file sharing method provided in the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0032] The file sharing method provided in the present application can be applied to mobile electronic devices or non-mobile electronic devices configured or connected to a display screen. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (PDA), etc., and the non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), etc. It will not be repeated here. In the embodiment of the present application, the application scenario applied to a mobile phone is exemplified, but it is not limited to the application to a mobile phone.
[0033] The following is an explanation of a file sharing method provided by an embodiment of the present application. Figure 1 As shown, the method may include the following steps:
[0034] Step 101, display m sharing object identifiers and n file identifiers.
[0035] m, n, and p are all positive integers greater than or equal to 2.
[0036] Each sharing object identifier is used to represent a sharing object. Sharing objects include a single contact or a contact group that can communicate through the network, and may also include a social platform, etc. A contact may be an instant messaging application contact, an email contact, etc. The social platform as a sharing object may refer to Moments, Weibo, etc.
[0037] Each file identifier is used to represent a file or a group of files. Files can include images, videos, audio, etc. An example is posting multiple images in a circle of friends or a social platform, arranged in a multi-grid format.
[0038] like Figure 2 The figure shows an example interface diagram, which includes three contact identifiers 201-203 (shared object identifiers) and a plurality of picture identifiers 211-219 (file identifiers).
[0039] The above examples are only for illustrative purposes and are not intended to limit the present application.
[0040] Step 102 : receiving a first input of a first sharing object identifier among the m sharing object identifiers.
[0041] The first input may be an input of dragging / moving the first sharing object. The first sharing object identifier is a sharing object identifier among the m sharing object identifiers. The first sharing object identifier is used to represent the first sharing object.
[0042] It should be noted that the first sharing object identifier is the sharing object identifier of the first input operation, and the first sharing object identifier may include one or more analysis object identifiers. Accordingly, the first sharing object may include one or more sharing objects. The first sharing object identifier is selected by the user. For example, the user can draw a circle on the touch screen of the mobile phone, and select any one or more sharing object identifiers in the circle as the first sharing object identifier selected by the user.
[0043] The first input of dragging / moving can be an input of clicking on the selected first shared object or first file and dragging without releasing. For example, the click can be performed by a mouse or by touching the touch screen with a finger, and the first input stops when released.
[0044] For example, Figure 2 As shown, an exemplary dragging path (ie, input track) is a dragging path 220 , and the user can click on the contact identifier 201 (ie, the sharing object identifier) on the screen of the mobile phone and slide along the dragging path 220 without lifting the finger.
[0045] Step 103, in response to the first input, move the first sharing object identifier, and determine p file identifiers based on the input trajectory of the first input:
[0046] Specifically, determining the p file identifiers based on the input trajectory of the first input may be determining the file identifiers passed on the path of the first input as the p file identifiers, where p is a positive integer greater than or equal to 2, and p≤n.
[0047] For example, Figure 2 As shown, after the user drags the contact identifier 201 to slide along the dragging path 220 , the file identifiers passed by include the image identifier 211 , the image identifier 214 , the image identifier 215 , the image identifier 216 , and the image identifier 219 .
[0048] In an optional implementation, when the input track of the first input passes through any file identifier, the duration of the first input staying on the corresponding file identifier can be detected, and when it is determined that the duration of the stay reaches a preset duration, the corresponding file identifier is determined to be one of the p file identifiers. In this way, it can be avoided that when the user inputs the first input, the user accidentally slides to a file identifier that he does not want to select during the dragging process, thereby improving the accuracy of the operation of selecting the file identifier.
[0049] Step 104 : sending the p files corresponding to the p file identifiers to the first sharing object corresponding to the first sharing object identifier in a first order.
[0050] The first order is determined based on an input trajectory of the first input.
[0051] An optional implementation is that the first order may be the time order of the file identifiers passed by the input track from first to last. Figure 2 As shown, when the user drags the contact identifier 201 to slide along the dragging path 220, the order of the file identifiers (first order) is: image identifier 211, image identifier 214, image identifier 215, image identifier 216, image identifier 219. Then, when sending to the first sharing object, the image corresponding to each image identifier is sent in the above order.
[0052] Sending (or sharing) the file to a sharing object may include sending it to a contact, a contact group, or publishing it to a social platform. The timing of sending may be after the first input is released. Alternatively, the timing of sending may be independent of whether the first input is released, and the first input is sent after each file identifier is passed, without waiting for the first input to be released.
[0053] In one example, the first order can also be used as the display order of p files displayed by the first sharing object. For example, if the first sharing object is a circle of friends, a social platform, etc., then after the user sends p files in sequence, the order in which the files are displayed on the circle of friends / social platform is also the first order. For example, when sending images, they can be arranged and displayed in the order of a nine-square grid from left to right and then from top to bottom. In this way, the user can flexibly edit the display order of the sent files through the first input, which improves the flexibility of operation.
[0054] It should be noted that, in the case where there are multiple first sharing objects, they can be sent according to the specified order rules. For example, if there is an order of selection when selecting the first sharing object identifier, then p files can be sent separately in the order of selection. Alternatively, there can be no order and they can be sent randomly. The embodiments of the present application do not limit this.
[0055] In an embodiment of the present application, by displaying m sharing object identifiers and n file identifiers, receiving a first input of a first sharing object identifier among the m sharing object identifiers, moving the first sharing object identifier in response to the first input, and determining p file identifiers based on an input trajectory of the first input, and then sending the p files corresponding to the p file identifiers to the first sharing object corresponding to the first sharing object identifier according to a first order determined based on the input trajectory of the first input, the interactive operation mode of sharing files can be enriched, files can be shared flexibly and conveniently in different orders, and the flexibility of the interactive operation of sharing files can be improved.
[0056] In an optional implementation, after the p files corresponding to the p file identifiers are sent to the first sharing object corresponding to the first sharing object identifier in a first order, the files corresponding to the n file identifiers may also be updated, that is, the file corresponding to each file identifier may be changed through the above update. Optionally, the update method may be automatic or manual, that is, the user may manually select the file corresponding to each file identifier.
[0057] In this way, after updating the files corresponding to the n file identifiers, if a second input for the first sharing object identifier and the second sharing object identifier is received, the updated files corresponding to the p file identifiers can be sent to the second sharing object corresponding to the second sharing object identifier in the first order in response to the second input. That is, after updating the files corresponding to the file identifiers, the updated files corresponding to the p file identifiers specified by the previous first input can be sent to the second sharing object in the first order through the second input.
[0058] Optionally, the second input is to drag the first object identifier onto the second object identifier, and the input order of the first input corresponding to the first object can be directly obtained, so as to obtain a new file to share with the second object according to the order.
[0059] For example, the second input may be dragging the first sharing object identifier to the second sharing object identifier, or dragging the second sharing object identifier to the first sharing object identifier, or after selecting the first sharing object identifier and the second sharing object identifier, performing a selection operation on a corresponding function in the menu option. The above is only used to exemplify the second input and is not intended to constitute a limitation on the embodiments of the present application.
[0060] Through the above optional implementation, after updating the file, if the user still wants to share the files corresponding to the same file identifier in the same order, the previous first input can be used to determine the first order and p file identifiers, without the user having to perform operations similar to the first input again, thereby improving the flexibility of interactive operations.
[0061] Optionally, the m sharing object identifiers may be displayed in a suspended manner. Specifically, before displaying the m sharing object identifiers, by receiving a third input for selecting m sharing objects, m sharing object identifiers corresponding to the m sharing objects may be generated in response to the third input, and then the m sharing object identifiers may be displayed in a suspended manner.
[0062] Exemplarily, the third input may be dragging a shared object identifier, for example, Figure 3 As shown, the user clicks the icon of contact A in the contact list, and then drags it to a blank position without releasing it, thereby generating a suspended contact A logo (shared object logo).
[0063] The floating icon can be displayed in a floating state at the top layer of the interface. In this way, when the interface includes many file identifiers and the screen cannot fully display the file identifiers, even if the user views the file identifier by sliding, etc., the shared object identifier can always be displayed in a floating state at the top layer of the interface, making it easier for users to operate.
[0064] In one example, the first order may be determined based on the order of file identifiers that the input trajectory of the first input passes through, and in another optional implementation, the first order may be determined based on the values of the file identifiers that the first input passes through.
[0065] Specifically, the n file identifiers may be numerical values of different sizes, for example, the file identifiers themselves are marked with numerical values of different sizes, or the file identifiers correspond to different numerical values through other implementations.
[0066] In this way, before sending the p files corresponding to the p file identifiers to the first sharing object corresponding to the first sharing object identifier in the first order, the files on the route of the input trajectory can be sorted according to the numerical values of the corresponding file identifiers to obtain the first order. Through the above optional implementation method of determining the first order, the operation method is enriched and the flexibility of the interactive operation is improved.
[0067] In an example, Figure 4 As shown, in addition to displaying n file identifiers, n indexes can also be displayed, and the n indexes correspond to the n file identifiers one by one. Each index is marked with a value of different size, and the n file identifiers correspond to the value marked by the corresponding index. Figure 4As shown, indexes 401-409 correspond to image identifiers 211-219 one by one, respectively, and image identifiers 211-219 correspond to values 1-9, respectively. In this way, when determining the first order, the first order can be determined according to the numerical values of the indexes corresponding to the file identifiers that the input trajectory of the first input passes through, that is, in this embodiment, the first order is not determined according to the order of the file identifiers that pass through the trajectory of the first input, but specific p file identifiers are determined according to the input trajectory, and then the first order is determined according to the numerical values corresponding to the file identifiers.
[0068] In one example, before displaying the n file identifiers, the first area and the second area may also be displayed.
[0069] Among them, the first area is used to place the file identifier to be shared, the first area includes q first display frames, q is the maximum number of files allowed to be shared simultaneously, each first display frame is associated with a preset order, each first display frame is used to place a file identifier, and q is a positive integer greater than or equal to 1.
[0070] The second area is used to place the alternative file identification of the first area. The second area includes at least one second display frame, and each second display frame is used to place a file identification.
[0071] For example, Figure 5 As shown, the interface displays a first area 501 and a second area 502 , wherein the first area includes 9 display frames and the second area includes 15 display frames (the number is for example only).
[0072] In this way, after the first area and the second area are displayed, a fourth input for selecting n files from the plurality of files may be received, and in response to the fourth input, n file identifiers corresponding to the n files may be generated. Furthermore, the n file identifiers may be displayed in the first area and / or the second area. Exemplarily, the user may click on the first area or the second area to indicate which area the selected n files are to be placed in.
[0073] Optionally, after the n file identifiers are displayed in the first area and / or the second area, the first order of the first area may be adjusted in at least one of the following ways:
[0074] Mode 1: In combination with any second display frame, the file identifiers in the two first display frames in the first area are exchanged. That is, the second area can be used as a transition area for adjusting the order of files in the first area. In this way, the flexibility of users in adjusting the order of files can be improved.
[0075] Mode 2: q indexes are displayed, each index is used to represent a corresponding order, and the q indexes are associated with each first display frame of the first area, so that the order corresponding to each index is designated as the order of the associated first display frame.
[0076] For example, Figure 5 As shown, multiple indexes 504 are displayed, each index has a different value, and the value size indicates the sharing order. In this way, dragging an index to a display box in the first area can identify the sharing order of the files in the display box. Through method 2, users can flexibly adjust the sharing order of files.
[0077] In order to facilitate users to select video frames in a video for sharing, an example is further provided for the embodiment of the present application, such as Figure 6 As shown, you can long press a video to generate a video preview bar 601. You can drag a dividing line 602 on the video preview bar 601, swipe up with two fingers to select the time period in the middle of the dragged dividing line 602, and then capture the video frames therein. The captured video frames are displayed in the floating area 603, and one or more images are selected as part or all of the n files.
[0078] It should be noted that the file sharing method provided in the embodiment of the present application can be executed by a file sharing device or a control module in the file sharing device for executing the file sharing method. In the embodiment of the present application, the file sharing device provided in the embodiment of the present application is described by taking the file sharing method executed by the file sharing device as an example.
[0079] The following is a detailed description of the file sharing device provided by the embodiment of the present application through specific embodiments and application scenarios in conjunction with the accompanying drawings. For the contents not described in detail in the file sharing device provided by the embodiment of the present application, reference can be made to the file sharing method provided by the embodiment of the present application, which will not be repeated here.
[0080] An embodiment of the present application provides a file sharing device, such as Figure 7 As shown, the device includes a first display unit 701 , a first receiving unit 702 , a moving unit 703 and a first sending unit 704 .
[0081] The first display unit 701 is used to display m sharing object identifiers and n file identifiers;
[0082] A first receiving unit 702 is configured to receive a first input of a first sharing object identifier among the m sharing object identifiers, where the first sharing object identifier is one of the m sharing object identifiers;
[0083] A moving unit 703, configured to move the first sharing object identifier in response to the first input, and determine p file identifiers based on an input track of the first input;
[0084] A first sending unit 704 is configured to send the p files corresponding to the p file identifiers to the first sharing object corresponding to the first sharing object identifier in a first order, where the first order is determined based on an input trajectory of the first input;
[0085] Wherein, m, n, and p are all positive integers greater than or equal to 2, and p≤n.
[0086] Optionally, the first order may also be used as a display order for displaying p files to the first sharing object.
[0087] Optionally, the device may further include:
[0088] an updating unit, configured to update files corresponding to n file identifiers after sending the p files corresponding to the p file identifiers to the first sharing object corresponding to the first sharing object identifier in a first order;
[0089] A second receiving unit, configured to receive a second input of the first sharing object identifier and the second sharing object identifier;
[0090] The second sending unit is used to send the updated files corresponding to the p file identifiers to the second sharing object corresponding to the second sharing object identifier in a first order in response to the second input.
[0091] Optionally, the device may further include:
[0092] A third receiving unit, configured to receive a third input for selecting m sharing objects before displaying the m sharing object identifiers;
[0093] A first generating unit, configured to generate m sharing object identifiers corresponding to the m sharing objects in response to a third input;
[0094] The second display unit is used for floatingly displaying m sharing object identifiers.
[0095] Optionally, the n file identifiers are numerical values of different sizes. Accordingly, the device may further include:
[0096] The sorting unit is used to sort the files on the route of the input trajectory according to the numerical values of the corresponding file identifiers to obtain the first order before sending the p files corresponding to the p file identifiers to the first sharing object corresponding to the first sharing object identifier in the first order.
[0097] Optionally, the device may further include:
[0098] A third display unit is used to display a first area and a second area before displaying n file identifiers; wherein the first area is used to place the file identifier to be shared, the first area includes q first display frames, q is the maximum number of files allowed to be shared simultaneously, each first display frame is associated with a preset order, each first display frame is used to place a file identifier, q is a positive integer greater than or equal to 1; the second area is used to place alternative file identifiers of the first area, the second area includes at least one second display frame, and each second display frame is used to place a file identifier;
[0099] A fourth receiving unit, configured to receive a fourth input for selecting n files from a plurality of files;
[0100] A second generating unit, configured to generate n file identifiers corresponding to the n files in one-to-one correspondence in response to a fourth input;
[0101] The first display unit may include: displaying n file identifiers in the first area and / or the second area.
[0102] Optionally, the device may further include:
[0103] The adjusting unit is configured to, after displaying the n file identifiers in the first area and / or the second area, further adjust the first order of the first area by at least one of the following methods:
[0104] In combination with any second display frame, swapping the file identifiers in the two first display frames in the first area; or,
[0105] Q indexes are displayed, each index is used to represent a corresponding order, and the q indexes are associated with each first display frame of the first area to specify the order corresponding to each index as the order of the associated first display frame.
[0106] In an embodiment of the present application, by displaying m sharing object identifiers and n file identifiers, receiving a first input of a first sharing object identifier among the m sharing object identifiers, moving the first sharing object identifier in response to the first input, and determining p file identifiers based on an input trajectory of the first input, and then sending the p files corresponding to the p file identifiers to the first sharing object corresponding to the first sharing object identifier according to a first order determined based on the input trajectory of the first input, the interactive operation mode of sharing files can be enriched, files can be shared flexibly and conveniently in different orders, and the flexibility of the interactive operation of sharing files can be improved.
[0107] The file sharing device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0108] The file sharing device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0109] The file sharing device provided in the embodiment of the present application can achieve Figures 1 to 6 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0110] Alternatively, if Figure 8 As shown, an embodiment of the present application also provides an electronic device 900, including a processor 901, a memory 902, and a program or instruction stored in the memory 902 and executable on the processor 901. When the program or instruction is executed by the processor 901, each process of the above-mentioned file sharing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0111] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0112] Fig. 9 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0113] The electronic device 1000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010 and other components.
[0114] Those skilled in the art will appreciate that the electronic device 1000 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1010 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig. 9 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0115] The processor 1010 is used to perform the following steps:
[0116] Display m shared object identifiers and n file identifiers;
[0117] receiving a first input of a first sharing object identifier among the m sharing object identifiers, where the first sharing object identifier is one of the m sharing object identifiers;
[0118] In response to a first input, a first sharing object identifier is moved, and p file identifiers are determined based on an input trajectory of the first input;
[0119] Sending the p files corresponding to the p file identifiers to the first sharing object corresponding to the first sharing object identifier in a first order, where the first order is determined based on the input trajectory of the first input;
[0120] Wherein, m, n, and p are all positive integers greater than or equal to 2, and p≤n.
[0121] Optionally, the first order may be used as the display order of the p files displayed to the first sharing object.
[0122] Optionally, after executing the step of sending the p files corresponding to the p file identifiers to the first sharing object corresponding to the first sharing object identifier in the first order, the processor 1010 further includes executing the following steps:
[0123] Update the files corresponding to n file identifiers;
[0124] receiving a second input of the first sharing object identifier and the second sharing object identifier;
[0125] In response to the second input, the updated files corresponding to the p file identifiers are sent to the second sharing object corresponding to the second sharing object identifier in a first order.
[0126] Optionally, before the processor 1010 displays the m sharing object identifiers, it further includes executing the following steps:
[0127] Receiving a third input for selecting m sharing objects;
[0128] In response to the third input, generating m sharing object identifiers corresponding to the m sharing objects;
[0129] The m sharing object identifiers are displayed in a floating manner.
[0130] Optionally, the n file identifiers are numerical values of different sizes;
[0131] Before executing the step of sending the p files corresponding to the p file identifiers to the first sharing object corresponding to the first sharing object identifier in a first order, the processor 1010 further includes executing the following steps:
[0132] Sort the files on the route of the input trajectory according to the numerical values of the corresponding file identifiers to obtain the first order.
[0133] Optionally, before the processor 1010 displays n file identifiers, the processor 1010 further includes:
[0134] Displaying a first area and a second area; wherein the first area is used to place a file identifier to be shared, the first area includes q first display frames, q is the maximum number of files allowed to be shared simultaneously, each first display frame is associated with a preset order, each first display frame is used to place a file identifier, q is a positive integer greater than or equal to 1; the second area is used to place an alternative file identifier of the first area, the second area includes at least one second display frame, and each second display frame is used to place a file identifier;
[0135] receiving a fourth input for selecting n files from a plurality of files;
[0136] In response to the fourth input, generating n file identifiers corresponding to the n files one by one;
[0137] Displaying n file identifiers includes: displaying the n file identifiers in the first area and / or the second area.
[0138] Optionally, after the processor 1010 displays the n file identifiers in the first area and / or the second area, the processor 1010 further includes the following steps: adjusting the first order of the first area by at least one of the following methods:
[0139] In combination with any second display frame, swapping the file identifiers in the two first display frames in the first area; or,
[0140] Q indexes are displayed, each index is used to represent a corresponding order, and the q indexes are associated with each first display frame of the first area to specify the order corresponding to each index as the order of the associated first display frame.
[0141] In an embodiment of the present application, by displaying m sharing object identifiers and n file identifiers, receiving a first input of a first sharing object identifier among the m sharing object identifiers, moving the first sharing object identifier in response to the first input, and determining p file identifiers based on an input trajectory of the first input, and then sending the p files corresponding to the p file identifiers to the first sharing object corresponding to the first sharing object identifier according to a first order determined based on the input trajectory of the first input, the interactive operation mode of sharing files can be enriched, files can be shared flexibly and conveniently in different orders, and the flexibility of the interactive operation of sharing files can be improved.
[0142] It should be understood that in the embodiment of the present application, the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1006 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1007 includes a touch panel 1071 and other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include two parts: a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 1009 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 1010 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user pages and application programs, etc., and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor 1010.
[0143] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned file sharing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0144] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0145] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned file sharing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0146] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0147] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0148] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0149] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A file sharing method, characterized in that: The method comprises: Display m shared object identifiers and n file identifiers; receiving a first input of a first sharing object identifier among the m sharing object identifiers, where the first sharing object identifier is a sharing object identifier among the m sharing object identifiers; In response to the first input, the first sharing object identifier is moved, and p file identifiers are determined based on an input trajectory of the first input; sending the p files corresponding to the p file identifiers to the first sharing object corresponding to the first sharing object identifier in a first order, where the first order is determined based on an input trajectory of the first input; Wherein, m, n, and p are all positive integers greater than or equal to 2, and p≤n.
2. The method according to claim 1, characterized in that The first order is used as a display order for displaying the p files to the first sharing object.
3. The method according to claim 1, characterized in that: After sending the p files corresponding to the p file identifiers to the first sharing object corresponding to the first sharing object identifier in a first order, the method further includes: Update the files corresponding to the n file identifiers; receiving a second input of the first sharing object identifier and the second sharing object identifier; In response to the second input, the updated files corresponding to the p file identifiers are sent to the second sharing object corresponding to the second sharing object identifier in the first order.
4. The method according to claim 1, characterized in that: Before displaying the m sharing object identifiers, the method further includes: Receiving a third input for selecting m sharing objects; In response to the third input, generating the m sharing object identifiers corresponding to the m sharing objects; The m sharing object identifiers are displayed in a floating manner.
5. The method according to claim 1, characterized in that The n file identifiers are numerical values of different sizes; Before sending the p files corresponding to the p file identifiers to the first sharing object corresponding to the first sharing object identifier in a first order, the method further includes: The files on the route of the input trajectory are sorted according to the numerical values of the corresponding file identifiers to obtain the first order.
6. The method according to claim 1, characterized in that Before displaying n file identifiers, also include: Displaying a first area and a second area; wherein the first area is used to place the file identifier to be shared, the first area includes q first display frames, q is the maximum number of files allowed to be shared simultaneously, each of the first display frames is associated with a preset order, each of the first display frames is used to place a file identifier, q is a positive integer greater than or equal to 1; the second area is used to place the alternative file identifiers of the first area, the second area includes at least one second display frame, and each of the second display frames is used to place a file identifier; receiving a fourth input for selecting n files from a plurality of files; In response to the fourth input, generating the n file identifiers corresponding to the n files one by one; The displaying of the n file identifiers includes: displaying the n file identifiers in the first area or the second area.
7. The method according to claim 6, characterized in that After displaying the n file identifiers in the first area or the second area, the method further includes adjusting the first order of the first area in at least one of the following ways: In combination with any one of the second display frames, exchanging the file identifiers in the two first display frames in the first area; or, Q indexes are displayed, each index is used to represent a corresponding order, and the q indexes are associated with each of the first display frames of the first area to specify the order corresponding to each index as the order of the associated first display frame.
8. A file sharing device, characterized in that: The device comprises: A first display unit, used to display m sharing object identifiers and n file identifiers; A first receiving unit is configured to receive a first input of a first sharing object identifier among the m sharing object identifiers, where the first sharing object identifier is a sharing object identifier among the m sharing object identifiers; a moving unit, configured to move the first sharing object identifier in response to the first input, and determine p file identifiers based on an input trajectory of the first input; a first sending unit, configured to send the p files corresponding to the p file identifiers to the first sharing object corresponding to the first sharing object identifier in a first order, wherein the first order is determined based on an input trajectory of the first input; Wherein, m, n, and p are all positive integers greater than or equal to 2, and p≤n.
9. An electronic device, characterized in that: The method comprises a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the file sharing method according to any one of claims 1 to 7.
10. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the file sharing method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Method and apparatus for content sharing
CN106489126A
File sharing method, file sharing device and electronic equipment
CN112291758A