File sharing method, and electronic device and storage medium
By introducing format conversion controls into the file sharing interface, users can directly select file formats in the sharing interface and automatically convert them, solving the problem of cumbersome file sharing in the existing technology and improving sharing efficiency.
Patent Information
- Application Number
- PCT/CN2024/079356
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-07-04
- Filing Date
- 2024-02-29
- Publication Date
- 2025-03-27
AI Technical Summary
Existing file sharing methods require format conversion before sharing files, but this process is cumbersome, resulting in inefficient sharing.
Provide a file sharing method. By introducing format conversion controls into the sharing interface, users can directly select the file format to be converted in the sharing interface, and automatically display the converted sharing interface to automate format conversion and sharing.
The file sharing process is simplified, and users do not need to manually open the format conversion application and share application, which improves the efficiency and convenience of file sharing.
Smart Images

Figure CN2024079356_27032025_PF_FP_ABST
Abstract
Description
File sharing method, electronic device and storage medium
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on July 4, 2023, with application number 202310815941.X and invention name “A file sharing method, device, electronic device and storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of mobile terminal technology, and in particular to a file sharing method, electronic device, and storage medium. Background Art
[0003] 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.
[0004] 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 the computer, but the user thinks that it is not convenient to browse JPG format pictures on the computer, 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 use an application with a sharing function, such as a file management application, to select the PDF format file and use the sharing function to share the PDF format file to the computer. This operation is relatively cumbersome.
[0005] Summary of the Invention
[0006] In view of this, the present application provides a file sharing method, electronic device and storage medium for improving file sharing efficiency.
[0007] In a first aspect of the present application, a file sharing method is provided, the method comprising:
[0008] When the electronic device runs the first application, the first interface is displayed, wherein the first interface displays the first material in the first format;
[0009] In response to a sharing instruction for the first material, displaying a first sharing interface, the first sharing interface including a sharing title area and a path selection area, the sharing title area of the first sharing interface including a format conversion control and a format sub-area, the format sub-area of the first sharing interface displaying the first format, and the path selection area of the first sharing interface displaying a sharing method for the first material in the first format;
[0010] 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, the second format being different from the first format;
[0011] In response to a format selection instruction for the second format, converting the format of the first material from the first format to the second format, and displaying a third sharing interface, the third sharing interface including a sharing title area and a path selection area, the sharing title area of the third sharing interface including a format conversion control and a format sub-area, the format sub-area of the third sharing interface displaying the second format, and the path selection area of the third sharing interface displaying a sharing method for the first material in the second format;
[0012] 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.
[0013] In a possible embodiment, the method further includes:
[0014] 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;
[0015] 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.
[0016] 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.
[0017] In a possible embodiment, when there is only one first material, the title sub-area displays the material name of the first material;
[0018] When there is one first material, the title sub-area displays the number of the first material.
[0019] In a possible embodiment, when the first material is one, the format sub-area of the first sharing interface displays the first format;
[0020] When there are multiple first materials, the format sub-area of the first sharing interface displays text information for indicating a default format.
[0021] 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 the preset application-attribute correspondence relationship.
[0022] In a possible embodiment, the service-attribute correspondence relationship includes one or more of the following correspondence relationships:
[0023] File management corresponds to file size, and browser corresponds to URL.
[0024] 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;
[0025] When there is only one first material, the thumbnail sub-area displays a thumbnail of the first material;
[0026] 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.
[0027] In a possible embodiment, the stacked thumbnails are stacked in the following manner, including:
[0028] When the number of the first materials is no more than N, stacking thumbnails of all the first materials to obtain a stacked thumbnail;
[0029] When there are more than N first materials, the order of selecting the first materials according to the sharing instruction is used, and the thumbnails of the first N first materials are stacked to obtain stacked thumbnails.
[0030] 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 atomic service control corresponds to an atomic service;
[0031] The method further comprises:
[0032] 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.
[0033] In a possible embodiment, the atomic service area includes atomic service controls corresponding to the format of the first material and the first application.
[0034] 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;
[0035] If the first material selected by the sharing instruction is multiple pictures or multiple 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;
[0036] 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 the Save to Evernote service, Save to File Management service, and Add to Global Collection service;
[0037] If the first material selected by the sharing instruction is an application, and the first application is a global favorite, the atomic service area includes atomic service controls corresponding to the following atomic services: Save to File Management Service, Add to Global Favorites Service;
[0038] 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;
[0039] 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.
[0040] 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.
[0041] 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;
[0042] 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;
[0043] If the first material is a plurality of pictures and the first application is a global collection, the second format includes PDF format, JPG format, and long image format;
[0044] 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;
[0045] If the first material is a single PPT and the first application is a global collection, the second format includes PDF format and long image format;
[0046] If the first material is text or a single note and the first application is a note-taking service, the second format includes image format, text format, DOC format, PDF format, and HTML format;
[0047] 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;
[0048] 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.
[0049] 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.
[0050] In a possible embodiment, the method further includes:
[0051] When the electronic device runs a second application, a second interface is displayed, wherein the second interface displays a second material in a third format, and the second application includes a gallery and is different from the first application;
[0052] In response to a 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;
[0053] In response to an interactive instruction for the atomic service control on the fourth sharing interface, executing the atomic service corresponding to the atomic service control on the second material;
[0054] 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.
[0055] In a second aspect of the present application, an electronic device is provided, comprising:
[0056] one or more processors and memory;
[0057] The memory is coupled to the one or more processors, and the memory is used to store computer program code, where the computer program code includes computer instructions. 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.
[0058] In a third aspect of the present application, a computer-readable storage medium is provided, comprising a computer program. When the computer program is run on an electronic device, the electronic device executes the method steps described in the first aspect.
[0059] 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 a 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. The user can directly convert the format of the material in the sharing interface, and the sharing interface will be automatically displayed for the format-converted material after the format conversion. There is no need to manually open the application with format conversion function, nor to manually find the format-converted material in the application with sharing function. Therefore, the operation is simple and can improve the efficiency of material sharing. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] The drawings described herein are used to provide further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute improper limitations on the present application.
[0061] FIG1 is a schematic structural diagram of an electronic device;
[0062] FIG2 is a schematic diagram of a system architecture of an electronic device;
[0063] FIG3 a is a schematic diagram of a video viewing interface;
[0064] FIG3 b is a schematic diagram of a global favorites interface displayed in a floating window;
[0065] FIG3 c is a schematic diagram of a global favorites interface displayed in full screen;
[0066] FIG4 is a schematic diagram of a method for inputting a sharing instruction;
[0067] FIG5 is a schematic diagram of a sharing interface in related art;
[0068] FIG6 is a flowchart of a file sharing method provided by the present application;
[0069] FIG7 a is a schematic diagram of a sharing interface when sharing is triggered when the electronic device is running a first application;
[0070] FIG7 b is a schematic diagram of the interface after the user clicks the format conversion control when the first material is a picture;
[0071] FIG7 c is a schematic diagram of the interface after the user clicks the format conversion control when the first material is a contact;
[0072] FIG7 d is a schematic diagram of the interface after the user clicks the format conversion control when the first material is PDF;
[0073] FIG7e is a schematic diagram of the interface after the user clicks the format conversion control when the first material is an application;
[0074] FIG7 f is a schematic diagram of a sharing interface displayed when the first material does not support format conversion;
[0075] FIG7g is a schematic diagram of an interface displayed when format conversion is being performed on the first material;
[0076] FIG7h is a schematic diagram of a sharing interface displayed after the first material is converted into a PDF;
[0077] Figure 7i is a schematic diagram of the sharing interface after the user scrolls the sharing interface;
[0078] FIG7j is a schematic diagram of a sharing interface when sharing is triggered when the electronic device is running a second application;
[0079] FIG8 is a schematic diagram of a sharing interface when the first material is multiple files;
[0080] FIG9a is a schematic diagram of thumbnails of first materials in different file formats;
[0081] FIG9 b shows icons displayed in the thumbnail sub-area in cases of different quantities of first materials;
[0082] FIG10 is a schematic diagram of the sharing interface after the user clicks the application icon;
[0083] FIG11 is a schematic diagram showing a sharing interface showing all controls;
[0084] FIG12 a is a schematic diagram of an application selection interface displayed after a user clicks to display all controls;
[0085] FIG12 b is another schematic diagram of the application selection interface displayed after the user clicks to display all controls;
[0086] FIG12c is a schematic diagram of the icon editing interface displayed after the user clicks the edit control;
[0087] FIG12 d is a schematic diagram of the application selection interface displayed after the user completes icon editing;
[0088] Figure 13 is a schematic diagram of the sharing interface size. DETAILED DESCRIPTION
[0089] To make the objectives, technical solutions, and advantages of the present invention more clearly understood, the present invention is further described below with reference to the accompanying drawings and examples. It should be understood that the described examples are only some examples of the present invention, not all examples. All other examples derived by persons of ordinary skill in the art based on the examples of the present invention fall within the scope of protection of the present invention.
[0090] The terms used in the embodiments of the present application are for the purpose of describing specific embodiments only and are not intended to limit the present application. The singular forms "a", "an", "the" 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 otherwise.
[0091] It should be understood that the term "and / or" as used herein simply describes a relationship between associated objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A alone, A and B together, or B alone. Furthermore, the character " / " in this document generally indicates an "or" relationship between the associated objects.
[0092] Referring to FIG1 , FIG1 is a schematic diagram showing 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.
[0093] The electronic device includes a processor 110, a transceiver 120, and a display unit 170. The display unit 170 may include a display screen.
[0094] 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 via an internal connection path to transmit control and / or data signals. The memory 130 is used to store computer programs, and the processor 110 is used to call and execute the computer programs from the memory 130.
[0095] Optionally, the electronic device may further include an antenna 140 for transmitting the wireless signal output by the transceiver 120 .
[0096] The processor 110 and the memory 130 may be combined into a single processing device, or more commonly, they are independent components. The processor 110 is configured to execute program code stored in the memory 130 to implement the aforementioned functions. In a specific implementation, the memory 130 may also be integrated into the processor 110 or independent of the processor 110.
[0097] 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, etc.
[0098] Optionally, the electronic device may further include a power supply 150 for providing power to various devices or circuits in the electronic device.
[0099] It is understandable that the operations and / or functions of the various modules in the electronic device shown in Figure 1 are for implementing the corresponding processes in the following method embodiments. For details, please refer to the description of the following method embodiments, and detailed descriptions are appropriately omitted here to avoid repetition.
[0100] It is understood that the processor 110 in the electronic device shown in FIG1 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors. The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a high-speed cache memory. This memory can store instructions or data that have just been used or are being recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can directly call it from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves system efficiency.
[0101] In some embodiments, the processor 110 may include one or more interfaces. The interfaces 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.
[0102] It is understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is only for illustrative purposes 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 from the above embodiments, or a combination of multiple interface connection methods.
[0103] It will be appreciated that the power supply 150 shown in FIG1 is used to power the processor 110, memory 130, display unit 170, camera 190, input unit 160, and transceiver 120. Antenna 140 is used to transmit and receive electromagnetic wave signals. Each antenna in an electronic device can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 140 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antenna can be used in conjunction with a tuning switch.
[0104] 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 that integrate at least one communication processing module. The transceiver 120 receives electromagnetic waves via the antenna 140, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The transceiver 120 can also receive the signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 140.
[0105] In some embodiments, the antenna 140 and the transceiver 120 of the electronic device are coupled so that the electronic device can communicate with a network and other devices via wireless communication technologies. The wireless communication technologies 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. 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).
[0106] Electronic devices implement display functions through a GPU, display unit 170, and an application processor. A GPU is a microprocessor for image processing that connects the display unit 170 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.
[0107] The display unit 170 is used to display images, videos, and the like. 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 (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-oLED, or a quantum dot light-emitting diode (QLED). In some embodiments, the electronic device can include one or N display units 170, where N is a positive integer greater than one.
[0108] The electronic device can implement a shooting function through an ISP, a camera 190 , a video codec, a GPU, a display unit 170 , and an application processor.
[0109] The ISP processes data from the camera 190. For example, when recording a video, light is transmitted through the lens to the camera's photosensitive element. This light signal is converted into an electrical signal, which is then passed to the ISP for processing and converted into a visible image. The ISP can also perform algorithmic optimization on image noise, brightness, and skin tone.
[0110] The ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP can be set in the camera 190. The camera 190 is used to capture still 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 light signal into an electrical signal, and then passes the electrical signal to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The 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.
[0111] Video codecs are used to compress or decompress digital video. Electronic devices may support one or more video codecs. This allows them to play or record videos in a variety of encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, and MPEG4.
[0112] The NPU is a neural network (NN) computing processor. Drawing on the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it rapidly processes input information and can continuously self-learn. The NPU enables intelligent cognitive applications in electronic devices, such as image recognition, face recognition, speech recognition, and text comprehension.
[0113] 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. 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.
[0114] The electronic device can implement audio functions such as music playback and recording through the audio circuit 180, the speaker 182, the microphone 184, and the application processor.
[0115] 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 provided in the processor 110, or some functional modules of the audio circuit 180 can be provided in the processor 110.
[0116] The speaker 182 , also called a “speaker,” is configured to convert an audio electrical signal into a sound signal. The electronic device can listen to music or make hands-free calls through the speaker 182 .
[0117] Microphone 184, also known as a "microphone" or "microphone," is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak close to microphone 184 to input the sound signal into microphone 184. An electronic device can be provided with at least one microphone 184. In other embodiments, an electronic device can be provided with two microphones 184, which can not only collect sound signals but also implement noise reduction. In other embodiments, an electronic device can be provided with three, four, or more microphones 184 to collect sound signals, reduce noise, identify the sound source, implement directional recording, and the like.
[0118] The file sharing method in the embodiment of the present application can be implemented through the system architecture shown in Figure 2. Referring to Figure 2, the system architecture of the electronic device includes a kernel part, a framework layer part and an application layer part; the kernel part includes a driver layer and a real-time operating system, and the driver layer includes a GPU (graphics processor), a display driver (specifically an LCD driver in the figure), a TP driver (touch screen driver), buttons, etc.; the real-time operating system includes interrupt management, task scheduling, and 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.), and third-party applications (such as social applications and video applications provided by third parties).
[0119] System applications and third-party applications include applications with the ability to share content. For example, system applications include global collections. Users can add various content to the global collection based on their actual needs while using the electronic device. Content in this article can be in the form of text, pictures, audio, video, applications, URLs, contacts, etc. For example, referring to Figure 3a, a user is watching a video through a video application and needs to save the currently playing video frame as a content. The user can use a preset gesture, such as pressing and sliding the touch screen with three fingers, to enable global collection. This will add the currently playing video frame as a content to the global collection. For ease of description below, the video frame added to the global collection will be referred to as "photography.jpg."
[0120] The user can control the electronic device to display a floating window 310 of the global collection as shown in Figure 3b by clicking the global collection icon displayed in the floating window 310. The floating window 310 displays the 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.
[0121] The floating window 310 includes a window control 311. The user can interact with the window control 311 to move, maximize, minimize, and other operations on the floating window 310. For example, the user can press and drag the window control 311 with a finger to move the floating window 310. For another example, the user can click 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 can maximize the floating window 310 by clicking the maximize button. The maximized floating window 310 is shown in Figure 3c. The user can interact with these materials to perform operations on them.
[0122] For example, in response to a user long-pressing the file "photography.jpg", the electronic device displays a toolbar on the interface, which includes a variety of buttons. For example, as shown in FIG4 , the toolbar includes a share button, a remove button, an edit button, etc. In response to a user clicking the share button, the electronic device may display a sharing interface as shown in FIG5 , which displays icons representing different sharing methods, such as an icon indicating sharing the file to Bob's phone, an icon indicating sending the file to WeChat friends via WeChat, etc. The user controls the electronic device to share "photography.jpg" to corresponding electronic devices, contacts, or applications by clicking on these icons.
[0123] However, due to actual user needs, users may need to convert the material into another format before sharing. Taking the interface shown in Figure 3c as an example, suppose the user wants to share the "photography.jpg" file shown therein, but the user actually needs to share the material in PDF format. In the related art, the user must first exit the global collection interface, open an application with a format conversion function, and use the application to convert the material "photography.jpg" into PDF format. For ease of description, the material obtained after format conversion is referred to as "photography.pdf". The user then adds "photography.pdf" to the global collection, opens the global collection interface, and long presses the icon of the material "photography.pdf" in the global collection interface to share the material "photography.pdf". This operation is relatively cumbersome, resulting in low material sharing efficiency.
[0124] Based on this, the present application provides a material sharing method that is applicable to any electronic device with a material sharing function, including but not limited to mobile phones, tablet computers, etc. The method is shown in FIG6 and includes:
[0125] 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.
[0126] Step S602: In response to a sharing instruction for the first material, a first sharing interface is displayed.
[0127] 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.
[0128] Step S603 : In response to an interactive instruction for the format conversion control of the first sharing interface, a second sharing interface is displayed, wherein the second sharing interface displays a second format.
[0129] The second format is different from the first format, and the first material should be convertible into the second format.
[0130] Step S604 : 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.
[0131] 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. Since the format of the first material has been converted to the second format, 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.
[0132] Step S605 , in response to the sharing method in the path selection area of the third sharing interface, sharing the first material in the second format according to the sharing method.
[0133] 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 first format conversion of the first material and then sharing it. The user can directly convert the format of the material in the sharing interface, and the sharing interface will be automatically displayed for the material after format conversion. There is no need to manually open the application with format conversion function, nor to manually find the material after format conversion in the application with sharing function. Therefore, the operation is simple and can improve the efficiency of material sharing.
[0134] The following will explain S601-S605 respectively:
[0135] In S601, the first application is an application that has the ability to share materials and has format conversion requirements. For example, the first application may include system applications such as global favorites, contacts, email, and browsers, and may also include note applications, video applications, social applications, etc. provided by third parties. It is understandable 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 assumed that when the electronic device runs the gallery, the materials the user wants to share are pictures, that is, there is no need for format conversion at this time. Therefore, in one possible embodiment, the first application does not include the gallery.
[0136] The first interface is the interface of the first application. For example, when the first application is a global favorite, the displayed first interface is shown in Figure 3c. Different first materials may have different formats, so there may be multiple different first formats.
[0137] In S602, the way in which the user inputs the sharing instruction may be different depending on the first application. Figure 4 shows only one way of inputting the sharing instruction when the first application is a global collection. In other possible embodiments, the user may input the sharing instruction 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 the sharing instruction by continuously tapping the touch screen of the electronic device with the knuckles.
[0138] The first sharing interface is displayed in a floating manner above the first interface. For example, as shown in FIG. 7 a , the inverted triangle icon in the first sharing interface shown in FIG. 7 a is the format conversion control 211 .
[0139] In addition to the format conversion control and the format sub-area for displaying the first material format, the sharing title area can also include sub-areas for displaying various information. Taking the example shown in Figure 7a 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, an attribute sub-area 214, and a thumbnail sub-area 215.
[0140] 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 besides the sharing title area 210 and the path selection area 220. Taking Figure 7a as an example, the first sharing interface also includes an atomic service area 230. Exemplarily, the atomic service area 230 may also include a "Save" control, an "Add to global favorites" control, and a "Print" control. The various areas in the first sharing interface will be described in detail below and will not be repeated here.
[0141] In S603, depending on the format conversion control, the interactive instruction for the format conversion control can be a click operation instruction, a long press operation instruction, or a sliding operation instruction. For example, taking Figure 7a as an example, the interactive instruction can be a click operation instruction for clicking on the inverted triangle icon. In this example, in response to the interactive instruction, a floating window showing each second format pops up below the inverted triangle icon. At this time, the electronic device will display the second sharing interface as shown in Figure 7b. In other possible examples, the second sharing interface can also be of other styles. For example, based on the first sharing interface shown in Figure 7a, 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 the second format.
[0142] The second format in this article should be the format that the first material selected by the sharing instruction can be converted into, 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 into JPG format or PDF format, and JPG format is the first format, so the second format is PDF format.
[0143] In one possible embodiment, the second sharing interface can also display the first format and the second format at the same time. For example, in FIG7b , the second sharing interface in the example of FIG7b displays not only the second format (i.e., PDF format) but also the first format (i.e., JPG format). In order to distinguish the first format from the second format, a √-shaped icon is added after the first format (i.e., JPG format) in the example shown in FIG7b . The same applies to FIG7c and FIG7d below. In another possible case, to distinguish the first format from the second format, the name of the first format can be displayed in a darker color to indicate that the first format is selected, and the name of the second format can be displayed in a lighter color.
[0144] For another example, if the first material is a contact card in QR code format, the contact card in QR code format can be converted into vCard format and text format, so the second sharing interface is shown in Figure 7c, displaying QR code format, vCard format, and text format; for another 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 shown in Figure 7d, displaying text format, PDF format, WORD format, and TXT format.
[0145] 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 text format include PDF format and TXT format, and the second formats preset for picture format include JPG format and PDF format, and the sharing instruction selects two materials, one of which is text and the other is 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 displayed second format is PDF format.
[0146] To more clearly illustrate the formats into which first materials in each first format can be converted, please refer to Table 1, which shows a possible correspondence between first formats and second formats. In other possible embodiments, the second formats preset for each file format may also be different from those in Table 1. For example, the second format for images may include not only JPG format and long image format, but also BMP format. For example, the second format for text may only include PDF format and TXT format, but not WORD format.
[0147] 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. For example, the corresponding relationship can be shown in Table 1:
[0148] Table 1. Correspondence between the first format and the second format
[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. Exemplarily, 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. Exemplarily, 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] If the first material is in WORD or PDF format, if there is only one first material and the number of pages of the first material is not greater than the preset first page threshold, the second format includes the PDF format. If there are multiple first materials or the number of pages of the first material is greater than the preset first page threshold, the second format does not include the PDF format. If there is only one first material and the number of pages of the first material is not greater than the preset second page threshold, the second format includes the long image format. If there are multiple first materials or the number of pages of the first material is greater than the preset second page 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 restrictions on this.
[0153] Moreover, when the first material is audio, video, HTML or application, it can be considered that what the user wants to share at this time is the first material in the first format. Therefore, as shown in Table 1, for the first material in 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 Figure 7e, and when the first material is HTML, the sharing interface is as shown in Figure 7f.
[0154] In S604, the format selection instruction is an instruction input by the user according to actual needs, which is used to indicate the file format into which the first material needs to be converted. Taking the example shown in Figure 7b as an example, the user can input the format selection instruction by clicking the area where the word "PDF" is located. The format selection instruction is used to instruct the electronic device to convert the format of the first material into PDF format.
[0155] During step S604, a converting interface may be displayed to remind the user that the electronic device is currently converting formats. The converting interface may use images or text to remind the user that the electronic device is currently converting formats. For example, the converting interface may display the text "Converting" and a waiting icon 241 as shown in FIG7g. The text "Converting" and the waiting icon 241 may be displayed in a pop-up window, a card, or a toast prompt.
[0156] As shown in Figure 7g, a cancel conversion control 242 can also be set in the converting interface. The user can interact with the cancel conversion control 242 through operations such as clicking and long pressing to input interaction instructions. The electronic device responds to the interaction instruction for the cancel conversion control 242, terminates the 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] In addition, the third sharing interface displayed in S604 includes the same area as the first sharing interface, and the sub-areas included in each area are also the same. However, since the format of the first material has changed from the first format to the second format at this time, the information displayed in each sub-area will change accordingly. For example, taking the example of the second sharing interface as shown in Figure 7b, assuming that the user controls the electronic device to convert the first material into PDF format by clicking "PDF format" in Figure 7b, and records the first material converted into PDF format as "Photographic work.pdf", the third sharing interface displayed is shown in Figure 7h. Compared with the first sharing interface, the information displayed in the title sub-area 212, format sub-area 213, and thumbnail sub-area 215 in the third sharing interface has all changed, among which the information displayed in the title sub-area 212 changes from "Photographic work.jpg" to "Photographic work.pdf", and the information displayed in the format sub-area 213 changes 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 on the sharing method to share the first material in the second format. The details of how the user inputs the sharing method will be described in detail in the relevant content of the path selection area 220 below, and 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 the sharing method and thereby control the electronic device to share the first material in the first format according to the input sharing method. Taking the first sharing interface shown in FIG7a 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 following will describe the sharing title area 210, the path selection area 220, and the atomic service area 230 respectively:
[0162] For the convenience of description, the following will use the first sharing interface shown in Figure 7a as an example. 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 following description of each area in the first sharing interface also applies to the third sharing interface.
[0163] FIG7a is only a schematic diagram of a sharing interface provided by the present application. In other possible embodiments, the sharing interface may not be as shown in FIG7a. For example, the sharing interface does not include the path selection area 220 shown in FIG7a. For another example, the sharing interface does not include the atomic service area 230 shown in FIG7a. For another example, the sharing interface also includes a sharing title area 210, a path selection area 220, and other areas other than the atomic service area 230. In addition, the sharing interface shown in FIG7a is the sharing interface displayed in response to a sharing instruction when the electronic device runs a first application. The sharing interface displayed in response to a sharing instruction when the electronic device runs a second application (hereinafter referred to as the fourth sharing interface) does not include the sharing title area 210 in FIG7a and includes the atomic service area 230 shown in FIG7a. The second application is different from the first application, that is, the second application and the first application do not have an intersection, and the second application includes at least a gallery. For example, 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 one possible embodiment, if the fourth sharing interface is shown in Figure 7j, the path selection area 220 and the atomic service area 230 in Figure 7j are the same as the path selection area 220 and the atomic service area 230 in Figure 7a, so the following description will only use Figure 7a as an example. Unlike Figure 7a, the fourth sharing interface shown in Figure 7j does not include the sharing title area 210.
[0165] First, let's explain the sharing title area 210. In the example shown in FIG7a , the sharing title area 210 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. The format conversion control 211 is used to interact with the user, enabling the user to control the electronic device to display each second sharing interface, thereby allowing the user to select a second format and control the electronic device to convert the format of the first material to the second format. For details on 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, and will not be repeated here.
[0166] Each sub-area of the sharing title area 210 will be described below:
[0167] Title sub-area 212 is used to display the name of the first material. For example, if the first material is the file "Photographic Works.jpg," title sub-area 212 displays the text "Photographic Works.jpg," as shown in FIG7a . If the first material is a document, the material name can refer to either the document's name or its title. For example, if a document named "Learning Materials.doc" contains a paper titled "A Review of the XXX Technical Field," the material name could be "Learning Materials.doc" or "A Review of the XXX Technical Field." By providing title sub-area 212 in the sharing interface, users can determine their selected first material based on the information displayed in title sub-area 212, reducing the likelihood of users sharing the wrong material.
[0168] Moreover, in some application scenarios, users may want 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 can display the material names of all first materials in the title sub-area 212, or it can display the file names of some first materials in the title sub-area 212, for example, only display the file name of one of the first materials. The number of first materials in this article 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, the electronic device displays the name of the first material in the title sub-area 212 only when there is only one first material, and displays the number of the first materials in the title sub-area 212 when there are multiple first materials. This embodiment can avoid displaying too much text in the title sub-area 212 when there are multiple first materials, making the title sub-area 212 more concise and allowing users to more easily obtain relevant information about the first material from the title sub-area 212.
[0170] For example, assuming that the number of the first materials is 5, the electronic device can display the text "5 items selected" in the title sub-area 212 as shown in Figure 8. In other examples, the text displayed can also be "5 files in total", "5 items currently selected", etc., which can indicate that the number of the first materials is 5. The example shown in Figure 8 does not impose any restrictions on this.
[0171] Continuing with Figure 7a as an example, format sub-area 213 is used to display the file format of the first material. For example, if the first material is a file named "photography.jpg," format sub-area 213 displays the text "JPG," as shown in Figure 7a. By setting format sub-area 213 on the sharing interface, the user can determine the current format of the first material (i.e., the first format) based on the information displayed in 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, the electronic device displays the format of the first material in the format sub-area 213 only when there is only one first material, and displays text information indicating a default format in the format sub-area 213 when there are multiple first materials. It is understood that when there are multiple first materials, the file formats of each first material may be different, making it difficult to concisely display the file formats of each first material in the format sub-area 213. Since all first materials can be considered to be in the default format before format conversion, the text information indicating the default format can simultaneously indicate different file formats. In other words, this embodiment can concisely display the file format of each first material in the format sub-area 213, thereby assisting the user in determining whether format conversion is necessary.
[0174] Exemplarily, as shown in FIG8 , the text information displayed in the format sub-area 213 is “default format”. In other possible examples, the text information displayed may also be “default format”, “original format” or other text information that can represent the default format.
[0175] Furthermore, it is understandable 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 taking FIG. 7a as an 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 data volume, and the data volume of the first material is 16MB, then as shown in FIG. 7a , the electronic device displays the text "16MB" in the attribute sub-area 214. For another example, assuming that the target attribute is geographic location, and the first material is a photo taken in XX City, so the geographic location is "XX City", in this example, the electronic device displays the text "XX City" in the attribute sub-area 214. Furthermore, in a possible embodiment, if the target attribute is geographic location, then when the electronic device has not enabled 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 enabled 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 based on 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 based on the attribute information displayed in the attribute sub-area 214, and it takes a lot of time to convert the format, so he chooses not to convert the format of the first material. For 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 photos taken while traveling in YY City with friends, then 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 can vary depending on the application scenario. For example, in one possible embodiment, the attribute corresponding to global collections and file management is data volume. In another possible embodiment, the attribute corresponding to the file management service is file size, and the attribute corresponding to global collections 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 collections 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 on 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, i.e., contact card. For example, when a user inputs a share instruction for a card 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] Refer to Figure 9a, which shows the thumbnails of the first material in each file format, wherein the first row, from left to right, are the thumbnails of the first material in PDF format, the thumbnail of the first material in audio format, the thumbnail of the first material in compressed package format, and the thumbnail of the first material in web page link format; the second row, from left to right, are the thumbnails of the first material in contact card format, the thumbnail of the first material in picture format, the thumbnail of the first material in video format, the thumbnail of the first material in text format, and the thumbnail of the first material in application format.
[0184] The text displayed in the thumbnail of a first material in contact card format is the first character of the contact's name. The thumbnail of a first material in video format is the video cover with a play button. The text displayed in the thumbnail of a first material in text format is part or all of the text in the first material. The thumbnail of a first material in 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 can stack the thumbnails of all the first materials to obtain a stacked thumbnail. In another possible embodiment, the electronic device can 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 in which the first materials are selected 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 materials in sequence when selecting the first material, the first N first materials are: file A, file B, and file C.
[0187] See Figure 9b, which shows a schematic diagram of stacked thumbnails provided by this application. From left to right in Figure 9b, the following 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 are both 48 pixels by 48 pixels, with a rounded corner size of 8dp.
[0188] For the stacked thumbnails obtained by stacking two thumbnails of the first material, the size of the thumbnail stacked in 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 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 will be described. In the example shown in FIG. 7 a , 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 input a sharing method by interacting with the device icon 221. 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, taking Figure 7h as an 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 interacting with the device icon 221, the electronic device shares the material "photographic works.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, taking Figure 7h as an example, 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 enter 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, etc.
[0193] The user can enter 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 understood that some applications provide multiple 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 a friend
[0195] Method 2: Publish the first material as a weblog
[0196] Method 3: Send the first material to the server of the social application provider so that the first material can be collected through the collection function provided by the social application.
[0197] For those applications that provide multiple 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, as shown in Figure 10, in the example shown in Figure 10, in response to the interactive instructions on the application icon 222, the electronic device displays the various sharing methods provided by the application in the form of a floating window.
[0198] The user can enter a sharing method to control the electronic device to share the second format material according to the user's input sharing method. Taking Figure 10 as an example, the user can enter a sharing method by clicking the area where the text "Send to Friends" is located. In this case, the user enters the sharing method of the aforementioned method one. The user can also enter a sharing method by clicking the area where the text "Add to Favorites" is located. In this case, the user enters the sharing method of the aforementioned method three.
[0199] Due to the limitation of 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. In 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 instructions such as sliding and dragging.
[0200] For example, referring to Figures 7a and 11, the four application icons 222 displayed in the path selection area 220 in Figure 7a are application icons 222 corresponding to the application "Browser", the application "Contacts", the application "Mail", and the application "Memo". The user can slide the area where the application icons 222 are located to control the electronic device to switch the application icons 222 displayed in the path selection area 220 to those shown in Figure 11. The application icons 222 displayed in the path selection area 220 in Figure 11 are application icons 222 corresponding to the application "Call", the application "Message", and the application "Music". In addition, in the example of Figure 11, 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 user interaction instructions for all display controls 223, the electronic device displays an application selection interface, which displays various application icons 222. 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 may be as shown in FIG12a. The user can enter a confirmation instruction by interacting with the application icons 222 in the application selection interface. The interaction method is the same as the interaction method between the user and the application icons 222 in the path selection area 220. Please refer to the relevant description above and 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 they need from the large number of application icons 222. Based on this, in one possible embodiment, the application selection interface is shown in Figure 12b, which is provided with a first display area 310 and a second display area 320. In the example shown in Figure 12b, 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 icons 222. Therefore, the first display area 310 in this example can also be called the top application area. In other possible embodiments, the first display area 310 can also be located on the left, right, bottom, etc. of the application selection interface.
[0204] In this example, there are two categories of application icons 222, designated as first category application icons 222a and second category application icons 222b. The number of first category application icons 222a should be less than a preset threshold, which can be 4, 5, or another positive integer. There is no intersection between first category application icons 222a and second category application icons 222b, and the union of first category application icons 222a and second category application icons 222b is all application icons 222.
[0205] The first display area 310 is used to display the first category application icons 222a, and the second display area 320 is used to display the second category application icons 222b. Since the number of the 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 frequently shares files through the "Browser" application, the user can set the application icon 222 corresponding to the "Browser" application as the first category application icon 222a. Application icons 222 not set as the first category application icon 222a by the user are the second category application icons 222b. If the user has not set the first category application icon 222a, as shown in Figure 12b, no application icon 222 is displayed in the first display area 310, and the text "No top sharing applications" is displayed.
[0207] The way in which the user sets the first category application icon 222a can be seen in Figure 12b. An editing control 330 is set in the upper right corner of the application selection interface shown in Figure 12b. In other examples, the editing control can also be located in other positions of the application selection interface, such as the upper left corner, right sidebar, etc.
[0208] In response to the interactive instruction for the editing control, the electronic device displays an icon editing interface. For example, the icon editing interface may be as shown in FIG12c, including a selected area 410 and a candidate area 420. The selected area initially displays the first-category application icons 222a, and the candidate area 420 initially displays the second-category application icons 222b. For example, taking the example shown in FIG12b as an example, since there are no first-category application icons 222a in this example, all application icons 222 are second-category application icons 222b. Therefore, when the icon editing interface is displayed, no application icons 222 are initially displayed in the selected area 410, and all application icons 222 are displayed in the candidate 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 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 "Contacts" to the left of the icon "Browser", the order can be adjusted from icon "Browser" → icon "Contacts" → icon "Social Application A" → icon "Memo" to: icon "Contacts" → icon "Browser" → icon "Social Application A" → icon "Memo".
[0210] The user can input a completion instruction by clicking the completion edit control 430 of the icon editing interface. In other examples, the completion edit control 430 can also be located at other locations of the icon editing interface. In response to the completion edit instruction, the electronic device sets the application icon 222 displayed in the selected area 410 to the first category application icon 222a, and sets the application icon 222 displayed in the candidate area 420 to the second category application icon 222b.
[0211] For example, taking the example shown in Figure 12c as an example, the user clicks the complete editing control 430 in the upper right corner to enter the complete editing instruction. Since in this example, the application icons 222 displayed in the selected area 410 include the icon "Browser 1", the icon "Contacts", the icon "Social Application A", and the icon "Memo", in response to the complete editing instruction, the electronic device sets the icon "Browser", the icon "Contacts", the icon "Social Application A", and the icon "Memo" as the first category application icons 222a, and sets other application icons 222 as the second category application icons 222b, and the electronic device will re-display the application selection interface. The application selection interface displayed at this time is shown in Figure 12d. 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 instructions for the atomic service control, the electronic device will execute the atomic service corresponding to the atomic service control on the first material.
[0213] Taking the example shown in Figure 7a as an example, three atomic service controls 231 are displayed in the atomic service area 230, which are the control "Save", the control "Add to Global Favorites" and the control "Print" from top to bottom. The services corresponding to each control will be explained 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 one 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] 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 that when the sharing source is a note and the first material is text or a single note, the second format includes picture, text, DOC, PDF, and HTML. The atomic service of this row is "None", which means that 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 sharing interface displayed in this case may not include the atomic service area 230.
[0217] 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", indicating 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", indicating 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".
[0218] The same applies to the other items in Table 2, which will not be described here. The following describes each atomic service separately:
[0219] The atomic service "print" refers to printing the first material through a printer that has established a communication connection with the electronic device.
[0220] The atomic service "Save to Text Note" means: saving the first material in the note generated by the system application "Text Note".
[0221] The Atomic Service "Save to Evernote" means: saving the first material in the notes generated by the third-party application "Evernote".
[0222] The atomic service "Add to Global Collection" means: collecting the first material in a file collection maintained by the system application "Global Collection".
[0223] 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.
[0224] Due to the limitation of screen size, the number of atomic service controls 231 displayed simultaneously in the atomic service area 230 is limited. See Figure 7h and Figure 7i. As can be seen from Figure 7i, six atomic service controls 231 are set in the atomic service area 230, but in the example shown in Figure 7h, the atomic service area 230 only displays three of the atomic service controls 231. In the example shown in Figure 7h, the user can control the electronic device to scroll the sharing interface through a sliding operation, thereby displaying the sharing interface shown in Figure 7i.
[0225] In this application, when the electronic device scrolls the sharing interface, as shown in FIG7i , the sharing title area 210 remains fully displayed in the sharing interface, and only the path selection area 220 and the atomic service area 230 are scrolled vertically. This allows the user to easily access relevant information about the first material from the sharing title area.
[0226] In order to more clearly illustrate the sharing interface provided by this application, please refer to Figure 13, which is a size diagram of the sharing interface provided by this application.
[0227] 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 top 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 bottom border of the title sharing area 210 is 24dp.
[0228] 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. The device icons 221 and application icons 222 are aligned horizontally, and the vertical distance between the device icons 221 and application icons 222 is 16dp. The distance between each device icon 221 and application icon 222 and the icon name is 2dp, and two lines of space are reserved for the name of each device icon 221 and application icon 222.
[0229] The present application also provides an electronic device, comprising:
[0230] one or more processors and memory;
[0231] The memory is coupled to one or more processors, and the memory is used to store computer program code, which includes computer instructions. The one or more processors invoke the computer instructions to enable the electronic device to execute any of the above-described file sharing methods. The structure of the electronic device can be seen in Figure 1 and will not be repeated here.
[0232] 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.
[0233] 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.
[0234] 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 can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can 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 can be transmitted from a website, computer, server or data center to another website, computer, server or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can 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 integrations. The available medium can 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 drive (SSD).
[0235] 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.
[0236] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
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.