File sharing method and device, electronic equipment and storage medium
By setting up a format conversion control within the sharing interface, users can directly select and complete file format conversion and sharing, solving the problem of cumbersome file sharing operations in existing technologies and improving file sharing efficiency.
Patent Information
- Application Number
- CN202310815941.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-04
- Publication Date
- 2025-01-07
AI Technical Summary
In existing technologies, users need to manually perform format conversion and sharing operations before sharing files, which is cumbersome and results in low file sharing efficiency.
This paper provides a file sharing method that allows users to directly select and convert the file format and share the converted file by setting a format conversion control in the sharing interface, thus simplifying the operation process.
It improves the efficiency of file sharing, allowing users to complete format conversion and sharing operations directly in the sharing interface without having to manually open the format conversion and sharing applications.
Smart Images

Figure CN119271641A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of mobile terminal technology, and in particular to a file sharing method, device, electronic device and storage medium. Background Art
[0002] Some user terminals provide a file sharing function, which allows users to share files in one user terminal with other user terminals, such as sharing documents in a mobile phone with a computer.
[0003] However, in some application scenarios, users may want to convert the format of the file to be shared before sharing it, and then share the converted file. For example, if the user needs to share a JPG format picture in the mobile phone to a computer, but the user thinks it is not convenient to browse JPG format pictures on the computer, then the user needs to open an application with a format conversion function, select the JPG format picture in the application to convert the JPG format picture into a PDF format file, and then select the PDF format file through an application with a sharing function, such as a file management application, and use the sharing function to share the PDF format file to the computer. This operation is relatively cumbersome. Summary of the invention
[0004] In view of this, the present application provides a file sharing method, device, electronic device and storage medium for improving file sharing efficiency.
[0005] In a first aspect of the present application, a file sharing method is provided, the method comprising:
[0006] When the electronic device runs the first application, a first interface is displayed, wherein the first interface displays a first material in a first format;
[0007] In response to a sharing instruction for the first material, a first sharing interface is displayed, the first sharing interface comprising a sharing title area and a path selection area, the sharing title area of the first sharing interface comprising a format conversion control and a format sub-area, the format sub-area of the first sharing interface displays the first format, and the path selection area of the first sharing interface displays a sharing method of the first material in the first format;
[0008] In response to an interactive instruction for a format conversion control of the first sharing interface, displaying a second sharing interface, wherein the second sharing interface displays a second format, and the second format is different from the first format;
[0009] In response to the format selection instruction for the second format, the format of the first material is converted from the first format to the second format, and a third sharing interface is displayed, the third sharing interface includes a sharing title area and a path selection area, the sharing title area of the third sharing interface includes a format conversion control and a format sub-area, the format sub-area of the third sharing interface displays the second format, and the path selection area of the third sharing interface displays a sharing method of the first material in the second format;
[0010] In response to a sharing method in the path selection area of the third sharing interface, the first material in the second format is shared according to the sharing method.
[0011] In a possible embodiment, the method further includes:
[0012] When executing the step of converting the format of the first material from the first format to the second format, displaying a converting interface, wherein the converting interface includes a cancel conversion control;
[0013] In response to the interactive instruction for canceling the conversion control, the step of converting the format of the first material from the first format to the second format is terminated, and the first sharing interface is displayed.
[0014] In a possible embodiment, the sharing title area of the first sharing interface and / or the third sharing interface further includes a title sub-area, and the title sub-area displays the material name of the first material or the number of the first materials.
[0015] In a possible embodiment, when there is only one first material, the title sub-area displays the material name of the first material;
[0016] When there is one first material, the title sub-area displays the number of the first material.
[0017] In a possible embodiment, when the first material is one, the format sub-area of the first sharing interface displays the first format;
[0018] When there are multiple first materials, the format sub-area of the first sharing interface displays text information for indicating a default format.
[0019] In a possible embodiment, the sharing title area of the first sharing interface and / or the third sharing interface further includes an attribute sub-area, and the attribute sub-area displays the target attribute of the first material, wherein the target attribute is the attribute corresponding to the first application in a preset application-attribute correspondence relationship.
[0020] In a possible embodiment, the service-attribute correspondence relationship includes one or more of the following correspondence relationships:
[0021] File management corresponds to file size, and browser corresponds to URL.
[0022] In a possible embodiment, the sharing title area of the first sharing interface and / or the third sharing interface further includes a thumbnail sub-area;
[0023] When there is only one first material, the thumbnail sub-area displays a thumbnail of the first material;
[0024] When there are multiple first materials, the thumbnail sub-area displays a stacked thumbnail, wherein the stacked thumbnail is obtained by stacking thumbnails of the first materials.
[0025] In a possible embodiment, the stacked thumbnails are stacked in the following manner, including:
[0026] When the first materials are no more than N, stacking thumbnails of all the first materials to obtain a stacked thumbnail;
[0027] When there are more than N first materials, the order of selecting the first materials is according to the sharing instruction, and the thumbnails of the first N first materials are stacked to obtain stacked thumbnails.
[0028] In a possible embodiment, the first sharing interface and the third sharing interface further include an atomic service area, the atomic service area includes atomic service controls, and each of the atomic service controls corresponds to an atomic service;
[0029] The method further comprises:
[0030] In response to the interactive instruction for the atomic service control, the atomic service corresponding to the atomic service control is executed on the first material.
[0031] In a possible embodiment, the atomic service area includes atomic service controls corresponding to the format of the first material and the first application.
[0032] In a possible embodiment, if the first material selected by the sharing instruction is text, a single picture or a single document, and the first application is a global collection, the atomic service area includes atomic service controls corresponding to the following atomic services: print service, save to text note service, save to Evernote service, save to file management service, and add to global collection service;
[0033] If the first material selected by the sharing instruction is a plurality of pictures or a plurality of documents, and the first application is a global collection, the atomic service area includes atomic service controls corresponding to the following atomic services: save to text note service, save to Evernote service, save to file management service, and add to global collection service;
[0034] If the first material selected by the sharing instruction is a video, and the first application is a global collection, the atomic service area includes atomic service controls corresponding to the following atomic services: atomic service controls corresponding to Save to Evernote service, Save to File Management service, and Add to Global Collection service;
[0035] If the first material selected by the sharing instruction is an application, and the first application is a global collection, the atomic service area includes atomic service controls corresponding to the following atomic services: save to file management service, add to global collection service;
[0036] If the first material selected by the sharing instruction is a link, and the first application is a global collection, the atomic service area includes atomic service controls corresponding to the following atomic services: save to text note service, save to Evernote service, and add to global collection service;
[0037] If the first material selected by the sharing instruction is a compressed package, and the first application is a global favorite, the atomic service area includes atomic service controls corresponding to the following atomic services: add to global favorites service.
[0038] In a possible embodiment, when there are multiple first materials, the second sharing interface displays an intersection of second formats preset for each of the first formats.
[0039] In a possible embodiment, if the first material selected by the sharing instruction is text and the first application is a global collection, the second includes word format, pdf format, and txt format;
[0040] If the first material is a single picture and the first application is a global collection, the second format includes PDF format and JPG format;
[0041] If the first material is a plurality of pictures and the first application is a global collection, the second format includes a PDF format, a JPG format, and a long picture format;
[0042] If the first material selected by the sharing instruction is a single word document and the first application is a global collection, the second format includes a PDF format and a long image format;
[0043] If the first material is a single ppt and the first application is a global collection, the second format includes a pdf format and a long image format;
[0044] If the first material is text or a single note and the first application is a note service, the second format includes image format, text format, DOC format, PDF format and HTML format;
[0045] If the first material is a schedule and the first application is a schedule application, the second format includes a picture format, a text format, and a calendar format;
[0046] If the first material is a contact and the first application is a phone, the second format includes a QR code format, a VCard format, and a text format.
[0047] In a possible embodiment, the first sharing interface, the second sharing interface, and the third sharing interface are displayed in a floating manner above the first interface.
[0048] In a possible embodiment, the method further includes:
[0049] When the electronic device runs a second application, a second interface is displayed, in which a second material in a third format is displayed, and the second application includes a gallery and is different from the first application;
[0050] In response to the sharing instruction for the second material, displaying a fourth sharing interface, the fourth sharing interface including a path selection area and an atomic service area;
[0051] In response to an interactive instruction for the atomic service control of the fourth sharing interface, executing the atomic service corresponding to the atomic service control on the second material;
[0052] In response to a sharing method displayed in the path selection area of the fourth sharing interface, the second material is shared according to the sharing method.
[0053] In a second aspect of the present application, an electronic device is provided, including:
[0054] one or more processors and memory;
[0055] The memory is coupled to the one or more processors, and the memory is used to store computer program code, wherein the computer program code includes computer instructions, and the one or more processors call the computer instructions to enable the electronic device to execute the method steps described in the first aspect above.
[0056] In a third aspect of the present application, a computer-readable storage medium is provided, comprising a computer program. When the computer program is executed on an electronic device, the electronic device executes the method steps described in the first aspect.
[0057] By adopting the technical solution provided in the embodiment of the present application, the user can select the second format by interacting with the format conversion control, thereby controlling the electronic device to convert the format of the first material from the original first format to the second format, and displaying the third sharing interface for the first material after format conversion, so that the user can share the first material after format conversion through the displayed third sharing interface, which is equivalent to first format conversion of the first material and then sharing it, and the user can directly implement the format conversion of the material in the sharing interface, and automatically display the sharing interface for the material after format conversion after the format conversion, without manually opening the application with format conversion function, and without manually finding the material after format conversion in the application with sharing function, so the operation is simple and can improve the efficiency of material sharing. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0059] Figure 1 A schematic diagram of a structure of an electronic device;
[0060] Figure 2 A schematic diagram of a system architecture of an electronic device;
[0061] Figure 3a A schematic diagram of the video viewing interface;
[0062] Figure 3b This is a schematic diagram of the global collection interface displayed in the form of a floating window;
[0063] Figure 3c This is a schematic diagram of the global collection interface displayed in full screen;
[0064] Figure 4 A schematic diagram of a method for inputting a sharing instruction;
[0065] Figure 5 It is a schematic diagram of a sharing interface in the related technology;
[0066] Figure 6 A flowchart of a file sharing method provided by this application;
[0067] Figure 7a A schematic diagram of a sharing interface when sharing is triggered when the electronic device is running a first application;
[0068] Figure 7b This is a schematic diagram of the interface after the user clicks the format conversion control when the first material is a picture;
[0069] Figure 7c This is a schematic diagram of the interface after the user clicks the format conversion control when the first material is a contact;
[0070] Figure 7d This is a schematic diagram of the interface after the user clicks the format conversion control when the first material is PDF;
[0071] Figure 7e This is a schematic diagram of the interface after the user clicks the format conversion control when the first material is an application;
[0072] Figure 7f This is a schematic diagram of a sharing interface displayed when the first material does not support format conversion;
[0073] Figure 7g is a schematic diagram of an interface displayed when format conversion is being performed on a first material;
[0074] Figure 7h This is a schematic diagram of a sharing interface displayed after the first material is converted into PDF;
[0075] Figure 7i A schematic diagram of the sharing interface after the user scrolls the sharing interface;
[0076] Figure 7j A schematic diagram of a sharing interface when sharing is triggered when the electronic device is running a second application;
[0077] Figure 8 This is a schematic diagram of the sharing interface when the first material is multiple files;
[0078] Figure 9a A schematic diagram of thumbnails of first materials in different file formats;
[0079] Figure 9b Icons displayed in the thumbnail sub-area for different quantities of first materials;
[0080] Fig.10 This is a diagram of the sharing interface after the user clicks the application icon;
[0081] Fig.11 A schematic diagram showing a sharing interface showing all controls;
[0082] Fig.12a A schematic diagram of the application selection interface displayed after the user clicks to display all controls;
[0083] Figure 12b Another schematic diagram of the application selection interface displayed after the user clicks to display all controls;
[0084] Fig.12c This is a schematic diagram of the icon editing interface displayed after the user clicks the edit control;
[0085] Fig.12d A schematic diagram of the application selection interface displayed to the user after the icon editing is completed;
[0086] Fig.13 This is a diagram showing the size of the sharing interface. DETAILED DESCRIPTION
[0087] In order to better understand the technical solution of the present application, the embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0088] It should be clear that the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0089] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.
[0090] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0091] See also Figure 1 , Figure 1 The figure shows a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. The electronic device may be a mobile phone, a tablet computer, or other user terminals.
[0092] The electronic device includes a processor 110, a transceiver 120, and a display unit 170. The display unit 170 may include a display screen.
[0093] Optionally, the electronic device may further include a memory 130. The processor 110, the transceiver 120 and the memory 130 may communicate with each other through an internal connection path to transmit control and / or data signals. The memory 130 is used to store a computer program, and the processor 110 is used to call and run the computer program from the memory 130.
[0094] Optionally, the electronic device may further include an antenna 140 for transmitting the wireless signal output by the transceiver 120 .
[0095] The processor 110 and the memory 130 may be combined into a processing device, or more commonly, they are independent components, and the processor 110 is used to execute the program code stored in the memory 130 to implement the above functions. In specific implementation, the memory 130 may also be integrated into the processor 110, or may be independent of the processor 110.
[0096] In addition, in order to make the functions of the electronic device more complete, the electronic device may also include one or more of an input unit 160, an audio circuit 180, a camera 190 and a sensor 101, and the audio circuit may also include a speaker 182, a microphone 184, and the like.
[0097] Optionally, the electronic device may further include a power supply 150 for providing power to various devices or circuits in the electronic device.
[0098] Understandably, Figure 1 The operations and / or functions of each module in the electronic device shown are respectively for implementing the corresponding processes in the following method embodiments. For details, please refer to the description in the following method embodiments, and the detailed description is appropriately omitted here to avoid repetition.
[0099] Understandably, Figure 1The processor 110 in the electronic device shown may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (imagesignalprocessor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and / or a neural-network processing unit (neural-network processing unit, NPU), etc. Among them, different processing units can be independent devices or integrated in one or more processors. A memory can also be set in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory can save instructions or data that the processor 110 has just used or circulated. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated access is avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.
[0100] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0101] It is understandable that the interface connection relationship between the modules illustrated in the embodiments of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device. In other embodiments of the present application, the electronic device may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0102] Understandably, Figure 1 The power supply 150 shown is used to power the processor 110, the memory 130, the display unit 170, the camera 190, the input unit 160 and the transceiver 120. The antenna 140 is used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antenna. For example, the antenna 140 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0103] The transceiver 120 can provide wireless communication solutions for electronic devices, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc. The transceiver 120 can be one or more devices integrating at least one communication processing module. The transceiver 120 receives electromagnetic waves via the antenna 140, modulates the frequency of the electromagnetic wave signal and filters it, and sends the processed signal to the processor 110. The transceiver 120 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 140.
[0104] In some embodiments, the antenna 140 and the transceiver 120 of the electronic device are coupled so that the electronic device can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology, etc. The GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (QZSS) and / or satellite based augmentation system (SBAS).
[0105] The electronic device implements the display function through a GPU, a display unit 170, and an application processor. The GPU is a microprocessor for image processing, which connects the display unit 170 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0106] The display unit 170 is used to display images, videos, etc. The display unit 170 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (AMOLED), a flexible light emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light emitting diode (QLED), etc. In some embodiments, the electronic device may include 1 or N display units 170, where N is a positive integer greater than 1.
[0107] The electronic device can realize the shooting function through the ISP, the camera 190, the video codec, the GPU, the display unit 170 and the application processor.
[0108] The ISP is used to process the data fed back by the camera 190. For example, when recording a video, the camera is turned on, and light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye. The ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image.
[0109] ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 190. Camera 190 is used to capture static images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to ISP for conversion into a digital image signal. ISP outputs the digital image signal to DSP for processing. DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device may include 1 or N cameras 190, where N is a positive integer greater than 1. The digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0110] Video codecs are used to compress or decompress digital videos. Electronic devices can support one or more video codecs. In this way, electronic devices can play or record videos in multiple coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0111] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and continuously self-learn. NPU can realize applications such as intelligent cognition of electronic devices, such as image recognition, face recognition, voice recognition, text understanding, etc.
[0112] The memory 130 can be used to store computer executable program codes, which include instructions. The memory 130 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device (such as audio data, a phone book, etc.), etc. In addition, the memory 130 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device by running instructions stored in the memory 130 and / or instructions stored in a memory provided in the processor.
[0113] The electronic device can implement audio functions such as music playing and recording through the audio circuit 180, the speaker 182, the microphone 184, and the application processor.
[0114] The audio circuit 180 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio circuit 180 can also be used to encode and decode audio signals. In some embodiments, the audio circuit 180 can be arranged in the processor 110, or some functional modules of the audio circuit 180 can be arranged in the processor 110.
[0115] The speaker 182, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device can listen to music or listen to a hands-free call through the speaker 182.
[0116] Microphone 184, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can input the sound signal into microphone 184 by speaking close to microphone 184. The electronic device can be provided with at least one microphone 184. In other embodiments, the electronic device can be provided with two microphones 184, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device can also be provided with three, four or more microphones 184 to realize the collection of sound signals, noise reduction, identification of sound sources, and realization of directional recording function, etc.
[0117] The file sharing method in the embodiment of the present application can be Figure 2 The system architecture shown is implemented in Figure 2 The system architecture of electronic equipment includes the kernel part, the framework layer part and the application layer part; the kernel part includes the driver layer and the real-time operating system, the driver layer includes GPU (graphics processor), display driver (specifically LCD driver in the figure), TP driver (touch screen driver), buttons, etc.; the real-time operating system includes interrupt management, task scheduling, MEM (memory management); the framework layer includes: basic system capabilities, underlying software services, hardware service capabilities, etc.; the application layer includes: system applications (such as email, contacts, browsers, etc.), third-party applications (such as social applications and video applications provided by third parties, etc.).
[0118] System applications and third-party applications include applications with the ability to share materials. For example, system applications include global collections. Users can add various materials to global collections according to actual needs during the use of electronic devices. The materials in this article can be in the form of text, pictures, audio, video, applications, URLs, contacts, etc. For example, see Figure 3a , the user is watching a video through a video application, and the user needs to save the currently playing video frame as a material, then the user can use a preset gesture operation, such as pressing and sliding the touch screen with three fingers to enable global collection, so that the currently playing video frame is added to the global collection as a material. For the convenience of description below, the video frame added to the global collection is recorded as "photographic work.jpg".
[0119] Users can click on the global favorites icon displayed on the desktop or application interface to control the electronic device to display Figure 3b The floating window 310 of the global collection is shown, and the floating window 310 displays various materials added to the global collection, such as the aforementioned "photography work.jpg". The user can interact with the materials displayed in the floating window 310 to control the electronic device to share these materials, remove them from the global collection, and perform other operations.
[0120] The floating window 310 includes a window control 311. The user can move, maximize, minimize, and other operations on the floating window 310 by interacting with the window control 311. For example, the user can move the floating window 310 by pressing the window control 311 with a finger and dragging it. For another example, the user clicks the window control 311 to control the electronic device to display an operation bar near the window control 311. The operation bar includes a maximize button, a minimize button, and a close button. The user clicks the maximize button to maximize the floating window 310. The maximized floating window 310 is shown in FIG. Figure 3c Users can interact with these materials to operate them.
[0121] For example, in response to a user's long press operation on "photography.jpg", the electronic device displays a toolbar in the interface, and the toolbar includes a variety of different buttons, such as Figure 4 As shown in FIG. 1 , the toolbar includes a share button, a remove button, an edit button, etc. In response to a user clicking on the share button, the electronic device may display the following: Figure 5 The sharing interface shown has icons representing different sharing methods, such as an icon for sharing the file to Bob's mobile phone, an icon for sending the file to WeChat friends via WeChat, etc. The user controls the electronic device to share "photographic work.jpg" to the corresponding electronic device, contact or application by clicking on these icons.
[0122] However, due to actual needs of users, users may need to convert the material into other formats before sharing. Figure 3c Take the interface shown as an example. Assuming that the user wants to share the "photographic work.jpg" shown therein, but the user needs to share the material in pdf format due to actual needs, in the related art, the user needs to first exit the global collection interface, open an application with a format conversion function, and use the application to convert the format of the material "photographic work.jpg" to pdf format. For the convenience of description, the material obtained after format conversion is recorded as "photographic work.pdf". The user then adds "photographic work.pdf" to the global collection, opens the global collection interface, and long presses the icon of the material "photographic work.pdf" in the global collection interface to share the material "photographic work.pdf". The operation is relatively cumbersome, resulting in low efficiency in material sharing.
[0123] Based on this, the present application provides a material sharing method, which is applied to any electronic device with material sharing function, including but not limited to mobile phones, tablet computers, etc. Figure 6 As shown, including:
[0124] Step S601: When the electronic device runs a first application, a first interface is displayed, in which a first material in a first format is displayed.
[0125] Step S602: In response to a sharing instruction for the first material, display a first sharing interface.
[0126] Among them, the first sharing interface includes a sharing title area and a path selection area, the sharing title area of the first sharing interface includes a format conversion control and a format sub-area, the format sub-area of the first sharing interface displays the first format, and the path selection area of the first sharing interface displays the sharing method of the first material in the first format.
[0127] Step S603: In response to an interactive instruction for the format conversion control of the first sharing interface, a second sharing interface is displayed, and the second sharing interface is displayed in a second format.
[0128] The second format is different from the first format, and the first material should be convertible into the second format.
[0129] Step S604: in response to the format selection instruction for the second format, convert the format of the first material from the first format to the second format, and display a third sharing interface.
[0130] The third sharing interface includes a sharing title area and a path selection area. The sharing title area in the third sharing interface also includes a format sub-area and a format conversion control, and since the format of the first material is converted to the second format at this time, the format sub-area of the third sharing interface displays the second format, and the path selection area of the third sharing interface displays the sharing method of the first material in the second format.
[0131] Step S605 , in response to the sharing method of the path selection area of the third sharing interface, sharing the first material in the second format according to the sharing method.
[0132] In the embodiment of the present application, a format conversion control is provided in the first sharing interface, so that the user can select the second format by interacting with the format conversion control, thereby controlling the electronic device to convert the format of the first material from the original first format to the second format, and displaying the third sharing interface for the first material after format conversion, so that the user can share the first material after format conversion through the displayed third sharing interface, which is equivalent to format conversion of the first material before sharing, and the user can directly convert the format of the material in the sharing interface, and automatically display the sharing interface for the material after format conversion, without manually opening the application with format conversion function, nor manually finding the material after format conversion in the application with sharing function, so the operation is simple and can improve the efficiency of material sharing.
[0133] S601-S605 are described below:
[0134] Among them, in S601, the first application is an application that has the ability to share materials and has a format conversion requirement. For example, the first application may include system applications such as global favorites, contacts, emails, and browsers, and may also include note applications, video applications, social applications, etc. provided by third parties. It can be understood that the materials included in the gallery are all pictures, and users often use the gallery to browse or process pictures. Therefore, it can be considered that when the electronic device runs the gallery, the material that the user wants to share is the picture, that is, there is no need for format conversion at this time. Therefore, in a possible embodiment, the first application does not include the gallery.
[0135] The first interface is the interface of the first application. For example, when the first application is a global favorite, the first interface displayed is as follows: Figure 3c Different first materials may have different formats, so there may be multiple different first formats.
[0136] In S602, the user may input the sharing instruction in different ways according to different first applications. Figure 4 What is shown is only a method of inputting sharing instructions when the first application is a global collection. In other possible embodiments, the user can input sharing instructions in other ways, such as dragging the icon of the first material to a designated area (such as the top of the screen), or inputting sharing instructions by continuously tapping the touch screen of the electronic device with the knuckles.
[0137] The first sharing interface is displayed floating on the first interface, for example, Figure 7a As shown, Figure 7a The inverted triangle icon in the first sharing interface is the format conversion control 211 .
[0138] In addition to the format conversion control and the format sub-area for displaying the first material format, the share title area may also include a sub-area for displaying various information. Figure 7a Taking the example shown as an example, the sharing title area 210 in the first sharing interface includes a format conversion control 211 , a title sub-area 212 , a format sub-area 213 , a property sub-area 214 , and a thumbnail sub-area 215 .
[0139] In other possible embodiments, the sharing title area 210 includes only part of the sub-areas in the title sub-area 212, the property sub-area 214, and the thumbnail sub-area 215 in addition to the format conversion control 211 and the format sub-area 213. Moreover, the first sharing interface may also include other areas in addition to the sharing title area 210 and the path selection area 220. Figure 7aAs shown in the example, the first sharing interface also includes an atomic service area 230. Each area in the first sharing interface will be described in detail below and will not be described again here.
[0140] In S603, depending on the format conversion control, the interactive instruction for the format conversion control may be a click operation instruction, a long press operation instruction, or a slide operation instruction. Figure 7a For example, the interaction instruction may be a click operation instruction for clicking an inverted triangle icon. In this example, in response to the interaction instruction, a floating window showing each second format pops up below the inverted triangle icon, and the electronic device will display the following: Figure 7b In other possible examples, the second sharing interface may also be in other styles, for example, Figure 7a On the basis of the first sharing interface shown, a drop-down menu is displayed in the format sub-area 213 to display the second sharing interface, and each option in the drop-down menu is a second format.
[0141] The second format in this article should be a format that the first material selected by the sharing instruction can be converted to, and it should be different from the first format. For example, assuming that the first material is a picture in JPG format, the picture can be converted to JPG format or to PDF format, and JPG format is the first format, so the second format is PDF format.
[0142] In a possible embodiment, the second sharing interface can also display the first format and the second format at the same time. Figure 7b For example, Figure 7b In the example, the second sharing interface not only displays the second format (i.e., PDF format) but also displays the first format (i.e., JPG format), and in order to distinguish the first format from the second format, Figure 7b In the example shown, a √ icon is added after the first format (i.e., JPG format). Figure 7c , Figure 7d Same reason.
[0143] For example, the first material is a contact card in a QR code format. The contact card in a QR code format can be converted into a vCard format or a text format. Therefore, the second sharing interface is as follows: Figure 7c As shown, the QR code format, vCard format, and text format are displayed; for example, assuming that the first material is a document in text format, the document in text format can be converted into PDF format, WORD format, and TXT format, so the second sharing interface is as follows Figure 7d The displayed formats include text, PDF, WORD and TXT.
[0144] When there are multiple first materials, the intersection of the second formats preset for each first format is displayed. For example, assuming that the second formats preset for the text format include PDF format and TXT format, and the second formats preset for the picture format include JPG format and PDF format, and the sharing instruction selects two materials, one of which is text and the other is a picture, then the second format displayed in the second sharing interface is the intersection of {PDF format, TXT format} and {JPG format, PDF format}, that is, the second format displayed is PDF format.
[0145] To more clearly explain the formats into which the first materials in each first format can be converted, please refer to Table 1, which shows a possible correspondence between the first format and the second format. In other possible embodiments, the second format preset for each file format may also be different from Table 1. For example, the second format for pictures includes not only JPG format and long image, but also BMP format. For example, the second format for text may only include PDF format and TXT format, but not WORD format.
[0146] The corresponding second formats can be set in advance for different first formats, so that the electronic device displays the second format corresponding to the first format in the second sharing interface according to the corresponding relationship. Exemplarily, the corresponding relationship can be shown in Table 1:
[0147] Table 1. Correspondence between the first format and the second format
[0148]
[0149] The first column in Table 1 is used to indicate the first format corresponding to each row, such as the second row corresponds to the text format, and the third row corresponds to the picture format. The first row is used to indicate the second format corresponding to each column, such as the second column corresponds to the WORD format, and the third column corresponds to the PDF format. Each √ indicates that the second format corresponding to the first format represented by the row to which the √ belongs includes the second format represented by the column to which the √ belongs. By way of example, the √ in the second row and the second column indicates that when the first format is text, the corresponding second format includes the WORD format. Each blank table item indicates that the second format corresponding to the first format represented by the row to which the blank table item belongs does not include the second format represented by the column to which the blank table item belongs. By way of example, the blank table item in the second column of the third row indicates that when the first material is a picture, the second format does not include the WORD format.
[0150] As shown in Table 1, in the case where the first material is a picture, if the first material is one picture, the second format only includes PDF format and JPG format, but does not include the long picture format. If the first material is multiple pictures, the second format includes not only PDF format and JPG format, but also the long picture format.
[0151] When the first material is in WORD or PDF format, if the number of the first material is one and the number of pages of the first material is not greater than the preset first page number threshold, the second format includes the PDF format, and if the number of the first material is multiple or the number of pages of the first material is greater than the preset first page number threshold, the second format does not include the PDF format. If the number of the first material is one and the number of pages of the first material is not greater than the preset second page number threshold, the second format includes the long image format, and if the number of the first material is multiple or the number of pages of the first material is greater than the preset second page number threshold, the second format does not include the long image format.
[0152] The first page number threshold and the second page number threshold are thresholds preset according to actual needs. For example, the first page number threshold is 200 pages, and the second page number threshold is 50 pages. For another example, the first page number threshold is 75 pages, and the second page number threshold is 75 pages. For another example, the first page number threshold is 50 pages, and the second page number threshold is 80 pages, etc. This embodiment does not impose any limitation on this.
[0153] Furthermore, when the first material is audio, video, HTML or application, it can be considered that the user wants to share the first material in the first format. Therefore, as shown in Table 1, for the first material in the audio, video, HTML and application formats, there is no second format. Therefore, when the first material is a file in these file formats, there is no format conversion control 211 in the sharing interface. For example, when the first material is an application, the sharing interface is as shown in Table 1. Figure 7e As shown, when the first material is HTML, the sharing interface is as follows Figure 7f shown.
[0154] In S604, the format selection instruction is an instruction input by the user according to actual needs, which is used to indicate which file format the first material needs to be converted into. Figure 7b Taking the example shown as an example, the user can input a format selection instruction by clicking the area where the word "PDF" is located, and the format selection instruction is used to instruct the electronic device to convert the format of the first material into PDF format.
[0155] During the execution of step S604, in order to remind the user that the current electronic device is currently converting the format, a converting interface may be displayed, in which a picture or text is used to remind the user that the current electronic device is currently converting the format. For example, the converting interface may display the text "Converting" and the following information: Figure 7g The waiting pattern 241 shown. The text "Converting" and the waiting pattern 241 can be displayed in a pop-up window, a card or a toast prompt.
[0156] And if Figure 7gAs shown, a cancel conversion control 242 can also be provided in the converting interface. The user can interact with the cancel conversion control 242 by clicking, long pressing, and other operations to input interactive instructions. The electronic device responds to the interactive instruction to the cancel conversion control 242, terminates execution of step S604, and redisplays the first sharing interface.
[0157] By setting a cancel conversion control 242 in the converting interface, the user can cancel the format conversion according to actual needs. For example, the user finds that there is no need to convert the format of the first material, or the user finds that the second format selected previously is incorrect. The user can click the cancel conversion control 242 to control the electronic device to terminate the format conversion of the first material.
[0158] Furthermore, the third sharing interface displayed in S604 includes the same area as the first sharing interface, and each area includes the same sub-area, but since the format of the first material is changed from the first format to the second format, the information displayed in each sub-area will change accordingly. For example, the second sharing interface Figure 7b As an example, suppose the user clicks Figure 7b The “PDF format” in the control electronic device converts the first material into the PDF format, and records the first material converted into the PDF format as “photographic work.pdf”, then the third sharing interface displayed is as follows Figure 7h As shown, compared with the first sharing interface, the information displayed in the title sub-area 212, the format sub-area 213, and the thumbnail sub-area 215 in the third sharing interface have all changed, wherein the information displayed in the title sub-area 212 has changed from "photographic work.jpg" to "photographic work.pdf", and the information displayed in the format sub-area 213 has changed from "JPG" to "PDF".
[0159] In S605, the sharing method is input by the user through interaction with the path selection area of the third sharing interface. The instruction is used to instruct the electronic device to share the first material in the second format through the sharing method. The details of how the user inputs the sharing method will be described in detail in the following text with respect to the relevant content of the path selection area 220, which will not be repeated here.
[0160] Furthermore, if the user does not need to convert the format of the first material, the user can also interact with the path selection area 220 in the first sharing interface to input a sharing method to control the electronic device to share the first material in the first format according to the input sharing method. Figure 7aTaking the first sharing interface shown as an example, if the user wants to share "photographic work.jpg" directly to Bob's mobile phone, the user can click the "Bob's mobile phone" icon in the path selection area 220 of the first sharing interface to control the electronic device to share "photographic work.jpg" to Bob's mobile phone.
[0161] The sharing title area 210 , the path selection area 220 , and the atomic service area 230 are described below respectively:
[0162] For the convenience of description, the following will be Figure 7a The first sharing interface shown is used as an example for explanation. It can be understood that the third sharing interface includes the same area as the first sharing interface. The only difference is that due to the different formats of the first material, the information displayed in some areas of the first sharing boundary and the third sharing interface may be different. For example, the format sub-area 213 in the first sharing interface displays the first format, while the format sub-area 213 in the third sharing interface displays the second format. Therefore, the description of each area in the first sharing interface below is also applicable to the third sharing interface.
[0163] and Figure 7a The figure is only a schematic diagram of the sharing interface provided by the present application. In other possible embodiments, the sharing interface may be not as Figure 7a For example, the sharing interface does not include Figure 7a The path selection area 220 shown in FIG. 10 is shown in FIG. 11 . For example, the sharing interface does not include Figure 7a The atomic service area 230 shown in FIG. 2 may also include, for example, a sharing interface further including a sharing title area 210 , a path selection area 220 and other areas other than the atomic service area 230 . Figure 7a The sharing interface shown is a sharing interface displayed in response to a sharing instruction when the electronic device runs the first application, and the sharing interface displayed in response to a sharing instruction when the electronic device runs the second application (hereinafter referred to as the fourth sharing interface) does not include Figure 7a The share title area 210 includes Figure 7a The atomic service area 230 is shown in the figure, wherein the second application is different from the first application, that is, the second application has no intersection with the first application, and the second application at least includes a gallery. Exemplarily, the first application includes a global collection, so the second application should not include a global collection service, and the second application includes a gallery, so the first application should not include a gallery.
[0164] For example, in a possible embodiment, if the fourth sharing interface is Figure 7j As shown, Figure 7j The path selection area 220 and the atomic service area 230 in Figure 7a The path selection area 220 and the atomic service area 230 in FIG. 2 are the same, so only the following will be described in detail. Figure 7a For example, Figure 7a The difference is that in Figure 7j The fourth sharing interface shown does not include the sharing title area 210 .
[0165] First, the sharing title area 210 is described. Figure 7a In the example shown, the sharing title area 210 includes a format conversion control 211, a title sub-area 212, a format sub-area 213, an attribute sub-area 214, and a thumbnail sub-area 215. The format conversion control 211 is used to implement interaction with the user, so that the user can control the electronic device to display each second sharing interface, so that the user can select the second format and control the electronic device to convert the format of the first material into the second format. For how the user interacts with the format conversion control 211 and how the electronic device implements format conversion, please refer to the relevant content of the aforementioned steps S603 and S604, which will not be repeated here.
[0166] Each sub-area of the sharing title area 210 will be described below:
[0167] The title sub-area 212 is used to display the name of the first material. For example, if the first material is a file “photographic work.jpg”, the title sub-area 212 may be as follows: Figure 7a The text "Photographic Works.jpg" is shown. If the first material is a document, the material name may refer to the name of the document or the title of the document. For example, if a document named "Learning Materials.doc" contains a paper titled "A Review of the XXX Technical Field", the material name may be "Learning Materials.doc" or "A Review of the XXX Technical Field". By setting the title sub-area 212 in the sharing interface, the user can determine the first material selected by him / her based on the information displayed in the title sub-area 212, thereby reducing the possibility of the user sharing the wrong material.
[0168] Furthermore, in some application scenarios, users may wish to share multiple materials at a time, so the number of first materials may be multiple. In a possible embodiment, for the case where the number of first materials is multiple, the electronic device may display the material names of all first materials in the title sub-area 212, or may display the file names of some first materials in the title sub-area 212, for example, only displaying the file name of one of the first materials. The number of first materials herein refers to the number of first materials selected by the user for sharing, rather than the total number of all first materials displayed on the first interface.
[0169] In another possible embodiment, only when the number of the first material is one, the electronic device displays the material name of the first material in the title sub-area 212, and when the number of the first material is multiple, the electronic device displays the number of the first material in the title sub-area 212. Selecting this embodiment can avoid displaying too many words in the title sub-area 212 when the number of the first material is multiple, so that the title sub-area 212 is more concise, so that the user can more easily obtain the relevant information of the first material from the title sub-area 212.
[0170] For example, assuming that the number of the first materials is 5, the following can be done: Figure 8 As shown, the electronic device displays the text "5 items have been selected" in the title sub-area 212. In other examples, the text displayed may also be "5 files in total", "5 items currently selected", etc., which can indicate that the number of the first materials is 5. Figure 8 The examples shown are not intended to be limiting in any way.
[0171] Still Figure 7a For example, the format sub-area 213 is used to display the file format of the first material. For example, if the first material is a file “photographic work.jpg”, the format sub-area 213 may be as follows: Figure 7a The text “JPG” is shown. By setting the format sub-area 213 in the sharing interface, the user can determine the current format (ie, the first format) of the first material according to the information displayed in the format sub-area 213, thereby determining whether the format of the first material needs to be converted.
[0172] Furthermore, in the case where there are multiple first materials, in a possible embodiment, the electronic device may display the formats of all first materials in the format sub-region 213 , or may display the formats of some first materials in the format sub-region 213 .
[0173] In another possible embodiment, only when the number of the first material is one, the electronic device displays the format of the first material in the format sub-area 213, and when the number of the first material is multiple, the electronic device displays text information for indicating the default format in the format sub-area 213. It can be understood that when the number of the first material is multiple, the file format of each first material may be different, so it is difficult to concisely display the file format of each first material in the format sub-area 213. Since all the first materials can be regarded as being in the default format before the format conversion is performed, the text information for indicating the default format can simultaneously indicate different file formats, that is, the selection of this embodiment can concisely indicate the file format of each first material in the format sub-area 213, thereby assisting the user in determining whether the format conversion is required.
[0174] For example, Figure 8As shown, the text information displayed in the format sub-area 213 is "default format", and the text information displayed in other possible examples may also be "default format", "original format" and other text information that can represent the default format.
[0175] Furthermore, it can be understood that, for the first material that has undergone format conversion, the format sub-area 213 in the displayed third sharing interface is used to indicate the second format selected by the user in step S603.
[0176] Still Figure 7a For example, the attribute sub-area 214 is used to display the target attribute of the first material. For example, assuming that the target attribute is the data volume, and the data volume of the first material is 16MB, then Figure 7a As shown, the electronic device displays the text "16MB" in the attribute sub-area 214. For another example, assuming that the target attribute is the geographic location, and the first material is a photo taken in XX City, so the geographic location is "XX City", the electronic device in this example displays the text "XX City" in the attribute sub-area 214. In addition, in a possible embodiment, if the target attribute is the geographic location, when the electronic device does not turn on the privacy protection mode, the electronic device will display the geographic location of the first material in the attribute sub-area 214, and when the electronic device has turned on the privacy protection mode, the electronic device will not display the geographic location of the first material in the attribute sub-area 214.
[0177] By setting the attribute sub-area 214 in the sharing interface, the user can judge whether the first material needs to be format converted and / or shared according to the attribute information displayed in the attribute sub-area 214, thereby achieving more accurate format conversion and file sharing. For example, if the target attribute is data volume, the user judges that the data volume of the first material is too large and it takes a lot of time to convert the format based on the attribute information displayed in the attribute sub-area 214, and therefore chooses not to convert the format of the first material. For another example, if the target attribute is geographic location, and the geographic location of the first material is "XX City", and the user wants to share the photos taken while traveling in YY City with friends, the user can judge that there is no need to share the first material based on the attribute information displayed in the attribute sub-area 214.
[0178] The target attribute depends on the application (i.e., the first application) running in the foreground of the electronic device when the sharing instruction is received. For example, if the user enters a sharing instruction for a picture in the global collection while using it, the target attribute is the attribute corresponding to the global collection. For another example, if the user enters a sharing instruction for a certain page while using a browser, the target attribute is the attribute corresponding to the browser. For another example, if the user enters a sharing instruction for a certain page while using file management, the target attribute is the attribute corresponding to file management.
[0179] The attributes corresponding to each application may be different according to different application scenarios. For example, in one possible embodiment, the attributes corresponding to global collection and file management are data volume, in another possible embodiment, the attribute corresponding to the file management service is file size, and the attribute corresponding to global collection is geographic location. In yet another possible embodiment, the attribute corresponding to the file management service is the storage path of the material, and the attribute corresponding to global collection is location.
[0180] The attribute corresponding to the browser is the URL. For example, when a user uses the browser service to browse a website with the URL "XXXX.com", and enters a sharing instruction for an article in the website, the first material is the article, and the electronic device displays the text "XXXX.com" in the attribute sub-area 214.
[0181] The attribute corresponding to the contact card application is the application name, that is, the contact card. For example, when the user inputs a sharing instruction for one of the cards during the use of the contact card service, the first material is the card, and the electronic device displays the text "contact card" in the attribute sub-area 214.
[0182] The thumbnail sub-area 215 is used to display thumbnails of the first material, so that the user can more intuitively determine the content and / or file format of the first material through the displayed thumbnails. The thumbnails of the first material in different first formats are described below:
[0183] See also Figure 9a , Figure 9a Shown are thumbnails of the first material in each file format, wherein the first row, from left to right, are thumbnails of the first material in pdf format, thumbnails of the first material in audio format, thumbnails of the first material in compressed package format, and thumbnails of the first material in web page connection format; the second row, from left to right, are thumbnails of the first material in contact card format, thumbnails of the first material in picture format, thumbnails of the first material in video format, thumbnails of the first material in text format, and thumbnails of the first material in application format.
[0184] The text displayed in the thumbnail of the first material in the contact card format is the first character of the contact name. The thumbnail of the first material in the video format is the video cover with a play button. The text displayed in the thumbnail of the first material in the text format is part or all of the text in the first material. The thumbnail of the first material in the application format is the icon of the first material.
[0185] In the case where there are multiple first materials, the electronic device will stack the thumbnails of each first material to obtain a stacked thumbnail, and display the stacked thumbnail in the thumbnail sub-area. In one possible embodiment, the electronic device may stack the thumbnails of all the first materials to obtain a stacked thumbnail. In another possible embodiment, the electronic device may stack the thumbnails of some of the first materials to obtain a stacked thumbnail. In yet another possible embodiment, if the number of first materials is not greater than N, the electronic device stacks the thumbnails of all the first materials to obtain a stacked thumbnail. If the number of first materials is greater than N, the electronic device stacks the thumbnails of the first N first materials to obtain a stacked thumbnail.
[0186] Wherein, N is a preset positive integer greater than 1, for example, N can be 2, 3, 4 or other values. The first N first materials refer to: the first N shared files in the order of selecting the first material according to the sharing instruction. For example, assuming that N=3, and the user selects file A, file B, file C and file D as the first material in sequence when selecting the first material, the first N first materials are: file A, file B and file C.
[0187] See also Figure 9b , Figure 9b Shown is a schematic diagram of stacked thumbnails provided by this application. Figure 9b From left to right in the figure are: a thumbnail of the first material, a stacked thumbnail obtained by stacking two thumbnails of the first material, and a stacked thumbnail obtained by stacking three thumbnails of the first material. In this example, the size of the thumbnail of the first material and the stacked thumbnail obtained by stacking are both 48 pixels * 48 pixels, and the size of the rounded corners is 8dp.
[0188] For the stacked thumbnails obtained by stacking two thumbnails of the first material, the size of the thumbnail stacked in the front is 46 pixels * 46 pixels, the opacity is 100%, and the size of the thumbnail stacked in the back is 44 pixels * 44 pixels, and the opacity is 60%. For the stacked thumbnails obtained by stacking three thumbnails of the first material, the size of the thumbnail stacked in the front is 44 pixels * 44 pixels, the opacity is 100%, the size of the thumbnail stacked in the middle is 42 pixels * 42 pixels, the opacity is 60%, and the size of the thumbnail stacked in the back is 40 pixels * 40 pixels, and the opacity is 20%.
[0189] Next, the path selection area 220 is described. Figure 7a In the example shown, the path selection area 220 includes one or more device icons 221 and one or more application icons 222 .
[0190] Each device icon 221 corresponds to a device. The user can interact with the device icon 221 to input a sharing method. In response to the sharing method, the electronic device shares the first material in the second format to the device corresponding to the device icon 221. For example, Figure 7h As shown in the example, the first device icon 221 from the left corresponds to the device “Bob’s mobile phone”. In response to the sharing method input by the user through interaction with the device icon 221, the electronic device shares the material “photographic work.pdf” to the device “Bob’s mobile phone”.
[0191] Each application icon 222 corresponds to an application. The user can interact with the device icon 221 to input a confirmation instruction. In response to the sharing method, the electronic device shares the first material in the second format through the application corresponding to the application icon 222. For example, Figure 7h Taking the example shown, the third application icon 222 from the left corresponds to the application "Mail". In response to the sharing method input by the user through interaction with the application icon 222, the electronic device shares the material "Photographic Works.pdf" through the application "Mail", that is, the electronic device sends the file "Photographic Works.pdf" to the designated mailbox via email.
[0192] Of course, the path selection area 220 may also include one or more contact icons, each contact icon corresponds to a contact, and the user can input a sharing method by interacting with the contact icon. In response to the sharing method, the electronic device shares the first material in the second format to the contact corresponding to the contact icon. Each contact icon can be represented by the corresponding contact's avatar or name.
[0193] The user may input the sharing method by clicking the device icon 221 or the application icon 222, or by long pressing the device icon 221 or the application icon 222. It is understandable that some applications provide a variety of different sharing methods. For example, a social application with a weblog function provides the following different sharing methods:
[0194] Method 1: Send the first material to your friends
[0195] Method 2: Publish the first material as a web log
[0196] Method 3: Send the first material to the server of the social application provider so as to collect the first material through the collection function provided by the social application
[0197] For these applications that provide a variety of different sharing methods, in response to the user's interactive instructions on the application icon 222 corresponding to the application, such as a click operation, a long press operation, etc., the electronic device will display the various sharing methods provided by the application for the user to choose. For example, Fig.10 As shown, Fig.10 In the example shown, in response to an interactive instruction for the application icon 222, the electronic device displays various sharing methods provided by the application in the form of a floating window.
[0198] The user can input the sharing method to control the electronic device to share the material in the second format according to the sharing method input by the user. Fig.10 For example, the user can enter the sharing method by clicking the area where the text "Send to Friends" is located. In this case, the sharing method entered by the user is the aforementioned method one. The user can also enter the sharing method by clicking the area where the text "Add to Favorites" is located. In this case, the sharing method entered by the user is the aforementioned method three.
[0199] Due to the size of the electronic device display screen, the path selection area 220 cannot display all device icons 221 and all application icons 222 at the same time. For example, see Figure 7a , Figure 7a Four device icons 221 and four application icons 222 are displayed in the path selection area 220 at the same time. The remaining device icons 221 and application icons 222 are not displayed in the path selection area 220. The user can control the electronic device to switch the device icons 221 and application icons 222 displayed in the path selection area 220 through interactive commands such as sliding and dragging.
[0200] For example, see Figure 7a and Fig.11 , Figure 7a The four application icons 222 displayed in the path selection area 220 are application icons 222 corresponding to the application "browser", the application "contacts", the application "mail" and the application "memo". The user can control the electronic device to switch the application icons 222 displayed in the path selection area 220 to the application icon 222 displayed in the path selection area 220. Fig.11 As shown, Fig.11 The application icons 222 displayed in the middle path selection area 220 are application icons 222 corresponding to the application "call", the application "message" and the application "music". Fig.11 In the example, all display controls 223 are also displayed in the path selection area 220 . In other possible examples, all display controls 223 may not be included in the path selection area 220 .
[0201] In response to the user's interactive instructions for all display controls 223, the electronic device displays an application selection interface, in which each application icon 222 is displayed. The size of the application selection interface should be larger than the size of the path selection area 220. For example, the application selection interface can be as follows: Fig.12a The user can enter a confirmation instruction by interacting with the application icon 222 in the application selection interface, and the interaction method is the same as the interaction method between the user and the application icon 222 in the path selection area 220. Please refer to the relevant description in the previous text, which will not be repeated here.
[0202] By setting all display controls 223, the user can control the electronic device to display the application selection interface through all display controls 223. Since the size of the application selection interface is larger than the path selection area 220, more application icons 222 can be displayed in the application selection interface at the same time, allowing the user to easily choose which application to share the first material through.
[0203] When too many application icons 222 are displayed simultaneously in the application selection interface, it may be difficult for the user to find the application icon 222 that he needs from a large number of application icons 222. Based on this, in a possible embodiment, the application selection interface is as follows: Figure 12b As shown, a first display area 310 and a second display area 320 are provided. Figure 12b In the example shown, the first display area 310 is located at the top of the application selection interface, and the first display area 310 is used to display the application icon 222. Therefore, the first display area 310 in this example may also be referred to as a top application area. In other possible embodiments, the first display area 310 may also be located on the left side, right side, bottom, etc. of the application selection interface.
[0204] In this example, there are two types of application icons 222, which are respectively recorded as first-type application icons 222a and second-type application icons 222b. The number of first-type application icons 222a should be less than a preset number threshold, which can be 4, 5, or other positive integers. There is no intersection between the first-type application icons 222a and the second-type application icons 222b, and the union of the first-type application icons 222a and the second-type application icons 222b is all the application icons 222.
[0205] The first display area 310 is used to display first-category application icons 222a, and the second display area 320 is used to display second-category application icons 222b. Since the number of first-category application icons 222a is less than the preset number threshold, that is, the number of application icons 222 displayed in the first display area 310 is relatively small, if the application icon 222 required by the user is the first-category application icon 222a, the user can easily find the required application icon 222 from the first display area 310, which effectively improves the speed at which the user finds the required application icon 222, thereby improving the efficiency of file sharing.
[0206] The user can set the first category application icon 222a according to actual needs. For example, if the user often shares files through the application "browser", the user can set the application icon 222 corresponding to the application "browser" as the first category application icon 222a, and the application icon 222 not set as the first category application icon 222a by the user is the second category application icon 222b. If the user does not set the first category application icon 222a, Figure 12b As shown, the first display area 310 does not display the application icon 222 , and displays the text “No top shared application yet”.
[0207] The method for the user to set the first type of application icon 222a can be found in Figure 12b , Figure 12b An editing control 330 is shown in the upper right corner of the application selection interface. In other examples, the editing control may also be located at other positions of the application selection interface, such as the upper left corner, the right sidebar, etc.
[0208] In response to the interactive instruction for the editing control, the electronic device displays the icon editing interface. For example, the icon editing interface may be as follows: Fig.12c As shown, it includes a selected area 410 and a candidate area 420. The selected area initially displays various first-category application icons 222a, and the candidate area 420 initially displays various second-category application icons 222b. Figure 12b Taking the example shown as an example, since there is no first-category application icon 222a in this example, all application icons 222 are second-category application icons 222b. Therefore, when the icon editing interface is displayed, no application icon 222 is initially displayed in the selected area 410, and all application icons 222 are displayed in the alternative area 420.
[0209] The user can interact with each application icon 222 in the icon editing interface to control the electronic device to move the application icon 222 displayed in the selected area 410 to the candidate area 420, and to move the application icon 222 displayed in the candidate area 420 to the selected area 410. In addition, the user can also adjust the order of the application icons 222 in the selected area 410 by dragging the application icons 222 displayed in the selected area 410. For example, if the user drags the icon "Contact" to the left of the icon "Browser", the order can be adjusted from icon "Browser" → icon "Contact" → icon "Social Application A" → icon "Memo" to: icon "Contact" → icon "Browser" → icon "Social Application A" → icon "Memo".
[0210] The user can input a completion editing instruction by clicking the completion editing control 430 of the icon editing interface. In other examples, the completion editing control 430 can also be located at other locations of the icon editing interface. In response to the completion editing instruction, the electronic device sets the application icon 222 displayed in the selected area 410 to the first type of application icon 222a, and sets the application icon 222 displayed in the candidate area 420 to the second type of application icon 222b.
[0211] For example, Fig.12c Taking the example shown in FIG. 4 as an example, the user clicks the edit completion control 430 in the upper right corner to enter the edit completion instruction. Since in this example, the application icons 222 displayed in the selected area 410 include the icon "browser", the icon "contact", the icon "social application A", and the icon "memo", in response to the edit completion instruction, the electronic device sets the icon "browser", the icon "contact", the icon "social application A", and the icon "memo" as the first category application icons 222a, and sets the other application icons 222 as the second category application icons 222b, and the electronic device will re-display the application selection interface, and the application selection interface displayed at this time is as shown in FIG. Fig.12d As shown, the order of the application icons 222 in the first display area 310 should be the same as the order of the application icons 222 in the selected area 410 in the icon editing interface.
[0212] Finally, the atomic service area 230 is explained. The atomic service area 230 is provided with an atomic service control 231. Each atomic service control 231 corresponds to a different atomic service. In response to the user's interactive instruction to the atomic service control, the electronic device will execute the atomic service corresponding to the atomic service control on the first material.
[0213] by Figure 7aTaking the example shown as an example, three atomic service controls 231 are displayed in the atomic service area 230, which are, from top to bottom, the control "Save", the control "Add to Global Favorites" and the control "Print". The services corresponding to each control will be described in detail below and will not be repeated here.
[0214] The atomic service control 231 displayed in the atomic service area 230 depends on the service running in the foreground when the sharing instruction is received (hereinafter referred to as the sharing source) and the file format of the first material. See Table 2. In a possible embodiment, the atomic service control 231 displayed in different services and different file formats is as shown in Table 2:
[0215] Table 2. Correspondence between sharing source, file format, second format and atomic service
[0216]
[0217] Taking the row in Table 2 where the sharing source is "notes" and the first material is "text / single note" as an example, the second format of this row is "picture, text, DOC, PDF, HTML", which means: when the sharing source is a note and the first material is text or a single note, the second format includes pictures, text, DOC, PDF and HTML. The atomic service of this row is "none", which means: when the sharing source is a note and the first material is text or a single note, no atomic service control 231 is set in the atomic service area 230, that is, the atomic service area 230 may not be included in the sharing interface displayed in this case.
[0218] Taking the behavior in Table 2 where the sharing source is "global collection" and the first material is "text / single picture / single document" as an example, the second format of this row is "see Table 1 and related descriptions" to indicate that when the sharing source is global collection and the first material is text, a single picture or a single document, the second format refers to the related description in Table 1. The atomic services in this row are "print, save to text notes, save to Evernote, save to file management, add to global collection" to indicate that when the sharing source is global collection and the first material is text, a single picture or a single document, the atomic service area 230 is provided with atomic service controls 231 corresponding to the atomic service "print", the atomic service "save to text notes", the atomic service "save to Evernote", the atomic service "save to file management" and the atomic service "add to global collection".
[0219] The same is true for other items in Table 2, which will not be described here. The following will explain each atomic service separately:
[0220] The atomic service "printing" means: printing the first material through a printer that has a communication connection with the electronic device.
[0221] The atomic service "Save to Text Note" means: saving the first material in the note generated by the system application "Text Note".
[0222] The Atomic Service "Save to Evernote" means: saving the first material in the notes generated by the third-party application "Evernote".
[0223] The atomic service "Add to Global Collection" means: collecting the first material in a file collection maintained by the system application "Global Collection".
[0224] As shown in Table 2, depending on the file format of the first material, the electronic device will display the atomic service controls 231 corresponding to different atomic services in the sharing interface. Therefore, when the format of the first material is converted and the sharing interface is redisplayed, that is, when returning from the aforementioned step S604 to execute step S601, the atomic service controls 231 included in the atomic service area 230 in the redisplayed sharing interface may change.
[0225] Due to the limitation of screen size, the number of atomic service controls 231 displayed simultaneously in the atomic service area 230 is limited. Figure 7h and Figure 7i ,Depend on Figure 7i It can be seen that six atomic service controls 231 are set in the atomic service area 230, but in Figure 7h In the example shown, the atomic service area 230 only displays three atomic service controls 231. Figure 7h In the example shown, the user can control the electronic device to scroll the sharing interface through sliding operations to display the following Figure 7i The sharing interface shown.
[0226] In this application, when the electronic device is scrolling the sharing interface, Figure 7i As shown, the sharing title area 210 is always fully displayed in the sharing interface, and only the path selection area 220 and the atomic service area 230 are scrolled vertically. Thus, the user can easily learn the relevant information of the first material from the sharing title area.
[0227] In order to more clearly explain the sharing interface provided by this application, see Fig.13 , Fig.13 Shown is a size schematic diagram in the sharing interface provided by this application.
[0228] Among them, the height of the title bar of the sharing interface is 24dp, and the height of the title sharing area 210 is 72dp. In this example, the title sub-area 212 is right-aligned with the format sub-area 213, the title sub-area 212 is left-aligned with the attribute sub-area 214, and the format sub-area 213 is bottom-aligned with the attribute sub-area 214. The distance between the thumbnail sub-area 215 and the left border of the title sharing area 210 is 24dp, the distance between the format sub-area 213 and the right border of the title sharing area 210 is 24dp, the distance between the thumbnail sub-area 215 and the title sub-area 212 is 12dp, the distance between the thumbnail sub-area 215 and the upper border of the title sharing area 210 is 4dp, the distance between the title sub-area 212 and the attribute sub-area 214 is 2dp, and the distance between the format sub-area 213 and the lower border of the title sharing area 210 is 24dp.
[0229] The height of the atomic service area 230 is 168dp, the distance between the leftmost device icon 221 and the left border of the path selection area 220 is 12dp, the distance between the leftmost application icon 222 and the left border of the path selection area 220 is 12dp, each device icon 221 is aligned in the horizontal direction, each application icon 222 is aligned in the horizontal direction, and the distance between the device icon 221 and the application icon 222 in the vertical direction is 16dp. The distance between each device icon 221 and application icon 222 and the name of the icon is 2dp, and a space of 2 lines of height is reserved for the name of each device icon 221 and application icon 222.
[0230] The present application also provides an electronic device, including:
[0231] one or more processors and memory;
[0232] The memory is coupled to one or more processors, and the memory is used to store computer program codes, the computer program codes include computer instructions, and one or more processors call the computer instructions to enable the electronic device to execute any of the above-mentioned file sharing methods. The structure of the electronic device can be seen in Figure 1 , I will not go into details here.
[0233] The present application also provides a computer-readable storage medium, including a computer program, which, when executed on an electronic device, enables the electronic device to execute any of the above-described file sharing methods.
[0234] The present application also provides a computer program product, which, when executed on a computer, enables the computer to execute the steps of the file sharing method described in any one of the above embodiments.
[0235] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a solid-state hard disk Solid State Disk (SSD), etc.
[0236] The present application also provides a GUI (graphical user interface), which includes the aforementioned first interface, second interface, first sharing interface, second sharing interface, third sharing interface, fourth sharing interface, converting interface, application selection interface, and icon editing interface. How users interact with these interfaces and what interface the electronic device displays under what circumstances can be found in the aforementioned descriptions of each interface, which will not be repeated here.
Claims
1. A file sharing method, characterized in that: The method comprises: When the electronic device runs the first application, a first interface is displayed, wherein the first interface displays a first material in a first format; In response to a sharing instruction for the first material, a first sharing interface is displayed, the first sharing interface comprising a sharing title area and a path selection area, the sharing title area of the first sharing interface comprising a format conversion control and a format sub-area, the format sub-area of the first sharing interface displays the first format, and the path selection area of the first sharing interface displays a sharing method of the first material in the first format; In response to an interactive instruction for a format conversion control of the first sharing interface, displaying a second sharing interface, wherein the second sharing interface displays a second format, and the second format is different from the first format; In response to the format selection instruction for the second format, the format of the first material is converted from the first format to the second format, and a third sharing interface is displayed, the third sharing interface includes a sharing title area and a path selection area, the sharing title area of the third sharing interface includes a format conversion control and a format sub-area, the format sub-area of the third sharing interface displays the second format, and the path selection area of the third sharing interface displays a sharing method of the first material in the second format; In response to a sharing method in the path selection area of the third sharing interface, the first material in the second format is shared according to the sharing method.
2. The method according to claim 1, characterized in that The method further comprises: When executing the step of converting the format of the first material from the first format to the second format, displaying a converting interface, wherein the converting interface includes a cancel conversion control; In response to the interactive instruction for canceling the conversion control, the step of converting the format of the first material from the first format to the second format is terminated, and the first sharing interface is displayed.
3. The method according to claim 1, characterized in that The sharing title area of the first sharing interface and / or the third sharing interface further includes a title sub-area, and the title sub-area displays the material name of the first material or the number of the first materials.
4. The method according to claim 3, characterized in that When there is only one first material, the title sub-area displays the material name of the first material; When the first material is one, the title sub-area displays the number of the first material.
5. The method according to claim 3, characterized in that: When the first material is one, the format sub-area of the first sharing interface displays the first format; When there are multiple first materials, the format sub-area of the first sharing interface displays text information for indicating a default format.
6. The method according to claim 3, characterized in that The sharing title area of the first sharing interface and / or the third sharing interface further includes an attribute sub-area, and the attribute sub-area displays target attributes of the first material, wherein the target attribute is an attribute corresponding to the first application in a preset application-attribute correspondence relationship.
7. The method according to claim 6, characterized in that The business-attribute correspondence relationship includes one or more of the following correspondence relationships: File management corresponds to file size, and browser corresponds to URL.
8. The method according to claim 3, characterized in that The sharing title area of the first sharing interface and / or the third sharing interface further includes a thumbnail sub-area; When there is only one first material, the thumbnail sub-area displays a thumbnail of the first material; When there are multiple first materials, the thumbnail sub-area displays a stacked thumbnail, wherein the stacked thumbnail is obtained by stacking thumbnails of the first materials.
9. The method according to claim 8, characterized in that The stacked thumbnails are stacked in the following manner, including: When the first materials are no more than N, stacking thumbnails of all the first materials to obtain a stacked thumbnail; When there are more than N first materials, the order of selecting the first materials is according to the sharing instruction, and the thumbnails of the first N first materials are stacked to obtain stacked thumbnails.
10. The method according to claim 1, characterized in that The first sharing interface and the third sharing interface further include an atomic service area, the atomic service area includes atomic service controls, and each of the atomic service controls corresponds to an atomic service; The method further comprises: In response to the interactive instruction for the atomic service control, the atomic service corresponding to the atomic service control is executed on the first material.
11. The method according to claim 10, characterized in that The atomic service area includes atomic service controls corresponding to the format of the first material and the first application.
12. The method according to claim 11, characterized in that If the first material selected by the sharing instruction is text, a single picture or a single document, and the first application is a global collection, the atomic service area includes atomic service controls corresponding to the following atomic services: print service, save to text note service, save to Evernote service, save to file management service, and add to global collection service; If the first material selected by the sharing instruction is a plurality of pictures or a plurality of documents, and the first application is a global collection, the atomic service area includes atomic service controls corresponding to the following atomic services: save to text note service, save to Evernote service, save to file management service, and add to global collection service; If the first material selected by the sharing instruction is a video, and the first application is a global collection, the atomic service area includes atomic service controls corresponding to the following atomic services: atomic service controls corresponding to Save to Evernote service, Save to File Management service, and Add to Global Collection service; If the first material selected by the sharing instruction is an application, and the first application is a global collection, the atomic service area includes atomic service controls corresponding to the following atomic services: save to file management service, add to global collection service; If the first material selected by the sharing instruction is a link, and the first application is a global collection, the atomic service area includes atomic service controls corresponding to the following atomic services: save to text note service, save to Evernote service, and add to global collection service; If the first material selected by the sharing instruction is a compressed package, and the first application is a global favorite, the atomic service area includes atomic service controls corresponding to the following atomic services: add to global favorites service.
13. The method according to claim 1, characterized in that When there are multiple first materials, the second sharing interface displays an intersection of second formats preset for each of the first formats.
14. The method according to claim 1, characterized in that If the first material selected by the sharing instruction is text and the first application is a global collection, the second includes word format, pdf format, and txt format; If the first material is a single picture and the first application is a global collection, the second format includes PDF format and JPG format; If the first material is a plurality of pictures and the first application is a global collection, the second format includes a PDF format, a JPG format, and a long picture format; If the first material selected by the sharing instruction is a single word document and the first application is a global collection, the second format includes a PDF format and a long image format; If the first material is a single ppt and the first application is a global collection, the second format includes a pdf format and a long image format; If the first material is text or a single note and the first application is a note service, the second format includes image format, text format, DOC format, PDF format and HTML format; If the first material is a schedule and the first application is a schedule application, the second format includes a picture format, a text format, and a calendar format; If the first material is a contact and the first application is a phone, the second format includes a QR code format, a VCard format, and a text format.
15. The method according to claim 1, characterized in that The first sharing interface, the second sharing interface, and the third sharing interface are displayed in a floating manner on the first interface.
16. The method according to claim 1, characterized in that The method further comprises: When the electronic device runs a second application, a second interface is displayed, in which a second material in a third format is displayed, and the second application includes a gallery and is different from the first application; In response to the sharing instruction for the second material, displaying a fourth sharing interface, the fourth sharing interface including a path selection area and an atomic service area; In response to an interactive instruction for the atomic service control of the fourth sharing interface, executing the atomic service corresponding to the atomic service control on the second material; In response to a sharing method displayed in the path selection area of the fourth sharing interface, the second material is shared according to the sharing method.
17. An electronic device, characterized in that: include: one or more processors and memory; The memory is coupled to the one or more processors, and the memory is used to store computer program codes, wherein the computer program codes include computer instructions, and the one or more processors call the computer instructions to enable the electronic device to execute the file sharing method as described in any one of claims 1 to 16.
18. A computer-readable storage medium, characterized in that: It comprises a computer program, which, when executed on an electronic device, enables the electronic device to execute the file sharing method as claimed in any one of claims 1 to 16.
Citation Information
Cited By
File sharing method, and electronic device and storage medium
EP4657272A1