File processing method and device
By implementing the file processing method on a multi-screen electronic device, displaying a file directory using the first display screen, and displaying an object to be processed on the second display screen, the problem of inefficient file management in the prior art is solved, and convenient and efficient multi-file processing is achieved.
Patent Information
- Application Number
- CN202411684436.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-22
- Publication Date
- 2025-03-07
AI Technical Summary
The prior art is difficult to efficiently manage multiple file types within the same operating interface, resulting in users needing to frequently switch different interfaces and applications, which is inefficient.
By implementing the file processing method on a multi-screen electronic device, displaying a file directory using the first display screen, and displaying a to-process object matching the file processing type on the second display screen, enabling the user to process a variety of files on the same interface.
It significantly improves the convenience and efficiency of file management, reduces the switching process between different applications, and allows users to process multiple files on the same interface without frequent jumps.
Smart Images

Figure CN119576869A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communication technology, and specifically relates to a file processing method and device. Background Art
[0002] As the functions of electronic devices continue to increase, users' demand for using electronic devices for file management is also growing. Existing file management methods usually do not have the ability to handle multiple file types within the same operating interface. When users manage files, they often need to switch between different interfaces, which not only consumes extra time but also affects the user's work efficiency. Especially today, with the increasing popularity of mobile office and multitasking, users have an increasingly urgent need to be able to handle multiple file types quickly and efficiently.
[0003] Especially for foldable electronic devices with multiple screens, when users need to manage multiple files in the mobile phone folder (such as viewing, moving or editing), they need to frequently switch between different applications or even multiple different screens. This method is inefficient and cumbersome to operate. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a file processing method and device that can achieve convenient and efficient file management through a multi-screen electronic device.
[0005] In a first aspect, an embodiment of the present application provides a file processing method, which is applied to an electronic device, wherein the electronic device includes at least a first display screen and a second display screen, and the method includes: In response to a first operation on a first file in a first file directory of the electronic device, determining a file processing type of the first file; the first file directory includes a plurality of files; The first file directory is displayed on the first display screen; and the to-be-processed objects corresponding to the first file and matching the file processing type are displayed on the second display screen.
[0006] In a second aspect, an embodiment of the present application provides a file processing device, which is applied to an electronic device, wherein the electronic device includes at least a first display screen and a second display screen, and the device includes: A determination module, configured to determine a file processing type of a first file in a first file directory of the electronic device in response to a first operation on the first file in the first file directory of the electronic device; the first file directory includes a plurality of files; The first display module is used to display the first file directory on the first display screen; and to display the to-be-processed objects corresponding to the first file and matching the file processing type on the second display screen.
[0007] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the file processing method described in the first aspect are implemented.
[0008] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the file processing method described in the first aspect are implemented.
[0009] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the file processing method as described in the first aspect.
[0010] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the file processing method as described in the first aspect.
[0011] In an embodiment of the present application, in response to a first operation on a first file in a first file directory of an electronic device (including a first display screen and a second display screen), the file processing type of the first file is determined; and then the first file directory is displayed on the first display screen, and the to-be-processed object corresponding to the first file and matching the file processing type is displayed on the second display screen, wherein the first file directory includes multiple files. It enables the user to process any file in the first file directory on the same interface displayed by multiple display screens. In addition, since the user can process the to-be-processed object of the first file on the second display screen, and since the first file directory is displayed on the first display screen, there is no need to jump back to the original file directory after processing the to-be-processed object of the first file. If other files in the first file directory need to be processed, it is only necessary to operate the first file directory displayed on the first display screen, thereby reducing the switching process between different applications, and significantly improving the convenience and efficiency of file processing of multi-screen electronic devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 is a schematic flow chart of a file processing method according to an embodiment of the present application; Figure 2 is a schematic interface diagram of a multi-screen display interface in a file processing method according to an embodiment of the present application; Figure 3 is a schematic flow chart of a file processing method according to another embodiment of the present application; Figure 4is a schematic interface diagram of a file browsing mode in a file processing method according to an embodiment of the present application; Figure 5 is a schematic interface diagram of a file editing mode in a file processing method according to an embodiment of the present application; Figure 6(a)-6(b) is a schematic interface diagram of a file editing mode in a file processing method according to another embodiment of the present application; Figure 7 is a schematic flow chart of a file processing method according to yet another embodiment of the present application; Figure 8 is a schematic interface diagram of a multi-screen display interface in a file processing method according to another embodiment of the present application; Fig. 9 is a schematic flow chart of a file processing method according to yet another embodiment of the present application; Fig.10 is a schematic block diagram of a file processing device according to an embodiment of the present application; Fig.11 is a schematic block diagram of an electronic device according to an embodiment of the present application; Fig.12 It is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0013] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0014] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0015] The file processing method provided in the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0016] Figure 1FIG. 1 is a schematic flow chart of a file processing method according to an embodiment of the present application. Figure 1 As shown, the file processing method is applied to an electronic device, the electronic device at least includes a first display screen and a second display screen, and the file processing method includes the following steps: S102: In response to a first operation on a first file in a first file directory of an electronic device, determine a file processing type of the first file.
[0017] The first file directory includes multiple files; when the multiple display screens of the electronic device are in an expanded state, the multiple display screens display the same interface as a whole (hereinafter referred to as a multi-screen display interface). That is, the multiple display screens in the expanded state can be regarded as one display screen. The second display screen may include one or more display screens (or sub-display screens).
[0018] There are multiple ways to enter the multi-screen display interface. Optionally, a shortcut button is configured on the main screen of the electronic device, and the user can enter the multi-screen display interface by clicking the shortcut button. Optionally, a shortcut gesture for entering the multi-screen display interface is pre-configured, such as a sliding gesture, and the user performs a sliding gesture on the main screen of the electronic device to trigger the electronic device to enter the multi-screen display interface. Optionally, the multi-screen display interface is entered through the file storage root directory of the electronic device. For example, clicking on any file directory in the file storage root directory can trigger the electronic device to enter the multi-screen display interface and display the clicked file directory on the multi-screen display interface.
[0019] The first file may be any file in the first file directory. The first operation may be any type of configurable operation such as click (such as single click or double click), long press, slide, etc. Depending on the operation mode of the first operation, the file processing type of the first file may be different. The file processing type may include file browsing type, file editing type, file moving type, etc.
[0020] Optionally, a correspondence between the first operation and the file processing type is preconfigured. Assume that in the preconfigured correspondence, when the first operation is a single-click operation, the corresponding file processing type is a file browsing type; when the first operation is a long-press operation, the corresponding file processing type is a file editing type. Then, in response to the single-click operation on the first file, the file processing type of the first file is determined to be a file browsing type. In response to the long-press operation on the first file, the file processing type of the first file is determined to be a file editing type. The correspondence between the first operation and the file processing type is not fixed, and can be configured accordingly according to actual needs or user operating habits.
[0021] There can also be a one-to-many correspondence between the first operation and the file processing type, that is, the same type of operation can correspond to multiple file processing types. In this case, the file processing type of the first file can be determined based on the user's further operation. For example, when the first operation is a long press operation, it can correspond to a file editing type and a file moving type. In this case, an entry for determining the file processing type can be provided, such as a pop-up file processing type selection window, and the selection window displays selection buttons corresponding to the file editing type and the file moving type, respectively. The user can select the corresponding file processing type by clicking the selection button.
[0022] like Figure 2 The "integrated operation interface" shown is a multi-screen display interface. Figure 2 Taking the three display screens in the unfolded state as an example, the first display screen is the left screen, the second display screen includes the middle screen and the right screen, and the three display screens are displayed as one display screen in the unfolded state. Among them, the first file directory "learning materials" is displayed in the integrated operation interface. The learning materials directory includes various types of files such as Word1, Word2, Word3, Word4, PNG1, PNG2, Excel1, Excel2, etc.
[0023] S104, displaying a first file directory on a first display screen; and displaying objects to be processed that match the file processing type and correspond to the first file on a second display screen.
[0024] Among them, the first file directory is updated from being initially displayed on the multi-screen display interface to being displayed on the first display screen, so that the second display screen can display the objects to be processed corresponding to the first file and matching the file processing type. In this way, multiple display screens in the expanded state can simultaneously display the first file directory and the objects to be processed of the first file, allowing users to process files on the same display interface, thereby improving the convenience and efficiency of file processing.
[0025] Depending on the file processing type, the object to be processed displayed on the second display screen is different. Optionally, when the file processing type is a file browsing type, the object to be processed displayed on the second display screen is the file content of the first file. When the file processing type is a file editing type, the object to be processed displayed on the second display screen is the content to be edited of the first file. When the file processing type is a file moving type, the object to be processed displayed on the second display screen is the root directory or the second file directory to which the first file is about to be moved. The following embodiments will explain these file processing types in detail.
[0026] Optionally, after the object to be processed that matches the file processing type corresponding to the first file is displayed on the second display screen, in response to a third operation on the second file in the first file directory, the object to be processed corresponding to the second file is displayed on the second display screen. That is, the user can switch the object to be processed displayed on the second display screen by operating any file in the first file directory displayed on the first display screen. For example, the user operates the second file, triggering the display of the object to be processed corresponding to the second file on the second display screen; the user then operates the third file, triggering the display screen to switch from the object to be processed corresponding to the second file to the object to be processed corresponding to the third file. It can be seen that the effect of switching multiple files can be achieved on the same display interface, and there is no need for frequent jump operations during the switching process.
[0027] In this embodiment, the electronic device may be any type of terminal device with multiple display screens, such as a foldable screen mobile phone, a foldable screen tablet computer, etc.
[0028] Optionally, when the first file directory is displayed on the first display screen, since the display area of the first file directory is reduced, the display size of the file icon and / or file name of each file in the first file directory can be appropriately reduced. The reduction ratio can be pre-configured by the user or can be adaptively adjusted by the electronic device according to the size of the display screen.
[0029] In an embodiment of the present application, in response to a first operation on a first file in a first file directory of an electronic device (including a first display screen and a second display screen), the file processing type of the first file is determined; and then the first file directory is displayed on the first display screen, and the to-be-processed object corresponding to the first file and matching the file processing type is displayed on the second display screen, wherein the first file directory includes multiple files. It enables the user to process any file in the first file directory on the same interface displayed by multiple display screens. In addition, since the user can process the to-be-processed object of the first file on the second display screen, and since the first file directory is displayed on the first display screen, there is no need to jump back to the original file directory after processing the to-be-processed object of the first file. If other files in the first file directory need to be processed, it is only necessary to operate the first file directory displayed on the first display screen, thereby reducing the switching process between different applications, and significantly improving the convenience and efficiency of file processing of multi-screen electronic devices.
[0030] In one embodiment, the file processing type is a file browsing type. After determining that the file processing type of the first file is a file browsing type, the file browsing mode is entered. In the file browsing mode, when the to-be-processed object corresponding to the first file and matching the file processing type is displayed on the second display screen, the specific execution is: displaying the file content of the first file on the second display screen.
[0031] Optionally, after the file content of the first file is displayed on the second display screen, in response to a third operation on the second file in the first file directory, the file content of the second file is displayed on the second display screen.
[0032] Figure 3 is a schematic flow chart of a file processing method according to another embodiment of the present application. In this embodiment, the file processing type is a file browsing type. The file processing method is applied to an electronic device having multiple display screens (such as a folding screen mobile phone), and the multiple display screens include at least a first display screen and a second display screen. Figure 3 As shown, the file processing method includes the following steps: S301, entering a multi-screen display interface, and displaying a first file directory on the multi-screen display interface.
[0033] The interface diagram of the multi-screen display interface is as follows: Figure 2 As shown. There are multiple ways to enter the multi-screen display interface. Optionally, a shortcut button is configured on the main screen of the electronic device, and the user can enter the multi-screen display interface by clicking the shortcut button. Optionally, a shortcut gesture for entering the multi-screen display interface is pre-configured, such as a sliding gesture. The user performs a sliding gesture on the main screen of the electronic device to trigger the electronic device to enter the multi-screen display interface. When entering the multi-screen display interface through the two listed methods, the root directory can be displayed on the multi-screen display interface first, and then the first file directory can be entered through the root directory.
[0034] Optionally, the multi-screen display interface is entered through the file storage root directory of the electronic device. For example, clicking on any file directory in the file storage root directory (such as the first file directory) can trigger the electronic device to enter the multi-screen display interface and display the clicked file directory on the multi-screen display interface.
[0035] S302: In response to a click operation on a first file in a first file directory, determining that a file processing type of the first file is a file browsing type.
[0036] The click operation is the first operation. In addition to the click operation, the first operation corresponding to the file browsing type can also be any type of configurable operation such as click and hold, slide, etc.
[0037] When it is determined that the file processing type of the first file is a file browsing type, the electronic device enters a file browsing mode.
[0038] S303, displaying a first file directory on the first display screen, and displaying the file content of the first file on the second display screen.
[0039] S304: In response to a click operation on the second file, display the file content of the second file on a second display screen.
[0040] In this step, the electronic device only needs to switch the file content displayed on the second display screen, and the first file directory is still displayed on the first display screen, so that the user can browse any file in the first file directory.
[0041] Optionally, a virtual button for exiting the browsing mode is configured on the first display screen and / or the second display screen. After responding to the user's triggering operation on the virtual button, the file browsing mode is exited and the multi-screen display interface is entered.
[0042] like Figure 4 As shown, the first display screen displays the first file directory "learning materials", and the second display screen displays the file content of the first file. Figure 4 In the example, an electronic device includes three display screens, the left screen is the first display screen, the middle screen and the right screen together form the second display screen, and the middle screen and the right screen together display the file content of the first file as a whole. It can be seen that when there are more display screens, the display interface area of the second display screen is larger and can display more file content.
[0043] Optionally, virtual buttons corresponding to the browsing tools are configured on the second display screen, such as "next page" button, "return" button, "settings" button, etc. The user can operate the file content displayed on the second display screen by operating the virtual buttons corresponding to the browsing tools. For example, after the user clicks the "next page" button, the file content after the current file content is displayed on the second display screen; for another example, after the user clicks the "settings" button, a setting interface pops up on the second display screen, including settings for the font, line spacing, display background, etc. of the file content.
[0044] In an embodiment of the present application, by displaying the first file directory on the first display screen and displaying the file content of the first file on the second display screen, the user can view the first file directory and the file content of the first file on the same display interface at the same time. Therefore, when the user wants to view the file content of other files, he only needs to operate on other files in the first file directory without frequently jumping between multiple applications, thereby achieving the effect of browsing multiple different files on the same display interface.
[0045] In one embodiment, after the first file directory is displayed on the first display screen and the file content of the first file is displayed on the second display screen, that is, in the file browsing mode, the first file can also be edited or moved. Among them, in response to the fourth operation on the first file, the object to be processed corresponding to the first file and matching the fourth operation is displayed on the second display screen. The fourth operation can be an operation that triggers entering the file editing mode or the file moving mode. If the fourth operations corresponding to the file editing mode and the file moving mode are the same operation, then after receiving the fourth operation, an entry for determining the file processing type can be provided, such as a pop-up selection window for the file processing type, and the selection window displays selection buttons corresponding to the file editing type and the file moving type, respectively, and the user can select the corresponding file processing type by clicking the selection button.
[0046] In this embodiment, after entering the file browsing mode, you can directly enter the file editing mode or file moving mode from the file browsing mode, so there is no need to return to the root directory through multiple jump operations. You can directly edit or move the file through the currently displayed interface, which significantly improves the file processing efficiency.
[0047] In one embodiment, the file processing type is a file editing type. After determining that the file processing type of the first file is a file editing type, a file editing mode is entered. In the file editing mode, when the to-be-processed object corresponding to the first file and matching the file processing type is displayed on the second display screen, the specific execution is: displaying the to-be-edited content of the first file on the second display screen.
[0048] Optionally, in response to an editing operation on the content to be edited, the content to be edited is edited.
[0049] like Figure 5 As shown, after entering the file editing mode, the left screen (i.e., the first display screen) displays the first file directory "Learning Materials", and the middle screen and the right screen (i.e., the second display screen) display the content to be edited of the first file.
[0050] Optionally, after displaying the content to be edited of the first file on the second display screen, in response to a third operation on the second file in the first file directory, the content to be edited of the second file is displayed on the second display screen. In response to the editing operation on the content to be edited of the second file, the content to be edited of the second file is edited.
[0051] Optionally, after the content to be edited of the first file is displayed on the second display screen, in response to a second operation on the second display screen, an editing tool matching the content to be edited is displayed on the second display screen. The second operation may be any configurable operation such as a sliding operation, a clicking operation, a long pressing operation, a triggering operation on a specific virtual key, etc. The specific virtual key is pre-configured on the second display screen, and the specific virtual key may be displayed on the second display screen while the content to be edited of the first file is displayed.
[0052] In this embodiment, after receiving the third operation on the second file in the first file directory, only the content to be edited of the first file is displayed on the second display screen, and the user needs to perform further operations to call out the editing tool matching the content to be edited.
[0053] In one embodiment, the file processing type is a file editing type. The second display screen includes a first sub-display screen and a second sub-display screen. After determining that the file processing type of the first file is a file editing type, a file editing mode is entered. In the file editing mode, when the object to be processed corresponding to the first file and matching the file processing type is displayed on the second display screen, the specific implementation is: displaying the content to be edited of the first file on the first sub-display screen, and displaying the editing tool matching the content to be edited on the second sub-display screen. In response to the editing operation on the content to be edited, the content to be edited is edited.
[0054] The editing tools that match the content to be edited refer to the editing tools that match the content type of the content to be edited. For example, if the content type of the content to be edited is a document type, the editing tools that match it are document editing tools, including fonts, paragraphs, etc.; if the content type of the content to be edited is a picture type, the editing tools that match it are picture editing tools, including picture cropping, color adjustment, filters, etc.
[0055] In this embodiment, after receiving the third operation on the second file in the first file directory, the second display screen simultaneously displays the content to be edited and the editing tool of the first file, such as Figure 6(a)-6(b) As shown in FIG6(a), after entering the file editing mode, the left screen (i.e., the first display screen) displays the first file directory "learning materials", the middle screen (i.e., the first sub-display screen) displays the content to be edited of the first file, and the right screen (i.e., the second sub-display screen) displays the editing tools that match the content to be edited. In FIG6(b), the middle screen displays the image to be edited, and the right screen displays the image editing tools.
[0056] Figure 7is a schematic flow chart of a file processing method according to another embodiment of the present application. In this embodiment, the file processing type is a file editing type. The file processing method is applied to an electronic device having multiple display screens (such as a folding screen mobile phone), and the multiple display screens include at least a first display screen and a second display screen. Figure 7 As shown, the file processing method includes the following steps: S701, entering a multi-screen display interface, and displaying a first file directory on the multi-screen display interface.
[0057] The interface diagram of the multi-screen display interface is as follows: Figure 2 As shown. There are multiple ways to enter the multi-screen display interface. Optionally, a shortcut button is configured on the main screen of the electronic device, and the user can enter the multi-screen display interface by clicking the shortcut button. Optionally, a shortcut gesture for entering the multi-screen display interface is pre-configured, such as a sliding gesture. The user performs a sliding gesture on the main screen of the electronic device to trigger the electronic device to enter the multi-screen display interface. When entering the multi-screen display interface through the two listed methods, the root directory can be displayed on the multi-screen display interface first, and then the first file directory can be entered through the root directory.
[0058] Optionally, the multi-screen display interface is entered through the file storage root directory of the electronic device. For example, clicking on any file directory in the file storage root directory (such as the first file directory) can trigger the electronic device to enter the multi-screen display interface and display the clicked file directory on the multi-screen display interface.
[0059] S702: In response to a long press operation on a first file in a first file directory, display a selection interface for determining a file processing type.
[0060] The selection interface may be an upper window of the multi-screen display interface, for example Figure 8 As shown, after the user long presses the first file "Word4" in the first file directory "Learning Materials" on the integrated operation interface (i.e., the multi-screen display interface), a window pops up on the upper layer of the multi-screen display interface, i.e., the selection interface. The selection interface displays a button "Edit File" corresponding to the file editing type and a button "Move File" corresponding to the file moving type.
[0061] S703: In response to a selection operation on a file editing type, determine that the file processing type of the first file is a file editing type.
[0062] like Figure 8 As shown, in response to the user clicking the button "Edit File" corresponding to the file editing type, the file processing type of the first file is determined to be the file editing type. When the file processing type of the first file is determined to be the file editing type, the electronic device enters the file editing mode.
[0063] S704, displaying the first file directory on the first display screen, and displaying the content to be edited of the first file on the second display screen; or, displaying the content to be edited of the first file and an editing tool matching the content to be edited on the second display screen.
[0064] S705: In response to the editing operation on the content to be edited, edit the content to be edited using an editing tool.
[0065] Optionally, in response to the triggering operation of the exit button, the file editing mode is exited and the multi-screen display interface is entered. The exit button is a virtual button pre-configured on the first display screen and / or the second display screen, and its function is to exit the file editing mode.
[0066] In the above embodiment, by displaying the first file directory on the first display screen and displaying the content to be edited of the first file on the second display screen, the user can not only view the first file directory on the same display interface, but also edit the content to be edited of the first file. Therefore, when the user wants to edit the file content of other files, he only needs to operate on other files in the first file directory without frequently jumping between multiple applications, thereby achieving the effect of switching and editing multiple different files on the same display interface.
[0067] In one embodiment, the file processing type is a file moving type. After determining that the file processing type of the first file is a file moving type, the file moving mode is entered. In the file moving mode, when the to-be-processed object corresponding to the first file and matching the file processing type is displayed on the second display screen, the specific execution is: displaying the root directory on the second display screen. Thereafter, in response to the move operation of the first file and the selection operation of the second file directory in the root directory, the first file is moved to the second file directory.
[0068] After the root directory is displayed on the second display screen, the user can trigger the second display screen to display the second file directory by operating the root directory. After selecting the second file directory, the first file displayed on the first display screen can be moved to the second file directory by operating the first file. For example, long press the first file and drag it to the second file directory to move the first file to the second file directory. The second file directory can be the same as or different from the first file directory.
[0069] Optionally, in the file moving mode, the first file directory or the parent directory of the first file directory can also be displayed on the second display screen, and then, by operating the first file directory or the parent directory displayed on the second display screen, the second display screen is triggered to display the second file directory.
[0070] Fig. 9is a schematic flow chart of a file processing method according to another embodiment of the present application. In this embodiment, the file processing type is a file moving type. The file processing method is applied to an electronic device having multiple display screens (such as a folding screen mobile phone), and the multiple display screens include at least a first display screen and a second display screen. Fig. 9 As shown, the file processing method includes the following steps: S901, entering a multi-screen display interface, and displaying a first file directory on the multi-screen display interface.
[0071] Among them, the interface diagram of the multi-screen display interface and the method of entering the multi-screen display interface have been described in detail in the above embodiments and will not be repeated here.
[0072] S902: In response to a long press operation on a first file in a first file directory, display a selection interface for determining a file processing type.
[0073] The selection interface may be an upper window of the multi-screen display interface, for example Fig. 9 As shown, after the user long presses the first file on the multi-screen display interface, a window pops up on the upper layer of the multi-screen display interface, namely, a selection interface, on which buttons corresponding to the file editing type and the file moving type are displayed.
[0074] S903: In response to the selection operation of the file movement type, determine that the file processing type of the first file is the file movement type.
[0075] like Figure 8 As shown, in response to the user clicking the button "Move File" corresponding to the file movement type, the file processing type of the first file is determined to be the file movement type. When the file processing type of the first file is determined to be the file movement type, the electronic device enters the file movement mode.
[0076] S904, display the first file directory on the first display screen, and display the root directory on the second display screen.
[0077] S905 , in response to the move operation on the first file and the selection operation on the second file directory in the root directory, move the first file to the second file directory.
[0078] Optionally, in response to the triggering operation of the exit button, the file moving mode is exited and the multi-screen display interface is entered. The exit button is a virtual button pre-configured on the first display screen and / or the second display screen, and its function is to exit the file moving mode.
[0079] In the above embodiment, by displaying the first file directory on the first display screen and displaying the root directory on the second display screen, the user can view the first file directory and the target file directory to be moved (i.e., the second file directory under the root directory) on the same display interface at the same time, thereby achieving the file moving effect on the same display interface without frequent jump operations, thereby significantly improving the file moving efficiency.
[0080] The file processing method provided in the embodiment of the present application can be executed by a file processing device. In the embodiment of the present application, the file processing device provided in the embodiment of the present application is described by taking the file processing method executed by the file processing device as an example.
[0081] Fig.10 is a schematic block diagram of a file processing device according to an embodiment of the present application, such as Fig.10 As shown, the file processing device is applied to an electronic device, the electronic device at least includes a first display screen and a second display screen, and the device includes: A determination module 101 is configured to determine a file processing type of a first file in a first file directory of the electronic device in response to a first operation on the first file in the first file directory of the electronic device; the first file directory includes a plurality of files; The first display module 102 is used to display the first file directory on the first display screen; and to display the to-be-processed objects corresponding to the first file and matching the file processing type on the second display screen.
[0082] In one embodiment, the file processing type is a file browsing type; The first display module 102 is further configured to display the file content of the first file on the second display screen.
[0083] In one embodiment, the file processing type is a file editing type; The first display module 102 is further configured to display the to-be-edited content of the first file on the second display screen.
[0084] In one embodiment, the file processing type is a file editing type; the second display screen includes a first sub-display screen and a second sub-display screen; The first display module 102 is further used for: Displaying the to-be-edited content of the first file on the first sub-display screen; An editing tool matching the content to be edited is displayed on the second sub-display screen.
[0085] In one embodiment, the file processing type is a file movement type; The first display module 102 is further configured to display the root directory on the second display screen; The device also includes: The moving module is used to move the first file to the second file directory in response to a move operation on the first file and a selection operation on the second file directory in the root directory.
[0086] In an embodiment of the present application, in response to a first operation on a first file in a first file directory of an electronic device (including a first display screen and a second display screen), the file processing type of the first file is determined; and then the first file directory is displayed on the first display screen, and the to-be-processed object corresponding to the first file and matching the file processing type is displayed on the second display screen, wherein the first file directory includes multiple files. It enables the user to process any file in the first file directory on the same interface displayed by multiple display screens. In addition, since the user can process the to-be-processed object of the first file on the second display screen, and since the first file directory is displayed on the first display screen, there is no need to jump back to the original file directory after processing the to-be-processed object of the first file. If other files in the first file directory need to be processed, it is only necessary to operate the first file directory displayed on the first display screen, thereby reducing the switching process between different applications, and significantly improving the convenience and efficiency of file processing of multi-screen electronic devices.
[0087] The file processing device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or it can be other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0088] The file processing device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0089] The file processing device provided in the embodiment of the present application can achieve Figures 1 to 9 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0090] Alternatively, if Fig.11 As shown, an embodiment of the present application also provides an electronic device 1100, including a processor 1101 and a memory 1102, wherein the memory 1102 stores programs or instructions that can be executed on the processor 1101, and when the program or instructions are executed by the processor 1101, the various steps of the above-mentioned file processing method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not repeated here.
[0091] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0092] Fig.12 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application. The electronic device 1200 includes but is not limited to: a radio frequency unit 1201, a network module 1202, an audio output unit 1203, an input unit 1204, a sensor 1205, a display unit 1206, a user input unit 1207, an interface unit 1208, a memory 1209, and a processor 1210 and other components.
[0093] Those skilled in the art will appreciate that the electronic device 1200 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1210 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.12 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here. Among them, the processor 1210 is used to determine the file processing type of a first file in a first file directory of an electronic device in response to a first operation on the first file in the first file directory of the electronic device; the first file directory includes multiple files; the first file directory is displayed on a first display screen; and the object to be processed corresponding to the first file and matching the file processing type is displayed on a second display screen; the electronic device includes at least the first display screen and the second display screen.
[0094] Optionally, the processor 1210 is further configured to display the file content of the first file on the second display screen.
[0095] Optionally, the processor 1210 is further configured to display the to-be-edited content of the first file on the second display screen.
[0096] Optionally, the file processing type is a file editing type; the second display screen includes a first sub-display screen and a second sub-display screen; The processor 1210 is further configured to display the to-be-edited content of the first file on the first sub-display screen; and to display an editing tool matching the to-be-edited content on the second sub-display screen.
[0097] Optionally, the processor 1210 is further configured to display a root directory on the second display screen; and in response to a move operation on the first file and a selection operation on a second file directory in the root directory, move the first file to the second file directory.
[0098] In an embodiment of the present application, in response to a first operation on a first file in a first file directory of an electronic device (including a first display screen and a second display screen), the file processing type of the first file is determined; and then the first file directory is displayed on the first display screen, and the to-be-processed object corresponding to the first file and matching the file processing type is displayed on the second display screen, wherein the first file directory includes multiple files. It enables the user to process any file in the first file directory on the same interface displayed by multiple display screens. In addition, since the user can process the to-be-processed object of the first file on the second display screen, and since the first file directory is displayed on the first display screen, there is no need to jump back to the original file directory after processing the to-be-processed object of the first file. If other files in the first file directory need to be processed, it is only necessary to operate the first file directory displayed on the first display screen, thereby reducing the switching process between different applications, and significantly improving the convenience and efficiency of file processing of multi-screen electronic devices.
[0099] It should be understood that in the embodiment of the present application, the input unit 1204 may include a graphics processor (GPU) 12041 and a microphone 12042, and the graphics processor 12041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1206 may include a display panel 12061, and the display panel 12061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1207 includes a touch panel 12071 and at least one of other input devices 12072. The touch panel 12071 is also called a touch screen. The touch panel 12071 may include two parts: a touch detection device and a touch controller. Other input devices 12072 may include, but are not limited to, a physical keyboard, function keys (such as a volume control key, a switch key, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0100] The memory 1209 can be used to store software programs and various data. The memory 1209 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 1209 may include a volatile memory or a non-volatile memory, or the memory 1209 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 1209 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0101] The processor 1210 may include one or more processing units; optionally, the processor 1210 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1210.
[0102] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned file processing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0103] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0104] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned file processing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0105] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0106] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned file processing method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0107] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises one..." does not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be noted that the scope of the method and device in the embodiment of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0108] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0109] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A file processing method, applied to an electronic device, wherein the electronic device comprises at least a first display screen and a second display screen, characterized in that: The method comprises: In response to a first operation on a first file in a first file directory of the electronic device, determining a file processing type of the first file; the first file directory includes a plurality of files; The first file directory is displayed on the first display screen; and the to-be-processed objects corresponding to the first file and matching the file processing type are displayed on the second display screen.
2. The method according to claim 1, characterized in that: The file processing type is a file browsing type; The displaying, on the second display screen, the to-be-processed object corresponding to the first file and matching the file processing type comprises: The file content of the first file is displayed on the second display screen.
3. The method according to claim 1, characterized in that The file processing type is a file editing type; The displaying, on the second display screen, the to-be-processed object corresponding to the first file and matching the file processing type comprises: The content to be edited of the first file is displayed on the second display screen.
4. The method according to claim 1, characterized in that The file processing type is a file editing type; the second display screen includes a first sub-display screen and a second sub-display screen; The displaying, on the second display screen, the to-be-processed object corresponding to the first file and matching the file processing type comprises: Displaying the to-be-edited content of the first file on the first sub-display screen; An editing tool matching the content to be edited is displayed on the second sub-display screen.
5. The method according to claim 1, characterized in that The file processing type is a file movement type; The displaying, on the second display screen, the to-be-processed object corresponding to the first file and matching the file processing type comprises: Displaying the root directory on the second display screen; The method further comprises: In response to a move operation on the first file and a selection operation on a second file directory in the root directory, the first file is moved to the second file directory.
6. A file processing device, applied to an electronic device, the electronic device comprising at least a first display screen and a second display screen, characterized in that: The device comprises: A determination module, used to determine the file processing type of a first file in a first file directory of the electronic device in response to a first operation on the first file in the first file directory of the electronic device; the first file directory includes multiple files; a first display module, used to display the first file directory on the first display screen; and display an object to be processed corresponding to the first file and matching the file processing type on the second display screen.
7. The device according to claim 6, characterized in that The file processing type is a file browsing type; The first display module is further used to display the file content of the first file on the second display screen.
8. The device according to claim 6, characterized in that The file processing type is a file editing type; The first display module is further used to display the to-be-edited content of the first file on the second display screen.
9. The device according to claim 6, characterized in that The file processing type is a file editing type; the second display screen includes a first sub-display screen and a second sub-display screen; The first display module is further used for: Displaying the to-be-edited content of the first file on the first sub-display screen; An editing tool matching the content to be edited is displayed on the second sub-display screen.
10. The device according to claim 6, characterized in that The file processing type is a file movement type; The first display module is further used to display the root directory on the second display screen; The device also includes: The moving module is used to move the first file to the second file directory in response to a move operation on the first file and a selection operation on the second file directory in the root directory.