File operation method, electronic device, and computer readable storage medium
By displaying a preview window that matches the target file on the desktop of the electronic device and operating it in the target application, the problem of inefficient file operations caused by overlapping and occlusion of multiple application windows is solved, and a method of quickly finding and processing files is realized. , improving user experience.
Patent Information
- Application Number
- PCT/CN2024/087482
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-17
- Filing Date
- 2024-04-12
- Publication Date
- 2024-10-24
AI Technical Summary
On the desktop of an electronic device, multiple overlapping and possibly blocked application windows make it difficult for users to quickly find and operate target files, resulting in inefficient file operations.
Provide a file operation method that displays a preview window on the desktop that is suitable for the target file by obtaining operation instructions, performs file processing in the target application according to the mobile operation, filters and displays application windows that can process the target file, so that users can Find and move files quickly.
It improves the processing efficiency of target files, reduces the difficulty for users to search in multiple application windows, reduces the operation path, and enhances the user experience.
Smart Images

Figure CN2024087482_24102024_PF_FP_ABST
Abstract
Description
File operation method, electronic device and computer-readable storage medium
[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on April 17, 2023, with application number 202310420754.1 and entitled “File operation method, electronic device and computer-readable storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The embodiments of the present application relate to the field of computer technology, and in particular to a file operation method, an electronic device, and a computer-readable storage medium. Background Art
[0003] When using electronic devices, users often need to work with the same document in different windows on the desktop. These windows can be the user interfaces of different applications. For example, a user may need to copy an image from one document to another; or send an image from a document to another user via social media.
[0004] In the process of implementing the above operations, it is necessary to find the corresponding application window on the desktop of the electronic device and then perform the operation on the file. However, there may be multiple application windows on the desktop of the electronic device. These application windows may overlap, and some application windows may be blocked by one or more other application windows. In this case, it is difficult for the user to quickly find the application window that needs to be operated among multiple application windows.
[0005] Summary of the Invention
[0006] The embodiments of the present application provide a file operation method, an electronic device, and a computer-readable storage medium, which can quickly determine an application window that needs to be operated from multiple application windows.
[0007] To achieve the above objectives, this application adopts the following technical solutions:
[0008] In a first aspect, a file operation method is provided, which can be applied to an electronic device and can include the following steps: obtaining an operation instruction for a target file; based on the operation instruction, displaying at least one preview window on a desktop, where the preview window can be a preview window of an application running on the desktop and adapted to the target file; detecting a move operation to move the target file to a target preview window, where the target preview window can be any one of the preview windows; and performing an operation on the target file in a target application corresponding to the target preview window according to the move operation.
[0009] By applying the file operation method provided by the embodiment of the present application, when the electronic device obtains an operation instruction for the target file, it can display at least one preview window on the desktop based on the operation instruction. The at least one preview window can be a preview window of an application that is currently running and can be adapted to the target file, wherein the application that can be adapted to the target file can be an application that can operate the target file. When a move operation to move the target file to any preview window is detected, the electronic device can operate the target file in the target application corresponding to the preview window. By applying the method provided by the embodiment of the present application, the electronic device can identify the various application windows currently opened on the desktop, filter out application windows that cannot process the target file, and preview the application windows that can process the target file in the form of thumbnails, so that the user can quickly find the application that needs to process the target file from multiple preview windows, and it is also convenient for the user to directly move the target file to the application window of the target application, so that the target application can quickly process the target file, thereby improving the processing efficiency of the target file.
[0010] In one possible implementation of the first aspect, displaying at least one preview window on the desktop based on an operation instruction may include: determining, based on the operation instruction, multiple applications running on the desktop; determining at least one application compatible with the target file from the multiple applications running on the desktop; and displaying a preview window of the at least one application compatible with the target file on the desktop. Applying this method, the electronic device can determine the multiple applications running on the desktop, select an application compatible with the target file from among them, and display a preview window of the application compatible with the target file on the desktop. This allows the user to quickly determine which of the currently running applications can operate on the target file, reducing the difficulty for the user to search and select from the multiple applications on the desktop.
[0011] In one possible implementation of the first aspect, the application compatible with the target application may be an application that can operate the target file. Therefore, determining at least one application compatible with the target file from multiple applications running on the desktop may include determining at least one application that can operate the target file from multiple applications running on the desktop.
[0012] In one possible implementation of the first aspect, the electronic device can determine which applications can operate the target file based on the file type of the target file. Therefore, determining at least one application that can operate the target file from among multiple applications running on the desktop can include: determining the file type of the target file; determining the file types that can be operated by each of the multiple applications running on the desktop; and determining that the application can operate the target file if the file types that can be operated by a certain application running on the desktop include the file type of the target file. By using this method, by comparing the file type of the target file and the file types that can be operated by the applications, it is possible to quickly determine which applications can operate on the target file, thereby helping to improve the accuracy of the displayed preview window.
[0013] In one possible implementation of the first aspect, displaying a preview window of at least one application compatible with a target file on the desktop may include: determining a display area for the preview window on the desktop; and displaying the preview window within the display area. Using this method, the preview window can be displayed within a predetermined area. For example, the display area may include an area within a preset pixel range surrounding the target file. Displaying the preview window around the target file facilitates the user's subsequent movement of the target file to the preview window, reducing the number of steps required for the movement operation.
[0014] In one possible implementation of the first aspect, there may be multiple preview windows. Therefore, based on the operation instruction, displaying at least one preview window on the desktop may further include: determining an arrangement order for the multiple preview windows; and displaying the multiple preview windows on the desktop according to the arrangement order. Applying this method, when there are multiple preview windows, by displaying the multiple preview windows in a certain arrangement order, it is possible to distinguish the importance of the multiple preview windows or their priority when operating on the target file.
[0015] In a possible implementation of the first aspect, determining the arrangement order of the multiple preview windows may include: determining the number of times that multiple applications corresponding to the multiple preview windows respectively operate on each file of the same file type as the target file; and determining the arrangement order of the multiple preview windows based on the number of times.
[0016] In another possible implementation of the first aspect, the target file may be a file in the first application, and determining the arrangement order of the multiple preview windows may further include: determining the number of times that the multiple applications corresponding to the multiple preview windows respectively operate any file in the first application; and determining the arrangement order of the multiple preview windows according to the number of times.
[0017] In one possible implementation of the first aspect, determining the arrangement order of the multiple preview windows based on the number of times may include: displaying the multiple preview windows on the desktop in descending order of the number of times; wherein, the greater the number of times corresponding to a particular application, the closer the preview window of that application is to the target file. In this way, the preview window of an application that is more likely to operate on the target file can be displayed closer to the target file, further reducing the operation path required by the user to move the target file to the preview window.
[0018] In one possible implementation of the first aspect, after obtaining an operation instruction for the target file, the method may further include: if no application compatible with the target file is running on the desktop, determining an application compatible with the target file from multiple historically running applications; and displaying preview windows of the applications compatible with the target file from the multiple historically running applications on the desktop. Using this method, if no application compatible with the target file is running on the desktop, the electronic device can select one or more applications from the historically running applications to display preview windows, thereby avoiding the problem of no application on the desktop being able to operate the target file.
[0019] In one possible implementation of the first aspect, determining an application compatible with the target file from multiple historically running applications may include: determining the runtime of the multiple historically running applications; and determining one or more applications compatible with the target file from the multiple historically running applications based on the time difference between the runtime and the current system time. Using this method, one or more applications compatible with the target file can be determined based on the runtime of the historically running applications, thereby selecting a recently used application for displaying the preview window.
[0020] In one possible implementation of the first aspect, operating the target file in the target application corresponding to the target preview window based on the move operation may include: displaying the target application on a layer above multiple applications on the desktop based on the move operation; determining a file processing type of the target application; and processing the target file in the target application based on the file processing type. Using this method, after determining the target application, the target application's window may be displayed on a layer above the desktop, facilitating user operations on the target file within the target application's window and preventing the target application's window from being obscured by windows of other applications.
[0021] In a possible implementation of the first aspect, the target application may include a mail application, and processing the target file in the target application according to the file processing type may include pasting the target file as an attachment to an email in the mail application.
[0022] In another possible implementation of the first aspect, the target application may include a social application, and processing the target file in the target application according to the file processing type may further include: sending the target file through the social application.
[0023] In another possible implementation of the first aspect, the target application may include a video application, and processing the target file in the target application according to the file processing type may further include: playing the target file through the video application.
[0024] In a second aspect, a file operation device is provided. The device can be applied to an electronic device. The device can include the following modules: an acquisition module, a display module, a detection module, and an operation module, wherein:
[0025] An acquisition module is used to obtain operation instructions for a target file;
[0026] A display module, configured to display at least one preview window on the desktop based on the operation instruction, wherein the preview window is a preview window of an application running on the desktop and adapted to the target file;
[0027] a detection module, configured to detect a move operation of moving the target file to a target preview window, wherein the target preview window is any one of the preview windows;
[0028] An operation module is used to operate the target file in a target application corresponding to the target preview window according to the moving operation.
[0029] In a possible implementation of the second aspect, the display module can be specifically used to: determine multiple applications running on the desktop based on the operation instruction; determine at least one application that is compatible with the target file from the multiple applications running on the desktop; and display a preview window of at least one application that is compatible with the target file on the desktop.
[0030] In a possible implementation manner of the second aspect, the display module may further be configured to: determine at least one application that can operate the target file from a plurality of applications running on the desktop.
[0031] In a possible implementation of the second aspect, the display module can also be used to: determine the file type of the target file; determine the file types that can be operated by multiple applications running on the desktop respectively; if the file types that can be operated by a certain application running on the desktop include the file type of the target file, then determine that the certain application can operate the target file.
[0032] In a possible implementation of the second aspect, the display module may be further configured to: determine a display area of the preview window on the desktop; and display the preview window in the display area, wherein the display area includes an area within a preset pixel range surrounding the target file.
[0033] In a possible implementation of the second aspect, the number of the preview windows includes multiple, and the display module can also be used to: determine an arrangement order of the multiple preview windows; and display the multiple preview windows on the desktop according to the arrangement order.
[0034] In a possible implementation of the second aspect, the display module may further be used to: determine the number of times that multiple applications corresponding to the multiple preview windows respectively operate each file of the same file type as the target file; and determine an arrangement order of the multiple preview windows according to the number of times.
[0035] In a possible implementation of the second aspect, the target file is a file in a first application, and the display module may further be used to: determine the number of times that multiple applications corresponding to the multiple preview windows respectively operate any file in the first application; and determine an arrangement order of the multiple preview windows according to the number of times.
[0036] In a possible implementation of the second aspect, the display module can also be used to: display multiple preview windows on the desktop in order of the number of times from most to least; wherein, the more times any application corresponds to, the closer the distance between the preview window of the application and the target file is.
[0037] In a possible implementation of the second aspect, the display module can also be used to: if no application compatible with the target file is running on the desktop, determine an application compatible with the target file from multiple historical running applications; and display preview windows of the applications compatible with the target file in the multiple historical running applications on the desktop.
[0038] In a possible implementation of the second aspect, the display module can also be used to: determine the running time of multiple historical running applications; and determine one or more applications that are compatible with the target file from multiple historical running applications based on the time difference between the running time and the current system time.
[0039] In a possible implementation of the second aspect, the operation module can be specifically used to: display the target application on the upper layer of multiple applications on the desktop according to the mobile operation; determine the file processing type of the target application; and process the target file in the target application according to the file processing type.
[0040] In a possible implementation manner of the second aspect, the target application includes a mail application, and the operating module may be further configured to: paste the target file as an attachment to an email in the mail application.
[0041] In a possible implementation manner of the second aspect, the target application includes a social application, and the operation module may be further configured to: send the target file through the social application.
[0042] In a possible implementation manner of the second aspect, the target application includes a video application, and the operating module may be further configured to: play the target file through the video application.
[0043] In a third aspect, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the file operation method as described in any one of the first aspects above is implemented.
[0044] In a fourth aspect, a computer-readable storage medium is provided, in which computer instructions are stored. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the file operation method described in any one of the above-mentioned first aspects.
[0045] In a fifth aspect, a computer program product is provided. When the computer program product is run on a computer, the computer is caused to execute the above-mentioned related steps to implement the file operation method described in any one of the above-mentioned first aspects.
[0046] In a sixth aspect, a chip is provided, comprising a memory and a processor, wherein the processor executes a computer program stored in the memory to implement the file operation method as described in any one of the first aspects above.
[0047] It can be understood that the beneficial effects of the second to sixth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] FIG1 is a schematic diagram of a file operation in the prior art;
[0049] FIG2 is a schematic diagram of another file operation in the prior art;
[0050] FIG3 is a schematic diagram of another file operation in the prior art;
[0051] FIG4 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
[0052] FIG5 is a schematic diagram of a file operation method provided in an embodiment of the present application;
[0053] FIG6 is a schematic diagram of a file operation process provided in an embodiment of the present application;
[0054] FIG7 is a schematic diagram of a file operation process provided in an embodiment of the present application;
[0055] FIG8 is a structural block diagram of a file operation device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0056] To facilitate a clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, terms such as "first" and "second" are used to distinguish between identical or similar items with substantially the same functions and effects. For example, the terms "first preview window," "second preview window," and so on are merely used to distinguish preview windows of different applications and do not constitute any other limitation.
[0057] It should be noted that in the embodiments of this application, words such as "exemplarily" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplarily" or "for example" in the embodiments of this application should not be interpreted as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplarily" or "for example" is intended to present the relevant concepts in a concrete manner.
[0058] The business scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Ordinary technicians in this field will know that with the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0059] In the embodiments of the present application, "at least one" refers to one or more, and "more" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.
[0060] The steps involved in the file operation method provided in the embodiment of the present application are only examples. Not all steps must be performed, or not all contents in each step are required. They can be increased or decreased as needed during use.
[0061] The same step or steps or contents with the same function in the embodiments of the present application can be referenced to each other in different embodiments.
[0062] When a user operates a file on the desktop of an electronic device, the operation may include moving or copying the file from one application window to another application window. These application windows may refer to the application interfaces or operation interfaces of various applications currently running on the desktop. For example, when a user edits a document using a document application on an electronic device, the document editing interface of the document application is an application window. In some examples, the same application on the desktop can provide multiple application windows. For example, when a user opens two documents at the same time using a document application on an electronic device, the document editing interfaces of the two documents are two different application windows.
[0063] As shown in Figure 1, a schematic diagram of file operations is provided. The multiple application windows shown in Figure 1 are document editing interfaces for multiple different documents. Specifically, application window 101, application window 102, and application window 103 in Figure 1 are editing interfaces for three different documents: a first document, a second document, and a third document, respectively. Application window 101 includes an image 1011, which is both a file within application window 101 and a file within the first document. When a user wishes to copy image 1011 to another document, for example, to a second document, the user first needs to find the editing interface for the second document, i.e., application window 102, on the desktop before performing the copy and paste operations. Application window 102 and application window 103 in Figure 1 partially overlap, meaning that application window 102 is displayed on top of application window 103. If the user wants to copy the image 1011 to the third document, it may not be easy for the user to find the editing interface of the third document on the desktop, that is, to find the application window 103. When there are more application windows displayed on the desktop, it will be more difficult for the user to find the application window he wants to operate on the desktop.
[0064] In the prior art, files can also be operated by dragging and dropping. For example, a file is dragged from one application window to another application window. As shown in Figure 2, it is a schematic diagram of another file operation. The user can move the picture 1011 in the application window 101 to the application window 102 or the application window 103 by dragging and dropping. The dragging process can be achieved by the mouse 104. For electronic devices with touch screens, the dragging process can also be achieved by gesture operations. For example, the user can select the picture 1011 in the application window 101 by pressing the left mouse button, and keep the left mouse button pressed, and then drag the picture 1011 to the application window 102 or the application window 103 by moving the mouse. Similar to the copy and paste operations in Figure 1, moving files by dragging and dropping also has the problem that the application window is not easy to find. For example, when the user drags the picture 1011 to the application window 103, it is easy to cause the drag to fail.
[0065] If the electronic device is a folding screen device, the user experience is even worse when moving files by dragging and dropping. For example, as shown in Figure 3, it is a schematic diagram of another file operation. The electronic device 300 shown in Figure 3 is a folding screen device. The desktop of the electronic device 300 includes an upper screen 301 and a lower screen 302, wherein an application window 3011 is displayed in the upper screen 301, and an application window 3021 is displayed in the lower screen 302, and the application window 3011 includes a picture 303. When the user moves the picture 303 from the application window 3011 to the application window 3021 by dragging, the dragging path will have a broken line effect due to the separation between the upper screen 301 and the lower screen 302, and the user's operating experience is poor.
[0066] In response to the above problems, an embodiment of the present application provides a file operation method, which can determine the multiple application windows that are currently open when the same file needs to be operated between multiple application windows, and display one or more application windows that are adapted to the file around the file, so that the user can directly move the file to the window of the target application.
[0067] The file operation method provided in the embodiments of the present application can be applied to electronic devices. For example, the electronic device can be a mobile phone, a tablet computer, a wearable device, an in-vehicle device, an augmented reality (AR) / virtual reality (VR) device, a laptop computer, a personal computer (PC), a netbook, a personal digital assistant (PDA), and other devices. In one example, the electronic device can be a foldable screen device. The embodiments of the present application do not limit the specific type of electronic device.
[0068] For example, Fig. 4 shows a schematic structural diagram of an electronic device 400. The structure of the electronic device that implements the file operation method provided in the embodiment of the present application may refer to the structure of the electronic device 400.
[0069] The electronic device 400 may include a processor 410, an external memory interface 420, an internal memory 421, a universal serial bus (USB) interface 430, a charging management module 440, a power management module 441, a battery 442, an antenna 1, an antenna 2, a mobile communication module 450, a wireless communication module 460, an audio module 470, a speaker 470A, a receiver 470B, a microphone 470C, an earphone interface 470D, a sensor module 480, a button 490, a motor 491, an indicator 492, a camera 493, a display screen 494, and a subscriber identification module (SIM) card interface 495, etc. Among them, the sensor module 480 may include a pressure sensor 480A, a gyroscope sensor 480B, an air pressure sensor 480C, a magnetic sensor 480D, an acceleration sensor 480E, a distance sensor 480F, a proximity light sensor 480G, a fingerprint sensor 480H, a temperature sensor 480J, a touch sensor 480K, an ambient light sensor 480L, a bone conduction sensor 480M, etc.
[0070] It should be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 400. In some embodiments of the present application, the electronic device 400 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0071] The processor 410 may include one or more processing units. For example, the processor 410 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). Different processing units may be independent devices or integrated into one or more processors.
[0072] The controller can generate an operation control signal based on the instruction operation code and timing signal to complete the control of instruction fetching and execution.
[0073] Processor 410 may also be provided with a memory for storing instructions and data. In some embodiments of the present application, the memory in processor 410 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 410. If processor 410 needs to use the same instruction or data again, it can directly call it from the memory. This avoids repeated accesses, reduces processor 410's latency, and thus improves system efficiency.
[0074] In some embodiments of the present application, the processor 410 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.
[0075] In some embodiments of the present application, the processor 410 and the camera 493 communicate via a CSI interface to implement the shooting function of the electronic device 400. The processor 410 and the display screen 494 communicate via a DSI interface to implement the display function of the electronic device 400.
[0076] It is understood that the interface connection relationship between the modules illustrated in the embodiment of the present application is merely an illustrative illustration and does not constitute a structural limitation on the electronic device 400. In other embodiments of the present application, the electronic device 400 may also adopt a different interface connection method from the above embodiment, or a combination of multiple interface connection methods.
[0077] The charging management module 440 is configured to receive charging input from a charger. The charger can be either a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 440 can receive charging input from the wired charger via the USB interface 430. In some wireless charging embodiments, the charging management module 440 can receive wireless charging input via the wireless charging coil of the electronic device 400. While charging the battery 442, the charging management module 440 can also provide power to the electronic device via the power management module 441.
[0078] The power management module 441 is used to connect the battery 442, the charging management module 440, and the processor 410. The power management module 441 receives input from the battery 442 and / or the charging management module 440 and provides power to the processor 410, the internal memory 421, the display 494, the camera 493, the wireless communication module 460, and the like. The power management module 441 can also be used to monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage, impedance), etc.
[0079] In some other embodiments, the power management module 441 may also be provided in the processor 410. In some other embodiments, the power management module 441 and the charging management module 440 may also be provided in the same device.
[0080] The wireless communication function of the electronic device 400 can be implemented through the antenna 1, the antenna 2, the mobile communication module 450, the wireless communication module 460, the modem processor, and the baseband processor.
[0081] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 400 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 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.
[0082] The mobile communication module 450 can provide wireless communication solutions, including 2G / 3G / 4G / 5G, for the electronic device 400. The mobile communication module 450 may include at least one filter, a switch, a power amplifier, a low-noise amplifier (LNA), and the like. The mobile communication module 450 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modem processor for demodulation. The mobile communication module 450 can also amplify the signals modulated by the modem processor and convert them into electromagnetic waves for radiation via the antenna 1.
[0083] In some embodiments of the present application, at least some functional modules of the mobile communication module 450 may be set in the processor 410. In some embodiments of the present application, at least some functional modules of the mobile communication module 450 may be set in the same device as at least some modules of the processor 410.
[0084] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium- or high-frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs audio signals through an audio device (including but not limited to speaker 470A, receiver 470B, etc.) or displays images or videos through display screen 494.
[0085] In some embodiments of the present application, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 410 and be provided in the same device as the mobile communication module 450 or other functional modules.
[0086] The wireless communication module 460 can provide wireless communication solutions applied to the electronic device 400, 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 technology (IR), etc. The wireless communication module 460 can be one or more devices integrating at least one communication processing module. The wireless communication module 460 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 410. The wireless communication module 460 can also receive the signal to be sent from the processor 410, frequency modulate and amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0087] In some embodiments of the present application, antenna 1 of electronic device 400 is coupled to mobile communication module 450, and antenna 2 is coupled to wireless communication module 460, so that electronic device 400 can communicate with a network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. 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).
[0088] Electronic device 400 implements display functionality through a GPU, display screen 494, and an application processor. A GPU is a microprocessor for image processing that connects display screen 494 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 410 may include one or more GPUs that execute program instructions to generate or modify display information.
[0089] Display screen 494 is used to display images, videos, etc. Display screen 494 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments of the present application, electronic device 400 may include one or N display screens 494, where N is a positive integer greater than 1.
[0090] The electronic device 400 can implement a shooting function through an ISP, a camera 493, a video codec, a GPU, a display screen 494, and an application processor.
[0091] The external memory interface 420 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 400. The external memory card communicates with the processor 410 via the external memory interface 420 to implement data storage functions. For example, files such as music and videos can be stored on the external memory card.
[0092] The internal memory 421 can be used to store computer executable program code, which includes instructions. The internal memory 421 can include a program storage area and a data storage area. The program storage area can store an operating system, at least one application required for a function (such as a sound playback function, an image playback function, etc.). The data storage area can store data created during the use of the electronic device 400 (such as audio data, a phone book, etc.).
[0093] In addition, the internal memory 421 may include a high-speed random access memory and a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0094] The processor 410 executes various functional applications and data processing of the electronic device 400 by running instructions stored in the internal memory 421 and / or instructions stored in a memory provided in the processor.
[0095] The electronic device 400 can implement audio functions such as music playback and recording through the audio module 470, the speaker 470A, the receiver 470B, the microphone 470C, the headphone jack 470D, and the application processor.
[0096] The pressure sensor 480A is used to sense pressure signals and convert them into electrical signals. In some embodiments, the pressure sensor 480A can be provided on the display screen 494. There are many types of pressure sensors 480A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. A capacitive pressure sensor can be a device comprising at least two parallel plates having a conductive material. When a force acts on the pressure sensor 480A, the capacitance between the electrodes changes. The electronic device 400 determines the intensity of the pressure based on the change in capacitance. When a touch operation is applied to the display screen 494, the electronic device 400 detects the intensity of the touch operation based on the pressure sensor 480A. The electronic device 400 can also calculate the position of the touch based on the detection signal of the pressure sensor 480A.
[0097] In some embodiments of the present application, touch operations applied to the same touch location but with different touch operation intensities may correspond to different operation instructions. For example, when a touch operation with a touch operation intensity less than a first pressure threshold is applied to a short message application icon, an instruction to view short messages is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold is applied to a short message application icon, an instruction to create a new short message is executed.
[0098] The keys 490 include a power button, a volume button, etc. The keys 490 may be mechanical keys or touch keys. The electronic device 400 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 400.
[0099] Indicator 492 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, and the like.
[0100] The following embodiments take an electronic device having the above-mentioned hardware structure as an example to illustrate the file operation method provided in the embodiments of the present application.
[0101] 5 , which shows a schematic diagram of a file operation method provided by an embodiment of the present application, the method may specifically include the following steps:
[0102] S501: Obtain an operation instruction for a target file.
[0103] The execution subject of the embodiment of the present application may be an electronic device, that is, the electronic device may implement the method provided by the embodiment of the present application based on the user's operation to implement the operation of the target file on the electronic device. The target file may be a file to be operated.
[0104] In one example, the target file may be a file on the desktop of the electronic device, that is, the file is stored on the desktop of the electronic device and is not stored in any other application. For example, the target file may be a document on the desktop of the electronic device. When the target file is a file on the desktop of the electronic device, the application window where the target file is located may be the entire desktop window. In another example, the target file may be a file in an application, that is, the file is stored in an application. For example, the target file may be a picture in a document opened on the desktop of the electronic device. When the target file is a file in an application, the application window where the target file is located may refer to the application interface or operation interface of the application. Therefore, the operation instructions for the target file may be triggered directly on the desktop of the electronic device or in an application window on the desktop.
[0105] In an embodiment of the present application, the operation instruction for the target file may be an instruction that directly acts on the target file. In one example, the above-mentioned operation instruction may be an instruction to select the target file. For example, the user can move the cursor of the mouse connected to the electronic device to the target file and press a button of the mouse, such as pressing the left button of the mouse to select the target file. Usually, when the target file is selected by the mouse, the mouse button should remain pressed. If the electronic device is an electronic device with a touch screen, the user can also use gestures to select the target file. For example, the user can use a finger to long press the target file on the desktop of the electronic device to select the target file in this way.
[0106] In another example, the above-mentioned operation instruction may also be an instruction to move the target file. For example, the user can select the target file in the above-mentioned manner and then move the target file. When the electronic device detects the user's action of moving the target file, it can be considered that the operation instruction for the electronic device has been triggered. Among them, moving the target file can be achieved by any method including dragging and dropping. Taking dragging as an example, the user can use the mouse or gesture to select the target file, and then drag the target file a certain distance away from the original location. The direction of dragging can be any direction.
[0107] As shown in Figure 6, it is a schematic diagram of a file operation process provided by an embodiment of the present application. The desktop shown in (a) in Figure 6 includes four application windows, namely application window 601, application window 602, application window 603, and application window 604, wherein application window 601 includes an image 6011. As can be seen in (a) in Figure 6, application window 602, application window 603, and application window 604 partially overlap with each other, and application window 604 is displayed on the upper layer of application window 602 and application window 603. The image 6011 in (a) in Figure 6 is the target file, and the operation instruction for the image 6011 can be triggered by selecting the image 6011 with the mouse.
[0108] S502: Based on the operation instruction, display at least one preview window on the desktop, where the preview window is a preview window of an application running on the desktop and compatible with the target file.
[0109] In an embodiment of the present application, when an electronic device obtains an operation instruction for a target file, it can display at least one preview window on the desktop. The preview window can be a preview window of at least one application, and the application can be an application currently running on the desktop, for example, a document application, a social application, an email application, a video application, etc. running on the desktop. The preview window of the application can be an application window displayed in the form of a thumbnail when the application is running on the desktop. Different applications present different application windows when running on the desktop. For example, for a document application, the application window presented at runtime can be an open document, which can include text, pictures, and other content, or it can be a blank document. For a social application, the application window presented at runtime can be a current chat interface. For an email application, the application window presented at runtime can be an inbox or outbox interface. For a video application, the application window presented at runtime can be a video playback interface.
[0110] Since there may be multiple applications running on the desktop of an electronic device, but not every application can operate the target file, the electronic device can first determine the multiple applications running on the desktop based on the acquired operation instructions for the target file, and then determine at least one application that is compatible with the target file from the multiple applications running on the desktop, and display a preview window of the at least one application that is compatible with the target file on the desktop. That is, the preview window displayed on the desktop should be a preview window of an application that is currently running and can be compatible with the target file. The above-mentioned application that is compatible with the target file may refer to an application that can operate the target file. That is, determining at least one application that is compatible with the target file may refer to determining at least one application that can operate the target file from the multiple applications running on the desktop. For example, if the target file is a picture, the applications that can operate the picture may include picture editing applications, document applications, email applications, social applications, etc. Among them, image editing applications can be used to edit and process the image; document applications can insert the image into a document; email applications can insert the image into the body of an email, or insert the image as an attachment to an email; social applications can be used to send the image to other users in the form of a message.
[0111] In one possible implementation of an embodiment of the present application, determining which application, from among multiple applications, can operate a target file can be accomplished based on the target file's file type. Specifically, the electronic device can first determine the target file's file type, which can be obtained by obtaining the target file's attribute information. For example, by obtaining the target file's attribute information, the electronic device can determine whether the target file is an image, a video file, a compressed file package, etc. The electronic device can then determine the file types that can be operated by each of the multiple applications running on the desktop. Generally, any application can operate on multiple file types. For example, a social application can be used to send documents, images, video files, compressed file packages, etc. Therefore, the file types that can be operated on by a social application can include documents, images, video files, compressed file packages, and other types. If the file types that can be operated on by an application running on the desktop include the file type of the target file, the electronic device can determine that the application can operate on the target file. For example, if the file types that can be operated on by the social application mentioned above include images, then a target file of the image type is compatible with the social application.
[0112] In an embodiment of the present application, when displaying a preview window of an application, the electronic device may determine a display area of the preview window on the desktop, and then display the preview window in the determined display area.
[0113] Typically, to facilitate user operation, the display area for displaying the preview window may include an area within a preset pixel range around the target file. That is, the electronic device may display a preview window of at least one application that can operate the target file around the target file.
[0114] FIG6(b) shows a schematic diagram of an electronic device desktop displaying multiple preview windows. FIG6(b) includes a first preview window 6021, a second preview window 6041, and a third preview window 6031. First preview window 6021 is an application window 602 displayed as a thumbnail, second preview window 6041 is an application window 604 displayed as a thumbnail, and third preview window 6031 is an application window 603 displayed as a thumbnail. These three preview windows are displayed around the target file.
[0115] In a possible implementation of an embodiment of the present application, the number of applications running on the electronic device desktop and capable of adapting to the target file may include multiple. Correspondingly, the number of preview windows that need to be displayed may also include multiple. In the case where multiple preview windows need to be displayed, the electronic device can determine the arrangement order of the multiple preview windows and display the multiple preview windows on the desktop according to the arrangement order. For example, for the first preview window 6021, the second preview window 6041, and the third preview window 6031 shown in (b) of Figure 6, when displaying the above three preview windows, the electronic device can first determine the arrangement order of the three preview windows.
[0116] In a possible implementation of the embodiment of the present application, the electronic device can determine the number of times that multiple applications corresponding to multiple preview windows respectively operate each file of the same file type as the target file, and determine the arrangement order of the multiple preview windows according to the number.
[0117] For example, the target file is an image, so each file of the same file type as the target file is also an image. The applications corresponding to the multiple preview windows may include document applications, social applications, and email applications. When determining the order of the preview windows, the number of times each application has manipulated the image can be determined. For example, the number of times a document application manipulated the image, the number of times a social application manipulated the image, and the number of times an email application manipulated the image. Different applications may manipulate a file differently, and the same application may manipulate a file in multiple ways. For example, a document application's manipulation of an image may involve inserting the image into a document. A social application's manipulation of an image may involve sending the image to other users via the social application's chat window, or editing the image using the image editing functions provided by the social application, such as beautifying a person in the image, adding text to the image, and so on. An email application's manipulation of an image may involve including the image as part of the email body or as an attachment. Therefore, determining the number of times each application operates on each file of the same file type as the target file can refer to counting the number of times each application operates on each file of the same file type using the same or different operation methods. For example, counting the number of times an image is inserted into a document over a period of time, counting the number of times an image is sent to other users via a chat window, and counting the number of times an image is used as the body of an email or as an attachment.
[0118] In one example, if an application operates on a file in multiple ways, the number of times the application operates on each file using different operation methods can be calculated by summing the number of times the application operates on each file using different operation methods. For example, for a social application, if a user sends a picture to other users via a chat window seven times during a period of time, and edits the picture using the picture editing function two times during the same period of time, then the number of times the social application operated on picture-type files during that period of time can be determined to be nine.
[0119] In another possible implementation of the embodiment of the present application, the target file may be a file in a certain application, for example, the target file may be a file in a first application. The first application may be an application of any type, such as a document application. The electronic device may also determine the number of times that multiple applications corresponding to multiple preview windows respectively operate on any file in the first application, and then determine the arrangement order of the multiple preview windows based on the number of times. Any file in the first application may include a file of the same type as the target file, or may include a file of a different type than the target file.
[0120] For example, the first application is a document application, and the target file is an image in the first application, that is, the target file is an image in a document. When determining the number of times each application operates on any file in the first application, the electronic device can determine the number of times each application operates on any image in a document.
[0121] In an embodiment of the present application, when displaying the preview window according to the above-determined number of times, the electronic device may display multiple preview windows on the desktop in descending order of the number of times. The greater the number of times any application is displayed, the more times the application has operated on files of the same type as the target file over at least a period of time in the past, or the greater the number of times the application has operated on any file in the first application, indicating that the application is more likely to be used to operate the target file. Therefore, when displaying the preview window, the distance between the preview window of the application and the target file can be ensured to be closer.
[0122] In one possible implementation of an embodiment of the present application, the display area for displaying multiple preview windows can be located slightly to the upper left of the target file. For example, as shown in FIG6(b), the display area for the first preview window 6021, the second preview window 6041, and the third preview window 6031 is located. For this display configuration, applications with a higher number of views, as determined in the above manner, should be positioned further to the right of the display area, while applications with a lower number of views should be positioned further to the left of the display area. Assuming that the multiple preview windows shown in FIG6(b) are arranged in order of highest to lowest number of views, then the application corresponding to the first preview window 6021, as determined in the above manner, has the lowest number of views, the application corresponding to the third preview window 6031 has the highest number of views, and the application corresponding to the second preview window 6041 has a middle number of views. Therefore, the three preview windows are arranged in the display area in the following order: first preview window 6021, second preview window 6041, and third preview window 6031. This ensures that the third preview window 6031 is closer to the target file.
[0123] In another possible implementation of the embodiment of the present application, the display area for displaying multiple preview windows can be located slightly to the upper right of the target file. With this display configuration, since the first preview window 6021, as determined above, corresponds to the application with the least number of views, the third preview window 6031 corresponds to the application with the most views, and the second preview window 6041 corresponds to the application with a middle view, the three preview windows are arranged in the following order within the display area: third preview window 6031, second preview window 6041, and first preview window 6021. This ensures that the third preview window 6031 is closer to the target file.
[0124] In a possible implementation of an embodiment of the present application, after the electronic device obtains an operation instruction for a target file, if there is no application compatible with the target file running on the desktop of the electronic device, that is, no application is running on the desktop of the electronic device, or although there are one or more applications running on the desktop of the electronic device, these one or more applications are not compatible with the target file, in this case, the electronic device can determine an application compatible with the target file from multiple historical running applications, and then display a preview window of the application compatible with the target file in the multiple historical running applications on the desktop.
[0125] The multiple historically running applications may refer to applications that have been running in the past but are currently closed. Since there may be many applications that have been running in the past but are currently closed, the electronic device can determine the historically running applications by time period. For example, the electronic device can select applications that have been running in the past hour as historically running applications, or it can select applications that have been running in the past two hours as historically running applications.
[0126] After determining multiple historically running applications, the electronic device can determine the running time of the multiple historically running applications. Since the running time of each application is a continuous period of time, a certain time point in the continuous period of time can be used as the running time of the historically running application. For example, the time when the historically running application was closed can be used as the running time of the historically running application. Then, the electronic device can determine one or more applications that are compatible with the target file from the multiple historically running applications based on the time difference between the running time and the current system time. The above time difference can indicate whether each historically running application was closed earlier or later. Among them, when the time difference is smaller, it means that the historically running application was closed later; when the time difference is larger, it means that the historically running application was closed earlier. Therefore, when there are multiple historically running applications that are compatible with the target file, the historically running applications with smaller time differences can be preferentially selected based on the number of preview windows that can be accommodated in the display area for displaying preview windows. For example, three historically running applications that were closed later are preferentially selected as the applications for which preview windows will be displayed.
[0127] S503: Detecting a move operation of moving the target file to a target preview window, where the target preview window is any one of the preview windows.
[0128] In an embodiment of the present application, the number of preview windows displayed on the electronic device desktop may include multiple preview windows, and the target preview window may be any one of the multiple preview windows. The target preview window is also the preview window of the application on which the user wishes to operate the target file. For example, the target file is a picture in a first document, and the preview windows include preview windows of document applications, email applications, and social applications. The preview window of the document application may be a preview image of a page of the second document. If the user wishes to copy the target file in the first document to the second document, the target preview window is the preview window of the document application, that is, the preview window of the second document.
[0129] The electronic device may detect the movement of the target file. When a move operation of moving the target file to the target preview window is detected, the electronic device may execute S504 to operate the target file in the target application corresponding to the target preview window.
[0130] In the embodiment of the present application, the electronic device determines the target preview window by detecting that the target file is moved to a preview window and then determining the preview window as the target preview window. Before the target file is moved, the electronic device does not know which preview window is the target preview window.
[0131] For example, as shown in FIG6(c), when the user operates the mouse to move the target file to the third preview window 6031, the third preview window 6031 is determined as the target preview window, and the application corresponding to the third preview window 6031 is the target application, that is, the application that provides the application window 603 is the target application. The electronic device can operate on the target file in the target application.
[0132] S504: According to the move operation, perform an operation on the target file in the target application corresponding to the target preview window.
[0133] In the embodiments of the present application, the electronic device operating the target file in the target application may refer to the target application processing the target file in an operable manner. For example, if the target file is an image and the target application is a document application, the target application operating the target file may be inserting the image into a document.
[0134] In a possible implementation of the embodiment of the present application, the target application may not be displayed on the top layer of the desktop. When the target application is displayed below other applications, at least part of the target application's application window is obscured by the application windows of other applications.
[0135] For example, as shown in (a) to (c) of FIG6 , application window 602 , application window 603 and application window 604 partially overlap with each other, and application window 604 is displayed on an upper layer of application window 602 and application window 603 .
[0136] Therefore, when operating the target file in the target application, the target application can be displayed on the upper layer of multiple applications on the desktop. For example, as shown in (d) of Figure 6, the application providing application window 603 is displayed on the upper layer of the application providing application window 602 and application window 604.
[0137] Then, the electronic device can determine the file processing type of the target application and process the target file in the target application according to the determined file processing type. The above-mentioned file processing type may refer to the specific way in which the target application can operate or process the target file. Exemplarily, the file processing type of a document application may include inserting the target file into a document. For example, as shown in (e) in Figure 6, the target file is inserted into the application window 603, that is, the image 6011 is copied to the document in the application window 603.
[0138] In one possible implementation of an embodiment of the present application, after the user uses the mouse to drag the target file to the third preview window 6031, the user can release the mouse. At this point, the electronic device can process the target file in the target application, and the preview window displayed around the original target file can no longer be displayed. For example, as shown in (f) in Figure 6, only the target file is displayed in application window 601, and the target file is also displayed in application window 603. At the same time, the mouse cursor can be displayed in application window 603.
[0139] In one possible implementation of the embodiment of the present application, the target application may include an email application. When the email application is used to process the target file, the electronic device may attach the target file to an email in the email application. For example, the target file may be a compressed file package. The email application may create a new email and attach the compressed file package to the email.
[0140] In another possible implementation of the embodiment of the present application, the target application may include a social application. When the target file is processed using the social application, the electronic device can send the target file through the social application. For example, the target file may be a picture, and the social application can send the picture to other users through a chat window.
[0141] In another possible implementation of the embodiment of the present application, the target application may include a video application. When the target file is processed by the video application, the electronic device may play the target file through the video application. For example, if the target file is a video, the video application may directly play the video.
[0142] In an embodiment of the present application, when an electronic device obtains an operation instruction for a target file, it can display at least one preview window on the desktop based on the operation instruction. The at least one preview window can be a preview window of an application that is currently running and can be adapted to the target file, wherein the application that can be adapted to the target file can be an application that can operate the target file. When a move operation to move the target file to any preview window is detected, the electronic device can operate the target file in the target application corresponding to the preview window. Applying the method provided in an embodiment of the present application, the electronic device can identify the various application windows currently opened on the desktop, filter out application windows that cannot process the target file, and preview and display the application windows that can process the target file in the form of thumbnails, so that the user can quickly find the application that needs to process the target file from multiple preview windows, and it is also convenient for the user to directly move the target file to the application window of the target application, so that the target application can quickly process the target file, thereby improving the processing efficiency of the target file.
[0143] In combination with the above embodiments, the file operation method provided in the embodiments of the present application is introduced below with a specific example.
[0144] As shown in Figure 7, it is a schematic diagram of a file operation process provided by an embodiment of the present application. The operation process shown in Figure 7 can be a process executed for an application whose target application is a document type. According to the process shown in Figure 7, the electronic device can first respond to the drag action for the target file. Among them, the target file can be a file on the desktop of the electronic device, or it can be a file in an application window on the desktop. For example, the target file is a picture. The drag action for the target file can be implemented by a mouse. If the electronic device is a touch screen device, the drag action can also be implemented by a user's gesture operation.
[0145] When responding to the drag action for the target file, the electronic device can determine whether there is an application window on the desktop. The application window can be a window of the application interface or operation interface presented on the desktop of the electronic device.
[0146] If there are application windows on the electronic device's desktop, the electronic device can filter out non-document-type application windows and display preview windows of the remaining document-type applications around the target file. These preview windows can provide the user with the ability to directly send the target file. For example, the user can move the target file to a preview window, and the electronic device can send the target file to the application window corresponding to the preview window based on the user's operation.
[0147] If there is no application window on the desktop of the electronic device that can receive the target file, for example, there is no document-type application that is already opened on the desktop of the electronic device, the electronic device can display a preview window of a recently frequently used application near the target file. When the user moves the target file to a preview window, the electronic device can open the application corresponding to the preview window according to the above-mentioned operation of the user, and operate the target file in the application window of the application. For example, if the recently frequently used application is an email application, when the user moves the target file to the preview window of the email application, the electronic device can open the email application, create a new email, and paste the target file as an attachment to the new email.
[0148] In the embodiment of the present application, the electronic device can be divided into functional modules according to the above method example. For example, each functional module can be divided corresponding to each function, or one or more functions can be integrated into one functional module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. The division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. The following is an example of dividing each functional module corresponding to each function.
[0149] Corresponding to the above embodiments, referring to FIG8 , a structural block diagram of a file operation device provided in an embodiment of the present application is shown. The device can be applied to the electronic devices in the above embodiments. The device may specifically include the following modules: an acquisition module 801, a display module 802, a detection module 803, and an operation module 804, wherein:
[0150] The acquisition module 801 is used to obtain an operation instruction for a target file;
[0151] A display module 802 is configured to display at least one preview window on the desktop based on the operation instruction, where the preview window is a preview window of an application running on the desktop and compatible with the target file;
[0152] a detection module 803, configured to detect a move operation of moving the target file to a target preview window, where the target preview window is any one of the preview windows;
[0153] The operation module 804 is configured to operate the target file in the target application corresponding to the target preview window according to the move operation.
[0154] In a possible implementation of an embodiment of the present application, the display module 802 can be specifically used to: determine multiple applications running on the desktop based on the operation instruction; determine at least one application that is compatible with the target file from the multiple applications running on the desktop; and display a preview window of at least one application that is compatible with the target file on the desktop.
[0155] In a possible implementation of the embodiment of the present application, the display module 802 may also be configured to: determine at least one application that can operate the target file from a plurality of applications running on the desktop.
[0156] In a possible implementation of an embodiment of the present application, the display module 802 can also be used to: determine the file type of the target file; determine the file types that can be operated by multiple applications running on the desktop respectively; if the file types that can be operated by a certain application running on the desktop include the file type of the target file, then determine that the certain application can operate the target file.
[0157] In a possible implementation of the embodiment of the present application, the display module 802 may also be configured to: determine a display area of the preview window on the desktop; and display the preview window in the display area.
[0158] In an embodiment of the present application, the display area includes an area within a preset pixel range around the target file.
[0159] In a possible implementation of the embodiment of the present application, the number of the preview windows includes multiple, and the display module 802 can also be used to: determine the arrangement order of the multiple preview windows; and display the multiple preview windows on the desktop according to the arrangement order.
[0160] In a possible implementation of the embodiment of the present application, the display module 802 can also be used to: determine the number of times that multiple applications corresponding to the multiple preview windows respectively operate each file of the same file type as the target file; and determine the arrangement order of the multiple preview windows according to the number of times.
[0161] In a possible implementation of the embodiment of the present application, the target file is a file in a first application, and the display module 802 can also be used to: determine the number of times that multiple applications corresponding to the multiple preview windows respectively operate any file in the first application; and determine the arrangement order of the multiple preview windows according to the number of times.
[0162] In a possible implementation of an embodiment of the present application, the display module 802 can also be used to: display multiple preview windows on the desktop in order of the number of times from most to least; wherein, the more the number of times corresponding to any application, the closer the distance between the preview window of the application and the target file is.
[0163] In a possible implementation of an embodiment of the present application, the display module 802 can also be used to: if no application compatible with the target file is running on the desktop, determine an application compatible with the target file from multiple historical running applications; and display preview windows of the applications compatible with the target file in the multiple historical running applications on the desktop.
[0164] In a possible implementation of an embodiment of the present application, the display module 802 can also be used to: determine the running time of multiple historical running applications; and determine one or more applications that are compatible with the target file from multiple historical running applications based on the time difference between the running time and the current system time.
[0165] In a possible implementation of an embodiment of the present application, the operation module 804 can be specifically used to: display the target application on the upper layer of multiple applications on the desktop according to the moving operation; determine the file processing type of the target application; and process the target file in the target application according to the file processing type.
[0166] In a possible implementation of the embodiment of the present application, the target application includes an email application, and the operation module 804 can also be used to: paste the target file as an attachment to an email in the email application.
[0167] In a possible implementation of the embodiment of the present application, the target application includes a social application, and the operation module 804 can also be used to: send the target file through the social application.
[0168] In a possible implementation of the embodiment of the present application, the target application includes a video application, and the operating module 804 can also be used to: play the target file through the video application.
[0169] All relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.
[0170] An embodiment of the present application also provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the file operation method in each of the above embodiments is implemented.
[0171] An embodiment of the present application further provides a computer-readable storage medium, which stores computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the file operation methods in the above-mentioned embodiments.
[0172] An embodiment of the present application further provides a computer program product. When the computer program product is run on a computer, the computer is caused to execute the above-mentioned related steps to implement the file operation methods in the above-mentioned embodiments.
[0173] Finally, it should be noted that the above is only a specific implementation method of the present application, but the protection scope of the present application is not limited thereto. Any changes or replacements within the technical scope disclosed in the present application should be covered by the protection scope of the present application.
Claims
1. A file operation method, characterized in that: Applied to electronic equipment, the method comprises: Get the operation instructions for the target file; Based on the operation instruction, displaying at least one preview window on the desktop, wherein the preview window is a preview window of an application running on the desktop and adapted to the target file; detecting a moving operation of moving the target file to a target preview window, the target preview window being any one of the preview windows; According to the moving operation, the target file is operated in the target application corresponding to the target preview window.
2. The method according to claim 1, characterized in that The step of displaying at least one preview window on the desktop based on the operation instruction includes: Based on the operation instruction, determining a plurality of applications running on the desktop; Determine at least one application compatible with the target file from a plurality of applications running on the desktop; A preview window of at least one application compatible with the target file is displayed on the desktop.
3. The method according to claim 2, characterized in that The step of determining at least one application compatible with the target file from a plurality of applications running on the desktop includes: At least one application that can operate the target file is determined from a plurality of applications running on the desktop.
4. The method according to claim 3, characterized in that The determining at least one application that can operate the target file from the plurality of applications running on the desktop comprises: Determine the file type of the target file; Determining file types that can be respectively operated by multiple applications running on the desktop; If the file types operable by a certain application running on the desktop include the file type of the target file, it is determined that the certain application can operate the target file.
5. The method according to any one of claims 2 to 4, characterized in that: The step of displaying a preview window of at least one application compatible with the target file on the desktop includes: Determining a display area of the preview window on the desktop; The preview window is displayed in the display area.
6. The method according to claim 5, characterized in that The display area includes an area within a preset pixel range around the target file.
7. The method according to any one of claims 1 to 6, characterized in that: The number of the preview windows includes a plurality, and the displaying at least one preview window on the desktop based on the operation instruction further includes: Determining an arrangement order of the plurality of preview windows; A plurality of the preview windows are displayed on the desktop according to the arrangement order.
8. The method according to claim 7, characterized in that The step of determining the arrangement order of the plurality of preview windows comprises: Determine the number of times that the plurality of applications corresponding to the plurality of preview windows respectively operate each file of the same file type as the target file; According to the number of times, an arrangement order of the plurality of preview windows is determined.
9. The method according to claim 7, characterized in that: The target file is a file in the first application, and determining the arrangement order of the plurality of preview windows includes: Determine the number of times that a plurality of applications corresponding to a plurality of the preview windows respectively operate any file in the first application; According to the number of times, an arrangement order of the plurality of preview windows is determined.
10. The method according to claim 8 or 9, characterized in that: Determining the arrangement order of the plurality of preview windows according to the number of times includes: Displaying a plurality of preview windows on the desktop in the order of the number of times from large to small; wherein the more the number of times corresponding to any application is, the closer the distance between the preview window of the application and the target file is.
11. The method according to any one of claims 1 to 10, characterized in that: After obtaining the operation instruction for the target file, the method further includes: If no application compatible with the target file is running on the desktop, determining an application compatible with the target file from a plurality of historically running applications; Preview windows of applications among the plurality of historically running applications that are compatible with the target file are displayed on the desktop.
12. The method according to claim 11, characterized in that The step of determining an application compatible with the target file from a plurality of historically running applications includes: Determining the running time of a plurality of the historically running applications; One or more applications that are compatible with the target file are determined from a plurality of the historically running applications according to the time difference between the running time and the current system time.
13. The method according to any one of claims 1 to 12, characterized in that: The operating the target file in the target application corresponding to the target preview window according to the moving operation includes: According to the moving operation, displaying the target application on an upper layer of multiple applications on the desktop; Determining a file processing type of the target application; The target file is processed in the target application according to the file processing type.
14. The method according to claim 13, characterized in that The target application includes a mail application, and processing the target file in the target application according to the file processing type includes: Paste the target file as an attachment to an email in the email application.
15. The method according to claim 13, characterized in that The target application includes a social application, and the processing of the target file in the target application according to the file processing type includes: The target file is sent through the social application.
16. The method according to claim 13, characterized in that The target application includes a video application, and processing the target file in the target application according to the file processing type includes: The target file is played through the video application.
17. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the file operation method according to any one of claims 1 to 16 is implemented.
18. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and when the computer instructions are executed on an electronic device, the electronic device implements the file operation method according to any one of claims 1 to 16.
Citation Information
Patent Citations
Shooting method and device, electronic equipment and readable storage medium
CN112437232A
Performance of data pasting-related action based on cut or copied data attribute
US20180067785A1
Selecting applications based on features of a file
US20210326143A1
Application data processing method and apparatus, and terminal device
WO2017193496A1
Object sharing method and mobile terminal
WO2019228294A1
