CN110798521B - File sharing method and device, electronic equipment and storage medium - Google Patents

File sharing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110798521B
CN110798521B CN201911037654.0A CN201911037654A CN110798521B CN 110798521 B CN110798521 B CN 110798521B CN 201911037654 A CN201911037654 A CN 201911037654A CN 110798521 B CN110798521 B CN 110798521B
Authority
CN
China
Prior art keywords
file
target
sharing
electronic equipment
interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911037654.0A
Other languages
Chinese (zh)
Other versions
CN110798521A (en
Inventor
张彩萍
林孟光
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201911037654.0A priority Critical patent/CN110798521B/en
Publication of CN110798521A publication Critical patent/CN110798521A/en
Application granted granted Critical
Publication of CN110798521B publication Critical patent/CN110798521B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a method and a device for sharing a file, electronic equipment and a storage medium. Based on the technical scheme provided by the invention, the operation of sharing the multimedia file by the user can be simplified, and the sharing efficiency of the multimedia file is improved.

Description

File sharing method and device, electronic equipment and storage medium
Technical Field
The invention belongs to the technical field of computers, and particularly relates to a method and a device for sharing files, electronic equipment and a storage medium.
Background
At present, when a user wants to share favorite files (such as pictures, videos and texts) to other people, complex operations are often performed, and the file sharing efficiency is low.
For example, a user wants to share a newly taken picture with others, and the user's operations generally include: opening an application program in the electronic equipment, entering a photo library of the electronic equipment from the application program, selecting photos to be shared in the photo library, then selecting objects to be shared in the application program, and sharing the selected photos to the selected objects through the application program.
For those skilled in the art, how to improve the scheme for sharing files, simplify the user operation, and improve the efficiency of sharing files is an urgent problem to be solved.
Disclosure of Invention
In view of the above, an object of the present invention is to provide a method, an apparatus, an electronic device and a storage medium for sharing a file, so as to simplify the operation of sharing a multimedia file by a user and improve the sharing efficiency of the multimedia file.
In order to achieve the purpose, the invention provides the following technical scheme:
in one aspect, the present invention provides a method for sharing a file, where the method includes:
monitoring whether a new multimedia file is written into the electronic equipment;
when it is determined that a new multimedia file is written into the electronic equipment, displaying a prompt interface on an application interface of an application program, wherein the prompt interface comprises an identifier of a sharing object in the application program;
responding to the selection operation on the prompt interface, and determining a target sharing object in the sharing objects;
and obtaining a target file, and sharing the target file to the target sharing object, wherein the target file at least comprises the new multimedia file.
Optionally, when the target sharing object includes a first target sharing object, sharing the target file with the first target sharing object includes:
displaying an interface of the first target sharing object, wherein the interface of the first target sharing object comprises an identifier of a communication object to be selected;
responding to selection operation on the interface of the first target sharing object, and determining a target communication object in the communication objects to be selected;
and displaying a dialog interface with the target communication object, and sending the target file in the dialog interface.
Optionally, when the target sharing object includes a second target sharing object, sharing the target file with the second target sharing object includes:
displaying a page of the second target sharing object;
and adding the target file in the page of the second target sharing object.
Optionally, on the basis of the above method, the method further includes:
and adding description information of the target file in a page of the second target sharing object, wherein the description information of the target file and the target file keep a preset position relation.
Optionally, the process of obtaining the description information of the target file includes:
acquiring description information input in an input box of the prompt interface;
or, determining the type of the target file, and acquiring the description information corresponding to the type of the target file from the description information configured in advance for multiple file types.
Optionally, the obtaining the target file includes:
responding to the editing operation on the prompt interface, and displaying an identifier of a file to be shared, wherein the file to be shared comprises the new multimedia file and at least one multimedia file acquired from other multimedia files stored in the electronic equipment according to a preset rule;
and responding to the selection operation aiming at the file to be shared, and taking the selected file to be shared as a target file.
Optionally, when the number of the target shared objects is at least two, the sharing the target file with the target shared object includes:
and sharing the target file to the at least two target sharing objects one by one according to the sequence of the target sharing objects determined in the sharing objects.
In another aspect, the present invention provides an apparatus for sharing files, the apparatus comprising:
the monitoring unit is used for monitoring whether a new multimedia file is written into the electronic equipment;
the prompting unit is used for displaying a prompting interface on an application interface of an application program when a new multimedia file is determined to be written into the electronic equipment, wherein the prompting interface comprises an identifier of a sharing object in the application program;
the target sharing object determining unit is used for responding to the selection operation on the prompt interface and determining a target sharing object in the sharing objects;
and the file sharing unit is used for obtaining a target file and sharing the target file to the target sharing object, wherein the target file at least comprises the new multimedia file.
In another aspect, the present invention provides an electronic device comprising a processor and a memory;
the processor is used for executing the program stored in the memory;
the memory is to store a program to at least:
monitoring whether a new multimedia file is written into the memory;
when it is determined that a new multimedia file is written into the memory, displaying a prompt interface on an application interface of an application program, wherein the prompt interface comprises an identifier of a sharing object in the application program;
responding to the selection operation on the prompt interface, and determining a target sharing object in the sharing objects;
and sharing a target file to the target sharing object, wherein the target file at least comprises the new multimedia file.
In another aspect, the present invention provides a storage medium storing a computer program which, when loaded and executed by a processor, is adapted to implement a method of sharing files as any one of the above.
Therefore, the beneficial effects of the invention are as follows:
the method for sharing the file monitors whether a new multimedia file is written into the electronic equipment or not, if the new multimedia file is determined to be written into the electronic equipment, a prompt interface is displayed on an application interface of an application program, the prompt interface at least comprises an identifier of a sharing object in the application program, and then if a user performs selection operation in the prompt interface, the selected sharing object is determined to be a target sharing object, and the target file at least comprising the new multimedia file is automatically shared to the target sharing object. According to the method for sharing the file, after a user generates a new multimedia file in various ways, the application program displays a prompt interface on the application interface of the application program, if the user wants to share the multimedia file, only a target sharing object (an object to be shared) needs to be selected in the prompt interface, and the electronic equipment automatically shares the multimedia file with the target sharing object, so that the user operation is greatly simplified, and the sharing efficiency of the multimedia file is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a flowchart of a method for sharing files according to the present invention;
FIG. 2 is a flowchart of another method for sharing files according to the present invention;
FIG. 3 is a flowchart illustrating a process of sharing a target file with a first target sharing object according to the present invention;
FIG. 4 is a flowchart illustrating a process of sharing a target file with a second target sharing object according to the present invention;
fig. 5 is a schematic diagram illustrating a process of sharing a file in a specific application scenario according to the present invention;
FIG. 6 is a diagram illustrating an apparatus for sharing files according to the present invention;
fig. 7 is a hardware structure diagram of an electronic device according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
The invention provides a method and a device for sharing a file, electronic equipment and a storage medium, which are used for simplifying the operation of sharing a multimedia file by a user and improving the sharing efficiency of the multimedia file.
Electronic devices in embodiments of the present invention include, but are not limited to, portable devices such as mobile phones, laptop computers, or tablet computers having touch sensitive surfaces (e.g., touch screens and/or touch pads). Of course, the electronic device in the embodiment of the present invention may also be a non-portable electronic device, such as a desktop computer.
Among other things, the electronic device supports various applications, such as one or more of the following: a drawing application, a presentation application, a word processing application, a gaming application, an instant messaging application, an exercise support application, a picture management application, a digital camera application, a digital video camera application, a social application.
Referring to fig. 1, fig. 1 is a flowchart of a method for sharing a file according to the present invention. The execution subject of the method is electronic equipment, and the method comprises the following steps:
s101: and monitoring whether a new multimedia file is written into the electronic equipment.
Wherein the multimedia files include pictures, video, audio and text. The format of the picture includes, but is not limited to, png, img, jpg, gif, or the like. The format of the video includes, but is not limited to, mp4, rmvb, avi, mkv, and the like. The format of audio includes, but is not limited to, mp3 or wav, etc. The format of the text includes, but is not limited to, txt, doc, docx, or PDF.
In practice, there are new multimedia file writing electronic devices including but not limited to the following scenarios:
in the first scenario, a user uses the electronic device to take a picture, record a video or record a sound to generate a picture, a video or an audio.
And in a second scene, a user performs screenshot operation on any display interface of the electronic equipment to generate a new picture.
Scene three: the user can view favorite pictures, videos or audios in some application (such as a browser and a microblog), and the pictures, the videos or the audios are stored in the electronic equipment.
Scene four: and editing a certain picture stored in the electronic equipment by the user to generate a new picture.
Scene five: the user views a favorite text in an application (such as a browser, a microblog, or reading software), and stores the favorite text in the electronic device.
In implementation, the system program of the electronic device may monitor whether a new multimedia file is written into the electronic device, or an application program in the electronic device may monitor whether a new multimedia file is written into the electronic device. Monitoring whether a new multimedia file is written into the electronic equipment can be realized by adopting various mechanisms.
For example: and monitoring operations such as file writing, file access, file creation, file deletion or file movement of a preset file storage area of the electronic equipment through a FileObserver mechanism, so as to determine whether a new multimedia file is written into the electronic equipment.
Another example is: monitoring resource change of a multimedia picture library through a ContentObserver to determine whether a new screenshot is written into the electronic equipment; the photographing system and the VIDEO recording system of the electronic device provide a broadcast by setting a listener ACTION _ NEW _ PICTURE in a system program or an application program to determine whether a NEW PICTURE is written in the electronic device, and by setting a listener ACTION _ NEW _ VIDEO in the system program or the application program to determine whether a NEW VIDEO is written in the electronic device.
S102: and when determining that a new multimedia file is written into the electronic equipment, displaying a prompt interface on an application interface of the application program, wherein the prompt interface comprises an identifier of a sharing object in the application program.
And if the new multimedia file is determined to be written into the electronic equipment, displaying a prompt interface in an application interface of the application program so as to prompt a user whether to share the file, wherein the prompt interface comprises an identification of a sharing object in the application program.
The application program generally has a plurality of functions, and the function of sharing a file in the application program can be used as a sharing object.
The identifier of the sharing object may be an icon of the sharing object, a character string capable of representing the sharing object, or a combination of the two, which is not limited in the present invention.
In addition, it should be noted that, if it is determined that a new multimedia file is written into the electronic device when the application runs in the background, the operation of displaying the prompt interface on the application interface is executed when the application is switched from the background running to the foreground running.
In an alternative implementation manner, the prompt interface is displayed in a part of the application interface of the application program, that is, the prompt interface only occupies a partial area of the application interface of the application program, and does not affect the normal use of the application program by the user.
S103: and responding to the selection operation on the prompt interface, and determining a target sharing object in the sharing objects.
And if the user executes the selection operation on the prompt interface, determining the sharing object selected by the user as the target sharing object, namely the object of the target file to be shared subsequently.
In an optional implementation manner, the starting time of displaying the prompt interface is recorded, and if the duration of displaying the prompt interface reaches a preset time threshold but the selection operation on the prompt interface is not received, the prompt interface is stopped from being displayed.
In another possible implementation, if the user selects an area of the application interface other than the prompt interface, the prompt interface is stopped from being displayed.
In another optional implementation manner, the prompt interface further comprises an exit control, and if an operation of selecting the exit control is received, the prompt interface stops being displayed.
S104: and obtaining a target file, and sharing the target file to the target sharing object. Wherein the object file comprises at least a new multimedia file.
In a possible implementation manner, the new multimedia file is used as a target file by default, and the target file is shared with the target sharing object. That is to say, after the user performs the selection operation on the sharing object on the prompt interface, no other operation is performed, and then the new multimedia file is taken as the target file.
The method for sharing the file monitors whether a new multimedia file is written into the electronic equipment or not, if the new multimedia file is determined to be written into the electronic equipment, a prompt interface is displayed on an application interface of an application program, the prompt interface at least comprises an identifier of a sharing object in the application program, and then if a user performs selection operation in the prompt interface, the selected sharing object is determined to be a target sharing object, and the target file at least comprising the new multimedia file is automatically shared to the target sharing object. According to the method for sharing the file, provided by the invention, after a user generates a new multimedia file in multiple ways, the application program displays a prompt interface on the application interface of the application program, the prompt interface comprises the sharing object in the application program, if the user wants to share the multimedia file, the electronic equipment automatically shares the multimedia file with the target sharing object only by selecting the target sharing object (the object to be shared) in the prompt interface, so that the user operation is greatly simplified, and the file sharing efficiency is improved.
Referring to fig. 2, fig. 2 is a flowchart of another method for sharing a file according to the present invention. The execution subject of the method is electronic equipment, and the method comprises the following steps:
s201: and monitoring whether a new multimedia file is written into the electronic equipment.
S202: and when determining that the new multimedia file is written into the electronic equipment, displaying a prompt interface on an application interface of the application program. The prompt interface comprises an identification of a sharing object in the application program.
S203: and responding to the selection operation on the prompt interface, and determining a target sharing object in the sharing objects.
S204: and responding to the editing operation on the prompt interface and displaying the identification of the file to be shared.
The file to be shared comprises a new multimedia file written into the electronic equipment and at least one multimedia file acquired from other multimedia files stored in the electronic equipment according to a preset rule.
S205: and responding to the selection operation aiming at the file to be shared, and taking the selected file to be shared as a target file.
In a possible implementation manner, the prompt interface may further include a file adjustment control, and when the user selects the control, the identifier of the file to be shared is displayed. In another possible implementation manner, when the user presses a designated area in the prompt interface for a long time, the identifier of the file to be shared is displayed. And then, the user executes selection operation aiming at the file to be shared, and the file to be shared selected by the user is used as a target file.
The identifier of the file to be shared may be a preview of the file to be shared, a character string capable of representing the file to be shared, or a combination of the two.
In one possible implementation, the preset rule is: and acquiring the multimedia files with the storage time within a preset time period from other multimedia files stored in the electronic equipment. That is, the new multimedia file and the multimedia file saved in the preset time period are used as the files to be shared. And the ending moment of the preset time period is the moment of writing a new multimedia file. The duration of the preset time period may be 20 minutes or 1 hour, and the present invention is not particularly limited.
In another possible implementation manner, the preset rule is: a specified number of multimedia files of the same type as the new multimedia file and having a saving time closer to the saving time of the new multimedia file. Among them, the types of multimedia files may refer to pictures, videos, audios, and texts. For example: and if the new multimedia file written into the electronic equipment is a picture, taking the picture and a specified number of pictures with the storage time closer to the storage time of the picture as files to be shared.
In implementation, the picture types may be further subdivided into screenshots, photographs, and pictures saved from other applications.
S206: and sharing the target file to the target sharing object.
The method for sharing files shown in fig. 2 of the present invention may further respond to an editing operation executed on the prompt interface, and display an identifier of a file to be shared, where the file to be shared includes a multimedia file newly written into the electronic device and a part of the multimedia file previously stored in the electronic device, and a user may select multiple multimedia files from the file to be shared as target files, and the electronic device automatically shares the target files with a target sharing object. Based on the method shown in fig. 2 of the present invention, after a user generates a new multimedia file in multiple ways, an application program displays a prompt interface on its own application interface, if the user wants to share multiple multimedia files, the user only needs to select a target sharing object in the prompt interface, and perform an editing operation, and select a target file in a subsequently displayed identifier of the file to be shared, so that the electronic device automatically shares multiple multimedia files with the target sharing object, thereby simplifying the operation of sharing multiple files by the user, and improving the efficiency of file sharing.
The following describes a process of sharing a target file with a target sharing object in the above embodiment.
In one possible implementation, the target sharing object includes a first target sharing object. As shown in fig. 3, the process of sharing a target file with a first target sharing object includes:
s301: and displaying an interface of the first target sharing object, wherein the interface of the first target sharing object comprises an identifier of the communication object to be selected.
Wherein the communication objects comprise contacts and groups.
S302: and responding to the selection operation on the interface of the first target sharing object, and determining a target communication object in the communication objects to be selected.
S303: and displaying a dialog interface with the target communication object, and sending the target file in the dialog interface.
After the user selects the first target sharing object in the prompt interface, the electronic device displays an interface of the first target sharing object, the user performs selection operation in the interface of the first target sharing object, and the communication object to be selected by the user is used as the target communication object. And then, the electronic equipment opens a dialogue interface with the target communication object and sends the target file in the dialogue interface.
In implementation, if the number of the target communication objects is at least two, the dialog interfaces with the target communication objects can be opened one by one according to the sequence of the target communication objects selected by the user, and the target files are sent in the dialog interfaces.
In another possible implementation manner, the target sharing object includes a second target sharing object. As shown in fig. 4, the process of sharing the target file with the second target sharing object includes:
s401: displaying a page of a second target sharing object;
s402: and adding a target file in the page of the second target sharing object.
Optionally, the method further includes S403: and adding description information of the target file in a page of the second target sharing object. Wherein the description information of the object file and the object file maintain a predetermined positional relationship.
For example, the description information of the object file is located on the upper side of the object file.
In practice, the description information of the target file may be obtained in a variety of ways.
The first mode is as follows: and acquiring the description information input in the input box of the prompt interface.
That is, the content displayed by the prompt interface includes an input box in addition to the identifier of the shared object in the application program. The user may enter descriptive information in the input box.
The second mode is as follows: the method comprises the steps of determining the type of a target file, and acquiring description information corresponding to the type of the target file from description information configured aiming at multiple file types in advance.
The type of target file may refer to pictures, video, audio, and text. The description information is configured in advance for a plurality of file types, for example, the description information configured for the file type of "picture" may be "very good picture", and the description information configured for the file type of "video" may be "i release a wonderful video". After the target file is obtained, the target file is analyzed, the type of the target file is determined, and then the description information corresponding to the type of the current target file is determined according to the description information which is configured aiming at various file types in advance.
In an implementation, the number of target sharing objects may be at least two.
In a possible implementation manner, the step of sharing the target file with the target sharing object specifically includes: and sharing the target files with at least two target sharing objects one by one according to the sequence of the target sharing objects determined in the sharing objects.
For example, in the prompt interface, the user first selects the first target sharing object, and then selects the second target sharing object. Then, in the process of sharing the target file with the target sharing object, the target file is shared with the first target sharing object first, and then the target file is shared with the second target sharing object.
The method for sharing files provided by the present invention is described below with reference to specific scenarios.
The mobile phone is provided with a WeChat. After the user starts the WeChat, the WeChat continuously monitors whether a new multimedia file is written into the electronic equipment. When the user takes a picture, the display effect of the electronic device is as shown in the left drawing in fig. 5. The WeChat determines that a new multimedia file has been written to the electronic device. After the user opens the WeChat (the WeChat is converted from background operation to foreground operation), a prompt interface is displayed on the right side of the WeChat interface, and the prompt interface comprises identifications of a plurality of sharing objects in the WeChat, for example, the prompt interface comprises identifications of WeChat friends and identifications of friend circles. In addition, the prompt interface further includes a preview of the newly taken photo, an input box located at the upper side of the preview of the photo, and an adjust file control located at the lower right corner of the preview of the photo, as shown in the drawing on the right side in fig. 5.
If the user selects the friend circle identification in the prompt interface, the friend circle is determined as the target sharing object. And if the user selects the WeChat friend identification in the prompt interface, the WeChat friend is taken as a target object. And if the user selects the friend circle identification and the WeChat friend identification in the prompt interface, taking the friend circle and the WeChat friend as target objects. And if the time length for displaying the prompt interface reaches a preset time threshold value but the selection operation on the prompt interface is not received, stopping displaying the prompt interface. In addition, if the user selects the area of the WeChat interface except the prompt interface, the prompt interface stops being displayed.
And if the user selects the file adjusting control in the prompt interface, displaying a file to be shared in the prompt interface, wherein the file to be shared comprises a newly-shot photo and a part of multimedia files stored in the electronic equipment, such as a specified number of photos with the storage time closer to the current moment. And the user executes selection operation in the files to be shared and takes the selected files to be shared as target files. And if the user does not execute the operation aiming at the file adjusting control in the prompt interface, taking the newly shot picture as the target file after waiting for the preset time. Optionally, the prompt interface further includes a control for instructing to confirm sharing, and if the user does not execute an operation for the file adjustment control in the prompt interface, after the user selects the control for instructing to confirm sharing, the newly-taken photo is taken as the target file.
The process of sharing the target file with the friend circle comprises the following steps: and displaying a friend circle page, and adding the target file in the friend circle page. In addition, the description information of the target file can be added in the friend circle page. The descriptive information may be information entered by the user at an input box of the prompt interface. If the user does not enter information in the input box of the prompt interface, the corresponding descriptive information may be obtained in the manner described above. Wherein, the description information of the object file is positioned at the upper side of the object file.
The process of sharing the target file to the WeChat friend comprises the following steps: and displaying a contact person interface, wherein the contact person interface comprises the identification of the communication object to be selected. Alternatively, the communication objects to be selected can be contacts and groups of which communication events occur within a predetermined time. And the user performs selection operation in the contact person interface, and determines a target communication object in the objects to be communicated. And then, displaying a dialogue interface with the target communication object, and sending the target file in the dialogue interface.
On the other hand, the invention also provides a device for sharing files.
The following describes a device for sharing files according to the present invention. The device for sharing a file described hereinafter may be regarded as a program module that is required to be provided by the electronic device to implement the method for sharing a file according to the embodiment of the present invention. The following description of the device for sharing a file may be referred to with the above description of the method for sharing a file.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a file sharing apparatus according to the present invention. The device includes:
a monitoring unit 601, configured to monitor whether a new multimedia file is written into the electronic device;
the prompting unit 602 is configured to display a prompting interface on an application interface of an application program when it is determined that a new multimedia file is written into the electronic device, where the prompting interface includes an identifier of a sharing object in the application program;
a target sharing object determining unit 603 configured to determine a target sharing object among the sharing objects in response to a selection operation on the prompt interface;
the file sharing unit 604 is configured to obtain a target file, and share the target file with a target sharing object, where the target file at least includes a new multimedia file.
In a possible implementation manner, the process of sharing the target file with the file sharing unit 604 includes:
displaying an interface of a first target sharing object, wherein the interface of the first target sharing object comprises an identifier of a communication object to be selected; responding to selection operation on an interface of the first target sharing object, and determining a target communication object in the communication objects to be selected; and displaying a dialog interface with the target communication object, and sending the target file in the dialog interface.
In a possible implementation manner, the process of sharing the target file with the file sharing unit 604 includes:
displaying a page of a second target sharing object; and adding a target file in the page of the second target sharing object.
Optionally, the file sharing unit 604 further adds description information of the target file to a page of the second target sharing object. Wherein the description information of the object file and the object file maintain a predetermined positional relationship.
The file sharing unit 604 may obtain the description information of the target file in various ways. For example, the description information input in the input box of the prompt interface is acquired. For another example, the type of the target file is determined, and the description information corresponding to the type of the target file is acquired from the description information configured in advance for a plurality of file types.
In a possible implementation manner, the process of obtaining the target file by the file sharing unit 604 specifically includes:
responding to editing operation on a prompt interface, and displaying an identifier of a file to be shared, wherein the file to be shared comprises a new multimedia file and at least one multimedia file acquired from other multimedia files stored in the electronic equipment according to a preset rule; and responding to the selection operation aiming at the file to be shared, and taking the selected file to be shared as a target file.
In addition, if there are at least two target sharing objects, the file sharing unit 604 shares the target file with the target sharing object, specifically:
and sharing the target files with at least two target sharing objects one by one according to the sequence of the target sharing objects determined in the sharing objects.
In another aspect, the invention further provides an electronic device.
Referring to fig. 7, fig. 7 is a hardware structure diagram of an electronic device according to the present invention. The electronic device may include a processor 701, a memory 702, and a communication interface 703.
Optionally, the terminal may further include: an input unit 704, a display 705 and a communication bus 706. The processor 701, the memory 702, the communication interface 703, the input unit 704, and the display 705 all communicate with each other through the communication bus 706.
In the embodiment of the present invention, the processor 701 may be a Central Processing Unit (CPU), an application specific integrated circuit, a digital signal processor, an off-the-shelf programmable gate array or other programmable logic device.
The processor 701 may call a program stored in the memory 702.
The memory 702 is used to store one or more programs, which may include program code comprising computer operating instructions. In the embodiment of the present invention, the memory stores at least a program for realizing the following functions:
monitoring whether a new multimedia file is written into a memory; when it is determined that a new multimedia file is written into the memory, displaying a prompt interface on an application interface of the application program, wherein the prompt interface comprises an identifier of a sharing object in the application program; responding to the selection operation on the prompt interface, and determining a target sharing object in the sharing objects; and sharing the target file to the target sharing object, wherein the target file at least comprises a new multimedia file.
In one possible implementation, the memory 702 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, the above-mentioned programs, and the like; the storage data area may store data created during use of the computer device, and the like.
Further, memory 702 may include high speed random access memory and may also include non-volatile memory.
The communication interface 703 may be an interface of a communication module.
The input unit 704 may include a touch sensing unit sensing a touch event on the touch display panel, a keyboard, and the like.
The display 705 includes a display panel, such as a touch display panel or the like.
Of course, the structure of the electronic device shown in fig. 7 does not constitute a limitation to the electronic device in the embodiment of the present invention, and the electronic device may include more or less components than those shown in fig. 7 in practical applications, or some components may be combined.
In another aspect, the present invention further provides a storage medium, where a computer program is stored, and when the computer program is loaded and executed by a processor, the computer program is used to implement the method for sharing a file as described in any one of the above embodiments.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device, the electronic device and the storage medium provided by the embodiment correspond to the method provided by the embodiment, so that the description is relatively simple, and the relevant points can be referred to the description of the method.
The previous description of the provided embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features provided herein.

Claims (10)

1. A method for sharing a file, the method comprising:
monitoring whether a new multimedia file is written into the electronic equipment through an application program, wherein the method comprises the following steps: monitoring whether a user uses the electronic equipment to take a picture, record a video or record a sound to generate a picture, a video or an audio; or monitoring whether the user performs screenshot operation on any display interface of the electronic equipment to generate a new picture; or monitoring whether the user looks up favorite pictures, videos or audios in the application or not, and storing the pictures, videos or audios in the electronic equipment; or monitoring whether the user edits the stored picture in the electronic equipment to generate a new picture; or monitoring whether the user looks up a favorite text in an application or not, and storing the text in the electronic equipment;
when it is determined that a new multimedia file is written into the electronic equipment, displaying a prompt interface in a partial area of an application interface of the application program, wherein the prompt interface comprises an identifier of a sharing object in the application program, a preview of the new multimedia file, an input frame positioned on the upper side of the preview of the new multimedia file, and an adjustment file control positioned on the lower right corner of the preview of the new multimedia file; the identification of the shared object in the application program comprises: the identity of the WeChat friend and the identity of the circle of friends;
responding to the selection operation on the prompt interface, and determining a target sharing object in the sharing objects;
and obtaining a target file, and sharing the target file to the target sharing object, wherein the target file at least comprises the new multimedia file.
2. The method according to claim 1, wherein in a case that the target sharing object includes a first target sharing object, sharing the target file with the first target sharing object includes:
displaying an interface of the first target sharing object, wherein the interface of the first target sharing object comprises an identifier of a communication object to be selected;
responding to selection operation on the interface of the first target sharing object, and determining a target communication object in the communication objects to be selected;
and displaying a dialog interface with the target communication object, and sending the target file in the dialog interface.
3. The method according to claim 1, wherein in a case that the target sharing object includes a second target sharing object, sharing the target file with the second target sharing object includes:
displaying a page of the second target sharing object;
and adding the target file in the page of the second target sharing object.
4. The method of claim 3, further comprising:
and adding the description information of the target file in the page of the second target sharing object, wherein the description information of the target file and the target file keep a preset position relationship.
5. The method of claim 4, wherein obtaining the description information of the target file comprises:
acquiring description information input in an input box of the prompt interface;
or, determining the type of the target file, and acquiring the description information corresponding to the type of the target file from the description information configured in advance for multiple file types.
6. The method according to any one of claims 1 to 5, wherein the obtaining a target file comprises:
responding to the editing operation on the prompt interface, and displaying an identifier of a file to be shared, wherein the file to be shared comprises the new multimedia file and at least one multimedia file acquired from other multimedia files stored in the electronic equipment according to a preset rule;
and responding to the selection operation aiming at the file to be shared, and taking the selected file to be shared as a target file.
7. The method according to claim 1, wherein, in the case that there are at least two target sharing objects, the sharing the target file with the target sharing object comprises:
and sharing the target files with the at least two target sharing objects one by one according to the sequence of the target sharing objects determined in the sharing objects.
8. An apparatus for sharing files, the apparatus comprising:
the monitoring unit is used for monitoring whether a new multimedia file is written into the electronic equipment through an application program, and comprises: monitoring whether a user uses the electronic equipment to take a picture, record a video or record a sound to generate a picture, a video or an audio; or monitoring whether the user performs screenshot operation on any display interface of the electronic equipment to generate a new picture; or monitoring whether the user looks up favorite pictures, videos or audios in the application or not, and storing the pictures, videos or audios in the electronic equipment; or monitoring whether the user edits the stored picture in the electronic equipment to generate a new picture; or monitoring whether the user looks up favorite texts in the application or not, and storing the texts in the electronic equipment;
the prompt unit is used for displaying a prompt interface in a partial area of an application interface of the application program when a new multimedia file is determined to be written into the electronic equipment, wherein the prompt interface comprises an identifier of a sharing object in the application program, a preview of the new multimedia file, an input frame positioned on the upper side of the preview of the new multimedia file, and an adjusting file control positioned on the lower right corner of the preview of the new multimedia file; the identification of the shared object in the application program comprises: the identity of the WeChat friend and the identity of the circle of friends;
the target sharing object determining unit is used for responding to the selection operation on the prompt interface and determining a target sharing object in the sharing objects;
and the file sharing unit is used for obtaining a target file and sharing the target file to the target sharing object, wherein the target file at least comprises the new multimedia file.
9. An electronic device comprising a processor and a memory;
the processor is configured to execute a program stored in the memory;
the memory is to store a program to at least:
monitoring whether a new multimedia file is written into the memory through an application program, wherein the method comprises the following steps: monitoring whether a user uses the electronic equipment to take a picture, record a video or record a sound to generate a picture, a video or an audio; or monitoring whether the user performs screenshot operation on any display interface of the electronic equipment to generate a new picture; or monitoring whether the user looks up favorite pictures, videos or audios in the application or not, and storing the pictures, videos or audios in the electronic equipment; or monitoring whether the user edits the stored picture in the electronic equipment to generate a new picture; or monitoring whether the user looks up a favorite text in an application or not, and storing the text in the electronic equipment;
when it is determined that a new multimedia file is written into the memory, displaying a prompt interface in a partial area of an application interface of the application program, wherein the prompt interface comprises an identifier of a sharing object in the application program, a preview of the new multimedia file, an input frame positioned on the upper side of the preview of the new multimedia file, and an adjustment file control positioned on the lower right corner of the preview of the new multimedia file; the identification of the shared object in the application program comprises: the identity of the WeChat friend and the identity of the circle of friends;
responding to the selection operation on the prompt interface, and determining a target sharing object in the sharing objects;
and sharing a target file to the target sharing object, wherein the target file at least comprises the new multimedia file.
10. A storage medium storing a computer program which, when loaded and executed by a processor, is adapted to carry out a method of sharing a file according to any one of claims 1 to 7.
CN201911037654.0A 2019-10-23 2019-10-23 File sharing method and device, electronic equipment and storage medium Active CN110798521B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911037654.0A CN110798521B (en) 2019-10-23 2019-10-23 File sharing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911037654.0A CN110798521B (en) 2019-10-23 2019-10-23 File sharing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110798521A CN110798521A (en) 2020-02-14
CN110798521B true CN110798521B (en) 2022-09-13

Family

ID=69441834

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911037654.0A Active CN110798521B (en) 2019-10-23 2019-10-23 File sharing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110798521B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114690983A (en) * 2020-12-14 2022-07-01 Oppo广东移动通信有限公司 Content sharing method and device, equipment and storage medium
CN113992660A (en) * 2021-10-29 2022-01-28 维沃移动通信有限公司 File transmission method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1658188A (en) * 2004-02-17 2005-08-24 微软公司 Methods and systems for providing automated actions on recognized text strings in a computer-generated document
CN104902309A (en) * 2015-05-26 2015-09-09 努比亚技术有限公司 Multimedia file sharing method and device for mobile terminal
CN106385359A (en) * 2016-10-06 2017-02-08 程在舒 Group and friend automatic generation and photograph and video shared browsing method
CN108228876A (en) * 2018-01-19 2018-06-29 维沃移动通信有限公司 A kind of method and mobile terminal for reading file data

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11308449B2 (en) * 2011-04-28 2022-04-19 Microsoft Technology Licensing, Llc Storing metadata inside file to reference shared version of file
CN105025043B (en) * 2014-04-17 2019-06-04 腾讯科技(深圳)有限公司 Information sharing method, apparatus and system
US10476987B2 (en) * 2015-09-11 2019-11-12 Facebook, Inc. Retrieving information about an online system user for use by an application during retrieval and installation of the application
CN107301204A (en) * 2017-05-27 2017-10-27 深圳市金立通信设备有限公司 A kind of method and terminal for sharing file
CN109510881A (en) * 2019-01-25 2019-03-22 北京字节跳动网络技术有限公司 Method, apparatus, electronic equipment and the readable storage medium storing program for executing of sharing files

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1658188A (en) * 2004-02-17 2005-08-24 微软公司 Methods and systems for providing automated actions on recognized text strings in a computer-generated document
CN104902309A (en) * 2015-05-26 2015-09-09 努比亚技术有限公司 Multimedia file sharing method and device for mobile terminal
CN106385359A (en) * 2016-10-06 2017-02-08 程在舒 Group and friend automatic generation and photograph and video shared browsing method
CN108228876A (en) * 2018-01-19 2018-06-29 维沃移动通信有限公司 A kind of method and mobile terminal for reading file data

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
A Multi-Shared Register File Structure for VLIW Processors;Guillermo Payá-Vayá等;《Journal of Signal Processing Systems》;20101231;第58卷(第2期);全文 *
分享信息只需"感应";飘零雪;《电脑迷》;20120901(第17期);全文 *

Also Published As

Publication number Publication date
CN110798521A (en) 2020-02-14

Similar Documents

Publication Publication Date Title
JP7414842B2 (en) How to add comments and electronic devices
WO2021082739A1 (en) Multi-task interface management method and electronic device
JP6700254B2 (en) Real-time sharing during a call
CN110110262B (en) Browser memory management method, device and equipment
US20190379942A1 (en) Method and apparatus for processing multimedia resources
EP3128411B1 (en) Interface display method, terminal, computer program and recording medium
WO2018130085A1 (en) Method and apparatus for page presentation
US20150199058A1 (en) Information processing method and electronic device
CN112667142B (en) Information quick display method and device and computer storage medium
KR102516696B1 (en) Third-party access of end-user device assets
CN110798521B (en) File sharing method and device, electronic equipment and storage medium
JP7058795B2 (en) Video processing methods, devices, terminals and storage media
KR20130085146A (en) Method and device for application file reopen and screen capture therefor
CN109492163B (en) List display recording method and device, terminal equipment and storage medium
CN104951184A (en) Application program downloading method and device
CN108958824A (en) Starting method, apparatus, electronic equipment and the storage medium of application program
CN107885571B (en) Display page control method and device
CN110875975A (en) Information processing method and device
CN113076288A (en) File processing method and device, electronic equipment and storage medium
CN108228299B (en) Display method and electronic equipment
CN107741992B (en) Network storage method and device for conference records, intelligent tablet and storage medium
US20160104507A1 (en) Method and Apparatus for Capturing Still Images and Truncated Video Clips from Recorded Video
US10313978B2 (en) Electronic apparatus and control method thereof
US11604835B2 (en) User interfaces for selecting media items
KR101300052B1 (en) Method for searching image and recording-medium recorded program thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40021930

Country of ref document: HK

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant