WO2023072083A1 - 文件处理的方法和电子设备 - Google Patents

文件处理的方法和电子设备 Download PDF

Info

Publication number
WO2023072083A1
WO2023072083A1 PCT/CN2022/127408 CN2022127408W WO2023072083A1 WO 2023072083 A1 WO2023072083 A1 WO 2023072083A1 CN 2022127408 W CN2022127408 W CN 2022127408W WO 2023072083 A1 WO2023072083 A1 WO 2023072083A1
Authority
WO
WIPO (PCT)
Prior art keywords
file
target
user
input
splitting
Prior art date
Application number
PCT/CN2022/127408
Other languages
English (en)
French (fr)
Inventor
唐应忠
Original Assignee
维沃移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2023072083A1 publication Critical patent/WO2023072083A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory

Definitions

  • the present application belongs to the technical field of mobile terminals, and in particular relates to a file processing method and electronic equipment.
  • the current splitting process for the target file requires the user to manually load the target file into other specific application programs for file processing, and then split the file in the application program. It can be seen from this that if the user needs When splitting the target files under a certain file list, other applications need to be invoked, which has the problems of complicated operation of the file splitting process and poor user experience. In addition, additional applications need to be installed, which will inevitably occupy Memory resources of electronic devices.
  • the purpose of the embodiment of the present application is to provide a file processing method and an electronic device, which can solve the complicated operation process and poor user experience of the file splitting process.
  • additional application programs need to be installed, which will inevitably occupy the memory of the electronic device. resource problem.
  • the embodiment of the present application provides a method for file processing, the method includes:
  • At least one target subfile is generated based on the target file.
  • the embodiment of the present application provides a file processing device, which includes:
  • a first receiving module configured to receive a user's first input for a file list, wherein the file list includes a plurality of candidate files;
  • a split control display module configured to, in response to the first input, determine a target file to be split among the plurality of candidate files, and display a file split control corresponding to the target file;
  • a second receiving module configured to receive a second input from the user for the file splitting control
  • a file generating module configured to generate at least one target sub-file based on the target file in response to the second input.
  • an embodiment of the present application provides an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored in the memory and operable on the processor, and the program or instruction is The processor implements the steps of the file processing method described in the first aspect when executed.
  • 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 file processing described in the first aspect is implemented. method steps.
  • the embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions, so as to implement the first aspect The described file handling method.
  • a user's first input for a file list is received, wherein the file list includes multiple candidate files; in response to the first input, among the multiple candidate files Determine the target file to be split in the process, and display the file split control corresponding to the target file; receive the second input from the user for the file split control; and generate at least one target sub-file based on the target file in response to the second input .
  • the candidate file targeted by the first input is determined as the target file, and the target application under the file list corresponds to A certain user interface directly displays the file splitting control corresponding to the target file, so that the user can use the file splitting control to trigger the splitting process of the target file and generate at least one required target sub-file, which can be used for management,
  • the file splitting process is directly completed under the target application that downloads or generates the target file, without moving the target file to a specific other file splitting application, which can improve the efficiency of file splitting, improve user experience, and do not need to install additional Other application programs can also reduce the occupation of memory resources of the electronic device due to the installation of too many application programs that are not frequently used.
  • Fig. 1a is a first schematic flow chart of the file processing method provided by the embodiment of the present application.
  • Fig. 1b is a second schematic flowchart of the file processing method provided by the embodiment of the present application.
  • FIG. 2 is a schematic diagram of the first display interface of the file processing method provided by the embodiment of the present application.
  • FIG. 3 is a schematic diagram of a second display interface of the file processing method provided by the embodiment of the present application.
  • FIG. 4 is a schematic diagram of a third display interface of the file processing method provided by the embodiment of the present application.
  • FIG. 5 is a schematic diagram of a fourth display interface of the file processing method provided by the embodiment of the present application.
  • FIG. 6 is a schematic diagram of a fifth display interface of the file processing method provided by the embodiment of the present application.
  • FIG. 7 is a schematic diagram of a sixth display interface of the file processing method provided by the embodiment of the present application.
  • FIG. 8 is a schematic diagram of the module composition of the file processing device provided by the embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
  • FIG. 10 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
  • Fig. 1a is a schematic flow chart of the file processing method provided by the embodiment of the present application. As shown in Fig. 1a, the file processing method mainly includes:
  • S102 Receive a user's first input for a file list, where the file list includes multiple candidate files;
  • the above-mentioned candidate files may be at least one of text files, video files, audio files, and picture files
  • the above-mentioned file list may include multiple candidate files managed or downloaded under the target application
  • the target application may be file management
  • the file list includes multiple alternative files managed under the file manager.
  • the target application can also be a certain video application or browser application.
  • the file list is included under the video application or browser application.
  • a plurality of alternative files downloaded; the target application may also be a camera application, and correspondingly, the file list includes a plurality of alternative files (such as video files, audio files, or picture files) captured by the camera application.
  • the above-mentioned first input may include: any one of the user's click input on a certain file in the file list, the user's click input on a specified control on the file list, a voice command input by the user, or a specific gesture input by the user, specifically can be determined according to actual usage requirements, which is not limited in this embodiment of the present application.
  • the specific gesture in the embodiment of the present application may be any one of a click gesture, a slide gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double press gesture, and a double click gesture;
  • the click input in the embodiment of the present application may be a single click input, a double click input, or any number of click inputs, etc., and may also be a long press input or a short press input.
  • S104 in response to the above-mentioned first input, determine a target file to be split among multiple candidate files, and display a file split control corresponding to the target file;
  • the candidate file targeted by the first input as the target file for example, after receiving the user's click input on a certain candidate file in the file list , determine the candidate file as the target file, and for another example, after receiving the user’s long-press input for a certain candidate file in the file list, determine the candidate file as the target file;
  • the type of the target file can be Including: any type of text file type, audio file type, video file type, and executable file type, which can be specifically set according to actual needs, which is not limited in the embodiment of the present application.
  • the above-mentioned file splitting control can be a sliding progress bar containing at least one slider, and can also be an information input box for inputting split instruction information representing a split start point and an end point; during specific implementation, the above-mentioned sliding
  • the progress bar can be set independently, or by means of an existing file progress bar, for example, the playback progress bar of a video file or audio file. In the state of file playback, the playback progress bar is used to indicate the playback position of the video , in the state of file splitting, the position of the slider on the playback progress bar is used to indicate the start point and end point of file splitting.
  • the corresponding file splitting is displayed at the specified position of the target file in the user interface where the file list is located control; since the user interface 1 where the file list is located can also automatically jump to the next user interface 2 (that is, the split interface, the user interface 2 and the user interface 1 are different user interfaces under the above-mentioned target application), in this split File splitting is performed under the interface, and correspondingly, the target file and the corresponding file splitting control are displayed under the split interface.
  • the above-mentioned second input may include: user's click input on the file splitting control corresponding to the target file, user's sliding input on the slider on the file splitting control, user's information input on the file splitting control, user input Any one of the voice command and the specific gesture input by the user can be determined according to actual usage requirements, which is not limited in this embodiment of the present application.
  • the above-mentioned target sub-file may be a file segment obtained by splitting the target file triggered by the user based on the corresponding file splitting control.
  • video application, camera application, or browser application to split the target file in the file list to obtain the file fragments you want to transfer.
  • the file segment between the split start point and the split end point indicated by the second input is determined as the target subfile. For example, after receiving the user's sliding input on the slider on the file split control, determine the file segment between the split start point and the split end point positioned by the slider as the target sub-file, and for example, in After receiving information input by the user in the information input box on the file split control, the file segment between the split start point and the split end point indicated by the information input by the user is determined as the target sub-file.
  • the user can enter the excerpted chapter identification information in the information input box on the above file split control according to their own needs , to trigger splitting of the target file into at least one file segment among a text segment containing the cover content, a text segment containing the content of the table of contents, and a text segment containing the content of the subsequent chapter based on the excerpted chapter identification information;
  • the type of the target file is an audio file type, and the target file to be split is a certain song.
  • the slider on the file split control can use the slider on the file split control to locate the split start point and split end point according to their own needs to trigger Split the target file into at least one file segment in the audio segment containing the intro, the audio segment containing the interlude, and the audio segment containing the ending based on the start stop position and the end stop position of the slider; for another example, if The type of the target file to be split is a video file format type, and the target file to be split is a certain episode of TV series.
  • the user can input the object information to be split in the information input box on the above-mentioned file split control according to his own needs. To trigger splitting of the target file into at least one file segment of a video segment containing a certain plot and a video segment containing a certain character based on the information of the object to be split.
  • the candidate file for the first input is determined as the target file, and the file is displayed in the file list
  • a certain user interface under the corresponding target application directly displays the file splitting control corresponding to the target file, so that the user can use the file splitting control to trigger splitting of the target file and generate at least one required target sub-file.
  • the file splitting process can be directly completed under the target application used to manage, download or generate the target file, without moving the target file to a specific other file splitting application, which can improve the efficiency of file splitting and user experience , and there is no need to install additional other application programs, and it is also possible to reduce the occupation of memory resources of the electronic device due to the installation of too many infrequently used application programs.
  • the user may still have the need to transfer the target sub-file, based on this, as shown in Figure 1b, in the above S108, in response to the above
  • the second input, based on the above target file, after generating at least one target subfile also includes:
  • the above-mentioned third input may include: any one of the user's click input on the target sub-file, the user's drag input on the target sub-file, the user's click input on the specified control, the voice command input by the user, or the specific gesture input by the user. Items can be specifically determined according to actual usage requirements, which is not limited in this embodiment of the present application.
  • the target subfile after receiving the user's third input on the target subfile, determine the target subfile targeted by the third input as the target subfile selected by the user, and transmit the target subfile to the target recipient, For example, after receiving that the user moves a certain target sub-file to the position of the trigger control used to represent the sending file segment on the current user interface, the target sub-file is transmitted to the target recipient; Simultaneously click on a certain target sub-file and the input of the trigger control used to represent the sending file fragment, and transmit the target sub-file to the target receiver, so as to realize not only direct completion under the target application for managing, downloading or generating the target file
  • the file splitting process can further complete the transmission of sub-files under the target application.
  • the above-mentioned target receiver may include: a cloud server, a friend under a specified application, or another electronic device wirelessly connected to the current electronic device, wherein the cloud server may be a server corresponding to a certain network disk application, or It may be a cloud server corresponding to the built-in cloud storage space of the electronic device, the friend under the specified application may be a friend under a certain instant messaging application, and the other electronic device wirelessly connected to the current electronic device may be the same as the current An electronic device establishes a wireless communication connection with another electronic device in a certain wireless communication mode, which can be specifically set according to actual needs, which is not limited in this embodiment of the present application.
  • the cloud server may be a server corresponding to a certain network disk application, or It may be a cloud server corresponding to the built-in cloud storage space of the electronic device
  • the friend under the specified application may be a friend under a certain instant messaging application
  • the other electronic device wirelessly connected to the current electronic device may be the same as the current
  • An electronic device
  • the process of determining the target recipient may be the default target recipient, that is, after receiving the user's transmission trigger input for a certain target subfile, the target subfile is transmitted to the default target recipient ;
  • the list of alternative recipients is automatically displayed, so that the user can select a target recipient from the list of alternative recipients, and then transfer the target sub-file to the target receiver.
  • the file manager can call a certain network disk application to transmit the target sub-file selected by the user to the server corresponding to the network disk application
  • the file manager can also call the cloud server corresponding to the built-in cloud storage space of the electronic device, and transmit the target sub-file selected by the user to it; for the case where the target receiver is a friend under the specified application, the file manager can call a certain
  • the instant messaging application transmits the target sub-file selected by the user to the friend selected by the user under the file manager; for the case where the target recipient is another electronic device wirelessly connected to the current electronic device, the electronic device of the target recipient first communicates with the The current electronic device establishes a wireless communication connection with a certain wireless communication method, and the file manager of the current electronic device transmits the target sub-file selected by the user to the electronic device of the target recipient through the wireless communication module corresponding to the above wireless communication method.
  • the user is provided with a file splitting control and a file transfer control under the target application for managing, downloading, or generating the target file, that is, based on the user's second input of the file splitting control corresponding to the target file, the The target file is split to generate at least one target sub-file, and based on the third input of the user for the target sub-file, the target sub-file is transmitted to the target recipient by triggering the file transfer control, so that the slicing and transmission of the target file
  • the work is directly completed under the target application used to manage, download or generate the target file, which improves the efficiency of file slicing-transfer.
  • the function of file slicing and sending is integrated into the target application for managing, downloading or generating the target file.
  • the target file is split into at least one target sub-file, and then the target sub-file is transmitted to the target recipient based on the user's input on the target sub-file, so that the user can not only It can split the file to get the file data segment you want to transfer, and at the same time, it can also transfer the file data segment, that is, by integrating the slice-send function at the same time in the target application for managing, downloading or generating the target file
  • the clipping and transmission of files are more accurate, fast and simple, thereby improving the experience of users in file transmission.
  • the file list under the file manager includes all files in the electronic device, therefore, a file splitting function can be provided under the file manager, Furthermore, the sub-file transfer function can also be provided under the file manager. Based on this, the above S102, receiving the user's first input for the file list, specifically includes:
  • the above-mentioned file manager can be a file management program built in the electronic device, and the file management program is used to manage all types of files in the electronic device, and the user can view the required files under the file management program; specifically After the user triggers to open the user interface corresponding to the file manager in the electronic device, a file list is displayed on the user interface, and the user can select a candidate file under the file list as the target file.
  • the above S106 receiving the second input from the user for the file splitting control corresponding to the target file, specifically includes:
  • a second input from the user for the file splitting control displayed on the user interface under the file manager is received.
  • the above-mentioned file splitting control can be displayed at the specified location of the target file under the user interface where the file list of the file manager is located; it can also be displayed under a split interface different from the user interface where the file list of the file manager is located, for example , after determining that the user has a split requirement for a certain target file, the user interface 1 where the file list is located automatically jumps to the next user interface 2 (that is, the split interface, the user interface 2 and the user interface 1 are the above-mentioned file Different user interfaces under the manager), display the target file and the corresponding file splitting control under the splitting interface; and then receive the second input from the user for the file splitting control.
  • a file manager that can manage all storage resources of the electronic device is used.
  • the file manager can be a file management program that comes with the electronic device, and stores all types of files in the electronic device. document.
  • the target files displayed in the file list under the file manager have multiple preset display methods, and the user can choose the corresponding display method according to actual needs; for example, if the user needs to find a file on a certain date, the file The target files displayed in the list can be displayed in positive order according to the storage time of the files; for another example, if the user needs to find a certain type of file, the target files displayed in the file list can be classified according to the type of the file, and can be classified according to the file type The storage time is displayed in positive order.
  • the above S104 displays the file splitting control corresponding to the target file, specifically include:
  • the target file is a text file
  • the first control with the file size as the split unit is determined as the file split control, and the file split control corresponding to the target file is displayed;
  • the file size progress bar can be used as the file splitting control corresponding to the target file, so that the user can specifically edit files with preset files The size of the document fragment.
  • the second control with time as the split unit is determined as the file splitting control, and the file splitting control corresponding to the target file is displayed.
  • the time progress bar can be used as the file splitting control corresponding to the target file , so that users can edit multimedia clips within a certain period of time in a targeted manner.
  • the third control divided into split units by area is determined as the file split control, and the file split control corresponding to the target file is displayed; for example, the third control can be a draggable area select box.
  • the draggable area selection box can be used as the target The file splitting control corresponding to the file, so that the user can edit the corresponding image content in a certain area of the image in a targeted manner.
  • the file splitting control of the target file is provided on the user interface of the target application for managing, downloading or generating the target file, so that the user can trigger the splitting process for the target file through the file splitting control, wherein,
  • multiple different splitting methods can be set for the target file in the target application used to manage, download or generate the target file;
  • the above-mentioned file splitting control may be a sliding progress bar.
  • the second input is the user's sliding operation on at least one slider on the sliding progress bar.
  • the above-mentioned file split control can also be an information input box.
  • the second input is that the user can input the split size, split time interval, split start and end time, split chapter identifier, At least one piece of splitting information in the splitting object.
  • the target application is still taken as a file manager as an example.
  • An information input box for instructing to split the target file is displayed under the file manager.
  • the target file is split into multiple splits according to at least one splitting information of splitting size, splitting time interval, splitting start and end time, splitting chapter identifier, and splitting object. file fragments, and determine the plurality of file fragments as target sub-files.
  • the splitting process of the target file can be integrated into the file manager that manages all storage resources of the electronic device In order to enable the user to quickly find the target file to be split, and at the same time set a variety of split methods for the target file in the file manager to meet the user's individual needs.
  • the target files have different types, you can set different splitting methods for the target files in the file manager according to the types of the target files, so that the process of file splitting is faster, easier and freer.
  • the type of the target file is a text file
  • the split method of the target file is to split according to the file size.
  • the file split The sub-control is a control that takes the file size as the split unit; in the actual implementation, the file list is displayed on the user interface of the file manager, and the click operation of the user on the text file in the file list is received, and displayed under the file manager.
  • a sliding progress bar with the file size as the split unit wherein the length of the sliding progress bar is the size of the text file, and based on the user's sliding operation on the sliding progress bar, the first slide on the sliding progress bar
  • the first position where the block is located is marked as the start split position
  • the second position where the second slider on the sliding progress bar is located is marked as the end split position
  • the distance between the start split position and the end split position is The file fragment is determined as the target subfile of the text file; or after receiving the user's click operation on the text file, an information input box is displayed under the file manager, based on the split size information entered by the user in the information input box , split the text file into multiple file fragments, and determine the multiple file fragments as target sub-files.
  • the splitting method of the target file is to split according to time, and correspondingly, the file splitting control is a control with time as the splitting unit;
  • a sliding progress bar with time as the split unit is displayed under the file manager, wherein the length of the sliding progress bar is the duration of the audio file, based on the user's progress on the sliding progress bar Sliding operation, mark the time corresponding to the first slider on the sliding progress bar as the start split time, mark the time corresponding to the second slider on the sliding progress bar as the end split time, and set
  • the file segment of the multimedia file corresponding to the duration between the start split time and the end split time is determined as the target sub-file; or after receiving the user's click operation on the multimedia file, an information input box is displayed under the file manager, Split the multimedia file into a plurality of file segments based on split time intervals, split start and end moments, and other split time information input by the user in the information input box, and determine the
  • the file splitting control is a sliding progress bar displayed below the target file
  • the corresponding file content can be displayed in the form of a preview window; specifically, the file content can be displayed in the form of a preview window during the file splitting process, so that the user can
  • the content of the displayed file can quickly locate the file segment to be split; it can also display the content of the sub-file in the form of a preview window after the file is split, so that the user can quickly identify the file based on the content of the file displayed in the preview window.
  • the target subfile is a subfile that needs to be transferred currently.
  • the text content corresponding to the target sub-file can be displayed in the preview window, specifically, the page can be automatically turned in the preview window or the user manually clicks to turn the page;
  • the target file is a multimedia file
  • the multimedia playback interface corresponding to the target sub-file can be displayed in the preview window, and the sound can be played.
  • the file can be split directly under the user interface where the file list of the target application (such as a file manager) is located. Displayed on the interface, the file can also be split under the splitting interface different from the user interface where the file list of the target application (such as the file manager) is located, and the file splitting control is displayed on the splitting interface at this time; Considering that the file is split under the user interface where the file list is located, the target file is displayed in the form of an information list, and the specific file content of the target file cannot be displayed. Therefore, you can preview the file during the file splitting process.
  • the content of the file is displayed in the form of a window, so that the user can quickly locate the file fragment to be split based on the content of the file displayed in the preview window;
  • the specific file content of the target file can be displayed in a certain area of the splitting interface, and multiple target sub-files obtained by splitting can be displayed in the form of an information list in another area of the splitting interface. Therefore, you can By displaying the file content of the target sub-file selected by the user in the form of a preview window after the file split is completed, the user can quickly identify whether the target sub-file is a sub-file currently to be transferred based on the file content displayed in the preview window.
  • the first splitting method is aimed at splitting files in the user interface where the file list is located. Since the target file is displayed in the form of an information list, the specific file content of the target file cannot be displayed. Therefore, The file content can be displayed in the form of a preview window during the file splitting process, so that the user can quickly locate the file segment to be split based on the file content displayed in the preview window. Based on this, the above step S104 displays the target file
  • the corresponding file splitting controls include:
  • a file splitting control corresponding to the target file is displayed, wherein the file splitting control includes: a sliding progress bar corresponding to the file type of the target file;
  • the sliding progress bar with the file size as the split unit is determined as the file split control
  • the sliding progress bar with the playback time as the split unit The progress bar is determined as a file splitting control; during specific implementation, a sliding progress bar corresponding to the target file may be displayed below a piece of information used to characterize the target file.
  • the above S106 receiving the second input from the user for the file splitting control corresponding to the target file, specifically includes:
  • the user can move the slider to a first position and a second position based on the file content displayed in the preview window, wherein the first position can represent the starting position of file splitting, and the second position can represent the file The split end position, the file segment between the first position and the second position is a target sub-file.
  • step S108 after generating at least one target sub-file based on the above-mentioned target file, further includes:
  • the file content corresponding to the split target sub-file is displayed in the above preview window.
  • the specific file content of the target sub-file can continue to be played in the preview window, so that the user can confirm the target sub-file again Is it the file fragment that the user actually wants to split.
  • the user can be directly provided with related controls for file splitting in the user interface of the file manager. Specifically, it can be selected by the user.
  • the area below the target file showing the file splitting controls used to indicate the splitting of the target file.
  • the preview window of the target file can be displayed to the user directly near the file split control.
  • the preview window may be displayed in the form of a floating window, or a preview interface may be displayed in a preset area of the user interface of the file manager.
  • a file list is displayed, which includes: text files, audio files, and video file
  • a sliding progress bar with time as the split unit to indicate the splitting of the audio file is displayed, and based on the user's
  • the preview window below the sliding progress bar displays the file content corresponding to the current stop position corresponding to the slider in the sliding progress bar.
  • the file splitting control is an information input box
  • a file list is displayed, and after receiving the user's click operation on the audio file in the file list, the The preset position of the file, displaying the information input box, and splitting based on at least one of the split size, split time interval, split start and end time, split chapter identifier, and split object entered by the user in the information input box Information, split the target file into multiple target sub-files, and display the file content corresponding to the target sub-file in the preview window, wherein, the preview window can be divided into multiple sub-windows, and each sub-window displays the content corresponding to a target sub-file document content.
  • the second splitting method is aimed at splitting files in a splitting interface different from the user interface where the file list is located, since the specific file content of the target file can be displayed in a certain area of the splitting interface , and in another area of the splitting interface, the multiple target sub-files obtained by splitting are displayed in the form of an information list. Therefore, the files of the target sub-files selected by the user can be displayed in the form of a preview window after the file splitting is completed. Content, so that the user can quickly identify whether the target sub-file is a sub-file that needs to be transferred based on the file content displayed in the preview window. Based on this, the above step S104 displays the file splitting control corresponding to the target file, specifically including:
  • the above-mentioned fourth input may include: the user's click input on the target file, the user's input of moving the target file to the file splitting control, the user's click input on the specified control on the file list, the voice command input by the user, the user input Any one of the specific gestures can be specifically determined according to actual usage requirements, which is not limited in this embodiment of the present application.
  • a split interface different from the user interface where the file list is located is displayed; for another example, when the user double-fingers click on the target file and file split at the same time After the control, a split interface is displayed that is different from the UI where the file list is located.
  • the target file and the file splitting control corresponding to the target file are displayed;
  • the file content of the target file can be displayed in the first preset area, which is convenient for the user to quickly locate the file segment that actually needs to be split; wherein, the above-mentioned file split control can be a sliding progress corresponding to the file type of the target file strip;
  • the sliding progress bar with the file size as the split unit is determined as the file split control
  • the sliding progress bar with the playback time as the split unit The progress bar is determined as a file splitting control; during specific implementation, a sliding progress bar corresponding to the target file may be displayed below a piece of information used to characterize the target file.
  • step S108 after generating at least one target subfile based on the above target file, further include:
  • Step 1 displaying at least one target sub-file obtained by splitting in the second preset area of the splitting interface
  • the split target sub-files may be displayed item by item in the second preset area in the form of an information list.
  • Step 2 receiving a fifth input from the user for any target sub-file; wherein, the fifth input is different from the third input, and the fifth input is used to trigger the display of specific information for displaying the target sub-file selected by the user.
  • Preview window for file content
  • the above-mentioned fifth input may include: any one of the user's click input on the target sub-file, the user's click input on the specified control on the split interface, the voice command input by the user, and the specific gesture input by the user. It is determined according to actual usage requirements, which is not limited in this embodiment of the present application.
  • Step 3 in response to the above-mentioned fifth input, displaying a preview window of the target sub-file targeted by the fifth input.
  • a corresponding preview window is displayed and the file content of the target sub-file selected by the user is displayed in the preview window.
  • the specific file content of the target sub-file will be displayed in the preview window; Specific file content, so that the user can quickly identify whether the target sub-file is the current sub-file to be transferred based on the file content displayed in the preview window.
  • the file splitting interface can be automatically expanded after the user selects the target file, so as to display richer file-related information to the user, so that the user can select more accurately
  • the file fragments that really want to be transferred can be displayed in the split interface, and at the same time, in order to facilitate users to more accurately select the The file fragments to be transferred can also display the preview window of the target sub-file in the splitting interface.
  • the target file as an audio file
  • the duration of the audio file is 3 minutes and 58 seconds as an example for illustration
  • the above-mentioned file splitting control is a sliding progress bar with time as the split unit, and the length of the sliding progress bar is 3 minutes and 58 seconds, receiving the user's second input on the sliding progress bar, and The audio segment in the audio file targeted by the second input is determined as the target sub-file; wherein, the user can freely split the sliding progress bar in the split interface to split the audio file into multiple audio segment, each audio segment can correspond to a different time period, that is, the audio file is split into multiple target sub-files, as shown in Figure 3, the audio file is split into three audio sub-file
  • the target application for managing, downloading or generating the target file provides the user with two interactive ways of splitting the file, one is to split the target file directly on the user interface of the target application Splitting and previewing are easy to operate and easy for users to use.
  • the other is to automatically expand the file splitting interface after selecting the target file in the user interface of the target application, so as to display richer file-related information to the user and facilitate the user to more accurately Select the file fragments that you really want to transfer, and the user can choose the above two interaction methods based on their own needs, so as to meet the user's individual needs.
  • the user may have the requirement to send the target sub-file to a certain receiver, that is, the user needs to transmit the target sub-file to the target receiver, in order to make the file transfer
  • the process is faster, more convenient, and simpler, and the file transfer function can also be integrated into the target application for managing, downloading, or generating target files.
  • the target receiver in the target application Quickly select the target receiver in the target application, and then complete the file transfer. Based on this, before the above step S112, before transmitting the target sub-file selected by the user to the target receiver, it also includes:
  • the above list of candidate recipients is determined based on at least one of the user's application usage records, chat records, and wireless signal connection records within a preset time period; Historical behavior data within a time period, automatically identify the file recipient that the user wants to transfer files to, and use the identified file recipient as an alternative recipient, and display it in a list at the preset position on the user interface of the target application
  • the alternative receiver can be a network disk that the user has frequently used recently, certain friends that the user has frequently contacted in a certain instant messaging application recently, or an electronic device that has established a wireless communication connection, and the information is listed in the list.
  • the form displays the above-mentioned alternative recipients at a preset position on the user interface of the target application.
  • the target sub-file selected by the user is transmitted to the target recipient, which specifically includes:
  • the target sub-file selected by the user is transmitted to the target receiver corresponding to the sixth input.
  • the above-mentioned sixth input may include: any one of the user's click input on any candidate receiver in the candidate receiver list, the user's click input on a specified control, the voice command input by the user, or the specific gesture input by the user. Items can be specifically determined according to actual usage requirements, which is not limited in this embodiment of the present application.
  • the user can select the target recipient in the list of alternative recipients, and trigger the transfer of the desired file to the target recipient.
  • the sixth input of any of the alternative recipients and then receive the third input of the user for the target sub-file, and determine the target sub-file as the target sub-file selected by the user, and then send the The target recipient transmits the target sub-file selected by the user; wherein, the third input and the sixth input may be the same input, for example, the user drags the target sub-file to the location of a certain recipient in the list of alternative recipients;
  • the third input and the sixth input can also be different inputs. For example, the user first clicks on a recipient in the candidate recipient list to select the target recipient, and then drags the target sub-file to the The location of the control that sends the data fragment.
  • the target recipient selected by the user may be determined based on the sixth input above, and then the target sub-file targeted by the third input may be dragged to the position of the control for instructing to send the data segment.
  • the first The third input and the sixth input are different inputs, and the target sub-file selected by the user can be transmitted to the target recipient pre-selected by the user or the default target recipient.
  • the process of file transmission can be carried out directly in the file manager user interface , as shown in Figure 4, in the user interface where the file list is located under the file manager, drag the audio sub-file corresponding to the sliding progress bar to the position of the control used to indicate the sending of the data segment; the process of file transfer can also be It is carried out in the splitting interface, as shown in FIG. 5 , in the splitting interface, drag the audio subfile 1 in the audio subfile list to the position of the control used to indicate the sending data segment.
  • the target sub-file can also be directly dragged to the location of a certain candidate receiver in the list of candidate receivers.
  • the third input and the sixth input are the same input.
  • the third input and the sixth input are the same input. 3.
  • Input an alternative receiver corresponding to the position in the receiver list to determine as the target receiver, and transmit the target sub-file selected by the user to the target receiver.
  • the file transfer process can be directly in In the file manager user interface, as shown in Figure 6, in the file manager user interface, drag the audio file corresponding to the sliding progress bar to the position of friend 1 under the communication application in the candidate receiver list, and Determine the friend 1 as the target recipient, transmit the audio sub-file selected by the user to the friend 1, and jump to the communication chat interface with the friend 1, specifically, after determining that the audio sub-file needs to be transmitted to After friend 1, call the associated application where friend 1 is located, and perform file transfer through the associated application;
  • the process of file transfer can also be carried out in the split interface, as shown in Figure 7, in the split interface, the audio sub-file list
  • the audio sub-file 1 is dragged to the location of the friend 1 under the communication application in the candidate receiver list, and the friend 1 is determined as the target receiver, and the audio sub-file 1 selected by the user is transmitted to the friend 1, specifically , after it is determined that the audio sub-file 1 needs to be transferred to the friend 1, the associated application where the friend 1 is located is called, and the file
  • a user's first input for a file list is received, wherein the file list includes a plurality of candidate files; in response to the first input, it is determined among the plurality of candidate files splitting the processed target file, and displaying the file splitting control corresponding to the target file; receiving a second input from the user for the file splitting control; in response to the second input, generating at least one target sub-file based on the target file.
  • the candidate file targeted by the first input is determined as the target file, and the target application under the file list corresponds to A certain user interface directly displays the file splitting control corresponding to the target file, so that the user can use the file splitting control to trigger the splitting process of the target file and generate at least one required target sub-file, which can be used for management,
  • the file splitting process is directly completed under the target application that downloads or generates the target file, without moving the target file to a specific other file splitting application, which can improve the efficiency of file splitting, improve user experience, and do not need to install additional Other application programs can also reduce the occupation of memory resources of the electronic device due to the installation of too many application programs that are not frequently used.
  • the file processing method provided in the embodiment of the present application may be executed by a file processing device, or a control module in the file processing device for executing the file processing method.
  • the file processing device provided by the embodiment of the present application is described by taking the file processing device executing the file processing method as an example.
  • the file processing device provided in the embodiment of the present application includes:
  • the first receiving module 802 is configured to receive a user's first input for a file list, wherein the file list includes a plurality of candidate files;
  • a split control display module 804 configured to, in response to the first input, determine a target file to be split among the plurality of candidate files, and display a file split control corresponding to the target file;
  • the second receiving module 806 is configured to receive a second input from the user for the file splitting control
  • a file generating module 808, configured to generate at least one target sub-file based on the target file in response to the second input.
  • the candidate file for the first input is determined as the target file, and the A certain user interface under the target application corresponding to the file list directly displays the file splitting control corresponding to the target file, so that the user can use the file splitting control to trigger splitting of the target file and generate at least one required target sub-file , so that the file splitting process can be directly completed under the target application used to manage, download or generate the target file, without moving the target file to another specific file splitting application, which can improve the efficiency of file splitting and improve user
  • the user experience, without installing additional other applications can also reduce the occupation of memory resources of the electronic device due to the installation of too many applications that are not frequently used.
  • the device also includes:
  • a third receiving module configured to receive a third input from the user for the target sub-file after generating at least one target sub-file based on the target file;
  • a file transmission module configured to transmit the target sub-file selected by the user to the target recipient in response to the third input.
  • the first receiving module 802 is specifically configured to:
  • the second receiving module 806 is specifically used for:
  • the split control display module 804 is specifically used for:
  • the first control with the file size as the split unit is determined to be the file split control, and the file split control corresponding to the target file is displayed;
  • the target file is a multimedia file
  • the split control display module 804 is also specifically used for:
  • a file splitting control corresponding to the target file is displayed at a designated position of the target file under the file list, wherein the file splitting control includes: a sliding progress bar corresponding to the file type of the target file;
  • the second receiving module 806 is also specifically configured to:
  • the device further includes: a first file content display module, configured to:
  • the file content corresponding to the target sub-file is displayed in the preview window.
  • the split control display module 804 is also specifically used for:
  • the device also includes: a second file content display module, used for:
  • a user's first input for a file list is received, wherein the file list includes a plurality of candidate files; in response to the first input, it is determined among the plurality of candidate files splitting the processed target file, and displaying the file splitting control corresponding to the target file; receiving a second input from the user for the file splitting control; in response to the second input, generating at least one target sub-file based on the target file.
  • the candidate file targeted by the first input is determined as the target file, and the target application under the file list corresponds to A certain user interface directly displays the file splitting control corresponding to the target file, so that the user can use the file splitting control to trigger the splitting process of the target file and generate at least one required target sub-file, which can be used for management,
  • the file splitting process is directly completed under the target application that downloads or generates the target file, without moving the target file to a specific other file splitting application, which can improve the efficiency of file splitting, improve user experience, and do not need to install additional Other application programs can also reduce the occupation of memory resources of the electronic device due to the installation of too many application programs that are not frequently used.
  • the file processing device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal.
  • the device may be a mobile electronic device or a non-mobile electronic device.
  • the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle electronic device, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant).
  • non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
  • Network Attached Storage NAS
  • personal computer personal computer, PC
  • television television
  • teller machine or self-service machine etc.
  • the file processing device in the embodiment of the present application may be a device with an operating system.
  • the operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in this embodiment of the present application.
  • the file processing device provided by the embodiment of the present application can realize various processes realized by the method embodiments in FIG. 1a to FIG. 1b , and details are not repeated here to avoid repetition.
  • the embodiment of the present application further provides an electronic device 900, including a processor 901, a memory 902, and programs or instructions stored in the memory 902 and operable on the processor 901,
  • an electronic device 900 including a processor 901, a memory 902, and programs or instructions stored in the memory 902 and operable on the processor 901,
  • the program or instruction is executed by the processor 901
  • each process of the above-mentioned file processing method embodiment can be achieved, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
  • the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
  • FIG. 10 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
  • the electronic device 1000 includes, but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010, etc. part.
  • the electronic device 1000 can also include a power supply (such as a battery) for supplying power to various components, and the power supply can be logically connected to the processor 1010 through the power management system, so that the management of charging, discharging, and function can be realized through the power management system. Consumption management and other functions.
  • a power supply such as a battery
  • the structure of the electronic device shown in FIG. 10 does not constitute a limitation to the electronic device.
  • the electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange different components, and details will not be repeated here. .
  • the processor 1010 is configured to receive a user's first input for a file list, wherein the file list includes a plurality of candidate files;
  • At least one target subfile is generated based on the target file.
  • the candidate file for the first input is determined as the target file, and the file is displayed in the file list
  • a certain user interface under the corresponding target application directly displays the file splitting control corresponding to the target file, so that the user can use the file splitting control to trigger splitting of the target file and generate at least one required target sub-file.
  • the file splitting process can be directly completed under the target application used to manage, download or generate the target file, without moving the target file to a specific other file splitting application, which can improve the efficiency of file splitting and user experience , and there is no need to install additional other application programs, and it is also possible to reduce the occupation of memory resources of the electronic device due to the installation of too many infrequently used application programs.
  • the processor 1010 is further configured to, after generating at least one target subfile based on the target file, further include:
  • the user-selected target subfile is transmitted to the target recipient.
  • the processor 1010 configured to receive the user's first input on the file list, includes:
  • the receiving the user's second input for the file splitting control includes:
  • the processor 1010 configured to display the file splitting control corresponding to the target file, includes:
  • the target file is a text file
  • the first control with the file size as the split unit is determined as the file split control, and the file split control corresponding to the target file is displayed;
  • the target file is a multimedia file
  • the processor 1010 configured to display the file splitting control corresponding to the target file, includes:
  • a file splitting control corresponding to the target file is displayed at a designated position of the target file under the file list, wherein the file splitting control includes: a sliding progress bar corresponding to the file type of the target file;
  • the receiving the user's second input for the file splitting control includes:
  • the processor 1010 is further configured to, after generating at least one target sub-file based on the target file, further include:
  • the file content corresponding to the target sub-file is displayed in the preview window.
  • the processor 1010 configured to display the file splitting control corresponding to the target file, includes:
  • the electronic device receives a user's first input for a file list, wherein the file list includes a plurality of candidate files; in response to the first input, the file to be split is determined among the plurality of candidate files the target file, and display the file splitting control corresponding to the target file; receive a second input from the user for the file splitting control; and generate at least one target sub-file based on the target file in response to the second input.
  • the candidate file targeted by the first input is determined as the target file, and the target application under the file list corresponds to A certain user interface directly displays the file splitting control corresponding to the target file, so that the user can use the file splitting control to trigger the splitting process of the target file and generate at least one required target sub-file, which can be used for management,
  • the file splitting process is directly completed under the target application that downloads or generates the target file, without moving the target file to a specific other file splitting application, which can improve the efficiency of file splitting, improve user experience, and do not need to install additional Other application programs can also reduce the occupation of memory resources of the electronic device due to the installation of too many application programs that are not frequently used.
  • the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, and the graphics processor 10041 is used for the image capture device (such as the image data of the still picture or video obtained by the camera) for processing.
  • the display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the user input unit 1007 includes a touch panel 10071 and other input devices 10072 .
  • the touch panel 10071 is also called a touch screen.
  • the touch panel 10071 may include two parts, a touch detection device and a touch controller.
  • Other input devices 10072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, and joysticks, which will not be repeated here.
  • the memory 1009 can be used to store software programs as well as various data, including but not limited to application programs and operating systems.
  • Processor 1010 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, and application programs, and the modem processor mainly processes wireless communications. It can be understood that the foregoing modem processor may not be integrated into the processor 1010 .
  • the embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, each process of the above-mentioned file processing method embodiment is realized, and can achieve The same technical effects are not repeated here to avoid repetition.
  • the processor is the processor in the electronic device described in the above embodiments.
  • the readable storage medium includes computer readable storage medium, such as computer read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
  • the embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, the processor is used to run programs or instructions, and implement the above-mentioned file processing method embodiment each process, and can achieve the same technical effect, in order to avoid repetition, it will not be repeated here.
  • chips mentioned in the embodiments of the present application may also be called system-on-chip, system-on-chip, system-on-a-chip, or system-on-a-chip.
  • the term “comprising”, “comprising” or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase “comprising a " does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.
  • the scope of the methods and devices in the embodiments 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. Functions are performed, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请公开了一种文件处理的方法和电子设备,属于移动终端技术领域。该方法包括:接收用户针对文件列表的第一输入,其中,该文件列表包括多个备选文件;响应于第一输入,在多个备选文件中确定待拆分处理的目标文件,并显示目标文件对应的文件拆分控件;接收用户针对该文件拆分控件的第二输入;响应于第二输入,基于目标文件,生成至少一个目标子文件。

Description

文件处理的方法和电子设备
相关申请的交叉引用
本申请要求在2021年10月29日提交的中国专利申请第202111272564.7号的优先权,该中国专利申请的全部内容通过引用包含于此。
技术领域
本申请属于移动终端技术领域,具体涉及一种文件处理的方法和电子设备。
背景技术
随着电子设备的功能越来越丰富,逐渐成为人们日常生活中必不可少的一部分。例如,用户可以使用电子设备进行文件的传输,从而拿到自己想要的文件数据。其中,针对某一目标文件,用户可能仅需要对该目标文件中的个别文件片段进行传输,因此,用户具有对该目标文件进行拆分的需求。
然而,目前针对目标文件的拆分过程,需要用户手动将目标文件加载至特定的用于文件处理的其他应用程序,再在该应用程序中对文件进行拆分处理,由此可知,如果用户需要对某一文件列表下的目标文件进行拆分处理时,需要调用其他应用程序,存在文件拆分过程的操作过程复杂、用户使用体验差的问题,另外还需要额外安装其他应用程序,势必将占用电子设备的内存资源。
发明内容
本申请实施例的目的是提供一种文件处理的方法和电子设备,能够解决文件拆分过程的操作过程复杂、用户使用体验差,另外还需要额外安装其他应用程序,势必将占用电子设备的内存资源的问题。
第一方面,本申请实施例提供了一种文件处理的方法,该方法包括:
接收用户针对文件列表的第一输入,其中,所述文件列表包括多个备选文件;
响应于所述第一输入,在所述多个备选文件中确定待拆分处理的目标文件,并显示所述目标文件对应的文件拆分控件;
接收所述用户针对所述文件拆分控件的第二输入;
响应于所述第二输入,基于所述目标文件,生成至少一个目标子文件。
第二方面,本申请实施例提供了一种文件处理的装置,该装置包括:
第一接收模块,用于接收用户针对文件列表的第一输入,其中,所述文件列表包括多个备选文件;
拆分控件显示模块,用于响应于所述第一输入,在所述多个备选文件中确定待拆分处理的目标文件,并显示所述目标文件对应的文件拆分控件;
第二接收模块,用于接收所述用户针对所述文件拆分控件的第二输入;
文件生成模块,用于响应于所述第二输入,基于所述目标文件,生成至少一个目标子文件。
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的文件处理的方法的步骤。
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的文件处理的方法的步骤。
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的文件处理的方法。
在本申请实施例提供的文件处理的方法和电子设备中,接收用户针对文件列表的第一输入,其中,该文件列表包括多个备选文件;响应于第一输入, 在多个备选文件中确定待拆分处理的目标文件,并显示目标文件对应的文件拆分控件;接收用户针对该文件拆分控件的第二输入;响应于第二输入,基于目标文件,生成至少一个目标子文件。即在接收到用户针对文件列表的第一输入之后,如果确定用户具有文件拆分需求,则将该第一输入所针对的备选文件确定为目标文件,并在文件列表对应的目标应用下的某一用户界面直接显示该目标文件对应的文件拆分控件,以便用户利用该文件拆分控件触发对目标文件进行拆分处理,生成所需的至少一个目标子文件,这样可以在用于管理、下载或者生成目标文件的目标应用下直接完成文件的拆分处理,无需将目标文件移动至特定的其他文件拆分应用,既能够提高文件的拆分效率,提升用户使用体验,并且无需安装额外的其他应用程序,还能够减少由于安装过多的使用频率不高的应用程序对电子设备的内存资源的占用。
附图说明
图1a为本申请实施例提供的文件处理的方法的第一种流程示意图;
图1b为本申请实施例提供的文件处理的方法的第二种流程示意图;
图2为本申请实施例提供的文件处理的方法的第一种显示界面示意图;
图3为本申请实施例提供的文件处理的方法的第二种显示界面示意图;
图4为本申请实施例提供的文件处理的方法的第三种显示界面示意图;
图5为本申请实施例提供的文件处理的方法的第四种显示界面示意图;
图6为本申请实施例提供的文件处理的方法的第五种显示界面示意图;
图7为本申请实施例提供的文件处理的方法的第六种显示界面示意图;
图8为本申请实施例提供的文件处理的装置的模块组成示意图;
图9为本申请实施例提供的一种电子设备的结构示意图;
图10为实现本申请实施例的一种电子设备的硬件结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的文件处理的方法进行详细地说明。
图1a为本申请实施例提供的文件处理的方法的具体流程示意图,如图1a所示,该文件处理的方法主要包括:
S102,接收用户针对文件列表的第一输入,其中,该文件列表包括多个备选文件;
其中,上述备选文件可以是文本文件、视频文件、音频文件、图片文件中至少一项,上述文件列表可以包括在目标应用下管理或者下载的多个备选文件,该目标应用可以是文件管理器,对应的,文件列表包括在文件管理器下管理的多个备选文件,该目标应用也可以是某一视频应用或者浏览器应用,对应的,文件列表包括在视频应用或者浏览器应用下下载的多个备选文件;该目标应用还可以是相机应用,对应的,文件列表包括相机应用拍摄得到的多个备选文件(如视频文件、音频文件、或图片文件)。
其中,上述第一输入可以包括:用户对文件列表中某一文件的点击输入、用户对文件列表上的指定控件的点击输入、用户输入的语音指令、用户输入 的特定手势中任一项,具体的可以根据实际使用需求确定,本申请实施例对此不作限定。
需要说明的是,本申请实施例中的特定手势可以为单击手势、滑动手势、拖动手势、压力识别手势、长按手势、面积变化手势、双按手势、双击手势中的任意一种;本申请实施例中的点击输入可以为单击输入、双击输入或任意次数的点击输入等,还可以为长按输入或短按输入。
S104,响应于上述第一输入,在多个备选文件中确定待拆分处理的目标文件,并显示目标文件对应的文件拆分控件;
具体的,在接收到用户针对文件列表的第一输入后,将第一输入所针对的备选文件确定为目标文件,例如,在接收到用户针对文件列表中某一备选文件的点击输入后,将该备选文件确定为目标文件,又如,在接收到用户针对文件列表中某一备选文件的长按输入后,将该备选文件确定为目标文件;其中,目标文件的类型可以包括:文本文件类型、音频文件类型、视频文件类型、以及可执行文件类型中的任一种类型,具体的可以根据实际需求进行设定,本申请实施例对此不作限定。
其中,上述文件拆分控件可以是包含至少一个滑块的滑动进度条,也可以是用于输入表征拆分起始点和终止点的拆分指示信息的信息输入框;在具体实施时,上述滑动进度条可以是单独设置的,也可以是借助已有的文件进度条,例如,视频文件或者音频文件的播放进度条,在处于文件播放的状态下,该播放进度条用于指示视频的播放位置,在处于文件拆分的状态下,该播放进度条上的滑块的位置用于指示文件拆分的起始点和终止点。
具体的,针对文件拆分控件的显示过程,由于可以直接在文件列表所在的用户界面下进行文件拆分,对应的,在文件列表所在的用户界面下目标文件的指定位置显示相应的文件拆分控件;由于也可以由文件列表所在的用户界面1自动跳转至下一个用户界面2(即拆分界面,该用户界面2与用户界面1为上述目标应用下的不同用户界面),在该拆分界面下进行文件拆分,对 应的,在拆分界面下显示目标文件和相应的文件拆分控件。
S106,接收用户针对目标文件对应的文件拆分控件的第二输入;
其中,上述第二输入可以包括:用户对目标文件对应的文件拆分控件的点击输入、用户对文件拆分控件上的滑块的滑动输入、用户在文件拆分控件上的信息输入、用户输入的语音指令、用户输入的特定手势中任一项,具体的可以根据实际使用需求确定,本申请实施例对此不作限定。
S108,响应于上述第二输入,基于上述目标文件,生成至少一个目标子文件;
具体的,上述目标子文件可以是用户基于相应的文件拆分控件触发对目标文件进行拆分得到的文件片段,在具体实施时,用户可以根据自身的需求,在目标应用(如文件管理器、视频应用、相机应用、或者浏览器应用)下针对文件列表中的目标文件进行拆分,得到自己想要传输的文件片段。
具体的,在接收到用户针对目标文件对应的文件拆分控件的第二输入后,将第二输入所指示的拆分起始点和拆分终止点之间的文件片段确定为目标子文件,例如,在接收到用户针对文件拆分控件上滑块的滑动输入后,将通过该滑块所定位的拆分起始点和拆分终止点之间的文件片段确定为目标子文件,又如,在接收到用户在文件拆分控件上的信息输入框的信息输入后,将用户输入的信息所指示的拆分起始点和拆分终止点之间的文件片段确定为目标子文件。
例如,若待拆分的目标文件的类型为文本文件类型,待拆分的目标文件为某一本小说,用户可以根据自身需求在上述文件拆分控件上的信息输入框中输入节选章节标识信息,以触发基于该节选章节标识信息将目标文件拆分为包含封面内容的文本片段、包含目录内容的文本片段、以及包含后续章节内容的文本片段中至少一个文件片段;又如,若待拆分的目标文件的类型为音频文件类型,待拆分的目标文件为某一首歌曲,用户可以根据自身需求通过上述文件拆分控件上的滑块定位拆分起始点和拆分终止点,以触发基于该 滑块的起始停留位置和终止停留位置将该目标文件拆分为包含前奏的音频片段、包含间奏的音频片段、以及包含尾奏的音频片段中至少一个文件片段;再如,若待拆分的目标文件的类型为视频文件格式类型,待拆分的目标文件为某一集电视剧,用户可以根据自身需求在上述文件拆分控件上的信息输入框中输入待拆分对象信息,以触发基于该待拆分对象信息将该目标文件拆分为包含某一段剧情的视频片段、包含某一人物的视频片段中至少一个文件片段。
在本申请实施例中,在接收到用户针对文件列表的第一输入之后,如果确定用户具有文件拆分需求,则将该第一输入所针对的备选文件确定为目标文件,并在文件列表对应的目标应用下的某一用户界面直接显示该目标文件对应的文件拆分控件,以便用户利用该文件拆分控件触发对目标文件进行拆分处理,生成所需的至少一个目标子文件,这样可以在用于管理、下载或者生成目标文件的目标应用下直接完成文件的拆分处理,无需将目标文件移动至特定的其他文件拆分应用,既能够提高文件的拆分效率,提升用户使用体验,并且无需安装额外的其他应用程序,还能够减少由于安装过多的使用频率不高的应用程序对电子设备的内存资源的占用。
进一步的,考虑到在针对目标文件进行拆分处理得到至少一个目标子文件之后,用户可能还具有对目标子文件进行传输的需求,基于此,如图1b所示,在上述S108,响应于上述第二输入,基于上述目标文件,生成至少一个目标子文件之后,还包括:
S110,接收用户针对上述目标子文件的第三输入;
其中,上述第三输入可以包括:用户对目标子文件的点击输入、用户对目标子文件的拖拽输入、用户对指定控件的点击输入、用户输入的语音指令、用户输入的特定手势中任一项,具体的可以根据实际使用需求确定,本申请实施例对此不作限定。
S112,响应于上述第三输入,向目标接收方传输用户所选择的目标子文 件。
具体的,在接收到用户针对目标子文件的第三输入后,将第三输入所针对的目标子文件确定为用户所述选择的目标子文件,并将该目标子文件传输至目标接收方,例如,在接收到用户将某一目标子文件移至当前用户界面上用于表征发送文件片段的触发控件所在位置后,向目标接收方传输该目标子文件,又如,在接收到用户双指同时点击某一目标子文件和用于表征发送文件片段的触发控件的输入后,向目标接收方传输该目标子文件,从而实现不仅在用于管理、下载或者生成目标文件的目标应用下直接完成文件的拆分处理,还能够进一步在该目标应用下完成子文件的传输。
具体的,上述目标接收方可以包括:云端服务器、指定应用下的好友、或者与当前电子设备无线通信连接的另一个电子设备,其中,该云端服务器可以是某一网盘应用对应的服务器,也可以是电子设备中自带的云存储空间对应的云端服务器,该指定应用下的好友可以是某一即时通信应用下的好友,该与当前电子设备无线通信连接的另一个电子设备可以是与当前电子设备以某一种无线通信方式建立无线通信连接的另一个电子设备,具体的可以根据实际需求进行设定,本申请实施例对此不作限定。
在具体实施时,针对目标接收方的确定过程,可以是默认的目标接收方,即在接收到用户针对某一目标子文件的传输触发输入后,将目标子文件传输至该默认的目标接收方;另外,也可以是在确定用户具有子文件传输需求的情况下,自动显示备选接收方列表,以便用户从该备选接收方列表中选取目标接收方,进而将目标子文件传输至该目标接收方。
具体的,以目标应用为文件管理器为例,针对目标接收方为云端服务器的情况,文件管理器可以调用某一网盘应用,向该网盘应用对应的服务器传输用户所选择目标子文件,文件管理器也可以调用电子设备中自带的云存储空间对应的云端服务器,向其传输用户所选择目标子文件;针对目标接收方为指定应用下的好友的情况,文件管理器可以调用某一即时通信应用,向用 户在文件管理器下选择的好友传输用户所选择目标子文件;针对目标接收方为与当前电子设备无线通信连接的另一个电子设备的情况,目标接收方的电子设备先与当前电子设备以某一种无线通信方式建立无线通信连接,由当前电子设备的文件管理器将用户所选择目标子文件通过上述无线通信方式对应的无线通信模块传输至目标接收方的电子设备。
在具体实施时,在用于管理、下载或者生成目标文件的目标应用下为用户提供文件拆分控件和文件传输控件,即先基于用户针对目标文件对应的文件拆分控件的第二输入,对目标文件进行拆分,生成至少一个目标子文件,再基于用户针对该目标子文件的第三输入,并通过触发文件传输控件向目标接收方传输该目标子文件,使得对目标文件的切片、传输工作均在用于管理、下载或者生成目标文件的目标应用下直接完成,提升了文件切片-传输的效率。
在本申请实施例中,在用于管理、下载或者生成目标文件的目标应用中同时融入了文件的切片和发送的功能,首先基于用户针对目标文件对应的文件拆分控件的输入操作,将该目标文件拆分为至少一个目标子文件,然后基于用户针对该目标子文件的输入,将该目标子文件传输给目标接收方,使得用户在用于管理、下载或者生成目标文件的目标应用中不但能够对文件进行拆分,得到想要传输的文件数据片段,同时,还能对该文件数据片段进行传输,即通过将切片-发送功能同时集成在用于管理、下载或者生成目标文件的目标应用中,从而使文件的剪辑、传输更加精准、快速、简便,进而提升用户文件传输时的体验。
进一步的,考虑到文件管理器是用于管理电子设备中所有文件的应用程序,该文件管理器下为文件列表包括电子设备中所有文件,因此,可以在文件管理器下提供文件拆分功能,进而也可以在文件管理器下提供子文件传输功能,基于此,上述S102,接收用户针对文件列表的第一输入,具体包括:
接收用户针对文件管理器的用户界面下的文件列表的第一输入;
其中,上述文件管理器可以是电子设备中自带的文件管理程序,该文件 管理程序用于管理该电子设备中所有类型的文件,用户可以在该文件管理程序下查看所需的文件;具体的,用户触发打开电子设备中文件管理器对应的用户界面后,在该用户界面上显示文件列表,用户可以选择该文件列表下某一备选文件作为目标文件。
对应的,上述S106,接收用户针对目标文件对应的文件拆分控件的第二输入,具体包括:
接收用户针对文件管理器下的用户界面上显示的文件拆分控件的第二输入。
其中,上述文件拆分控件可以在文件管理器的文件列表所在的用户界面下目标文件的指定位置显示;也可以在不同于文件管理器的文件列表所在的用户界面的拆分界面下显示,例如,在确定用户具有针对某一目标文件的拆分需求后,由文件列表所在的用户界面1自动跳转至下一个用户界面2(即拆分界面,该用户界面2与用户界面1为上述文件管理器下的不同用户界面),在该拆分界面下显示目标文件和相应的文件拆分控件;进而接收用户针对该文件拆分控件的第二输入。
在具体实施时,考虑到电子设备中存储的文件种类繁多复杂,且分布在多个不同种类的应用中,为了满足用户的个性化寻找需求,利用能够管理电子设备所有存储资源的文件管理器,来实现本申请中的文件处理的方法,以使用户能够快速地找到所需要的目标文件;其中,文件管理器可以是电子设备中自带的文件管理程序,存储有该电子设备中所有类型的文件。
其中,文件管理器下的文件列表中所显示的目标文件有多种预设的显示方式,用户可以根据实际的需求选择对应的显示方式;例如,若用户需要寻找某一日期的文件,该文件列表中所显示的目标文件可以按照文件的存储时间正序显示;又如,若用户需要寻找某一类型的文件,该文件列表中所显示的目标文件可以按照文件的类型进行分类,并按照文件的存储时间正序显示。
进一步的,为了提高文件拆分的精准度,确保个性化满足用户的文件拆 分需求,考虑到目标文件具有不同的类型,因此,可以根据目标文件的类型,为目标文件设置不同的拆分方式,即将文件拆分控件的拆分单元依据与目标文件的类型进行关联,以使文件拆分的过程更加快速、简便、自由,基于此,上述S104,显示目标文件对应的文件拆分控件,具体包括:
若目标文件为文本文件,则将以文件大小为拆分单元的第一控件确定为文件拆分控件,显示目标文件对应的文件拆分控件;
具体的,由于文本文件的文件内容与文件大小相对应的,因此,针对文本文件,可以将文件大小进度条作为目标文件对应的文件拆分控件,这样用户可以有针对性地剪辑具有预设文件大小的文档片段。
若目标文件为多媒体文件,则将以时间为拆分单元的第二控件确定为文件拆分控件,显示目标文件对应的文件拆分控件。
具体的,由于多媒体文件通常自带与时间相关的播放进度条,并且文件内容出现的位置也是与时间相对应的,因此,针对多媒体文件,可以将时间进度条作为目标文件对应的文件拆分控件,这样用户可以有针对性地剪辑某一时间段内的多媒体片段。
若目标文件为图片文件,则将以区域划分为拆分单元的第三控件确定为文件拆分控件,显示目标文件对应的文件拆分控件;例如,该第三控件可以是可拖拽的区域选择框。
具体的,由于图片文件可以按照区域划分为多个不同的子图片,每个子图片都对应于图片中某一区域的图片内容,因此,针对图片文件,可以将可拖拽的区域选择框作为目标文件对应的文件拆分控件,这样用户可以有针对性地剪辑图片中某一区域内对应的图片内容。
在具体实施时,通过用于管理、下载或者生成目标文件的目标应用的用户界面上提供目标文件的文件拆分控件,以便用户通过该文件拆分控件触发针对目标文件的拆分处理,其中,为了提升目标文件拆分时的灵活性,以此来满足用户的个性化拆分需求,可以在用于管理、下载或者生成目标文件的 目标应用中为目标文件设置多种不同的拆分方式;
例如,上述文件拆分控件可以是滑动进度条,对应的,第二输入为用户针对滑动进度条上的至少一个滑块的滑动操作,在具体实施时,以目标应用为文件管理器为例,在文件管理器下显示用于指示拆分目标文件的滑动进度条,基于用户在该滑动进度条上的滑动操作,将该滑动进度条上的第一滑块所在的第一位置标记为开始拆分位置,将该滑动进度条上的第二滑块所在的第二位置标记为结束拆分位置,并将开始拆分位置至结束拆分位置之间的目标文件的文件片段确定为目标子文件;
又如,上述文件拆分控件也可以是信息输入框,对应的,第二输入为用户可以在该信息输入框中输入拆分大小、拆分时间间隔、拆分起止时刻、拆分章节标识、拆分对象中至少一项拆分信息,在具体实施时,仍以目标应用为文件管理器为例,在文件管理器下显示用于指示拆分目标文件的信息输入框,基于用户在该信息输入框中针对目标文件输入的拆分信息,将目标文件按照拆分大小、拆分时间间隔、拆分起止时刻、拆分章节标识、拆分对象中至少一项拆分信息拆分为多个文件片段,并将该多个文件片段确定为目标子文件。
在本申请实施例中,考虑到电子设备中存储的文件种类繁多复杂,且分布在多个不同种类的应用中,可以将目标文件的拆分过程融入到管理电子设备所有存储资源的文件管理器中,以使用户能够快速地找到所需拆分的目标文件,同时在文件管理器中为目标文件设置多种不同的拆分方式,以满足用户的个性化需求。
具体的,又考虑到目标文件具有不同的类型,因此,可以根据目标文件的类型,在文件管理器中为目标文件设置不同的拆分方式,以使文件拆分的过程更加快速、简便、自由,即将目标文件的类型与文件拆分控件的拆分刻度类型进行关联,具体的,当目标文件的类型为文本文件时,目标文件的拆分方式为按照文件大小拆分,对应的,文件拆分控件为以文件大小为拆分单 元的控件;在具体实施时,在文件管理器的用户界面上,显示文件列表,接收用户针对该文件列表中文本文件的点击操作,并在文件管理器下显示以文件大小为拆分单元的滑动进度条,其中,该滑动进度条的长度为该文本文件的大小,基于用户在该滑动进度条上的滑动操作,将该滑动进度条上的第一滑块所在的第一位置标记为开始拆分位置,将该滑动进度条上的第二滑块所在的第二位置标记为结束拆分位置,并将开始拆分位置至结束拆分位置之间的文件片段确定为该文本文件的目标子文件;或者在接收到用户针对该文本文件的点击操作后,在文件管理器下显示信息输入框,基于用户在该信息输入框中输入的拆分大小信息,将该文本文件拆分为多个文件片段,并将该多个文件片段确定为目标子文件。
具体的,当目标文件的类型为多媒体文件时,目标文件的拆分方式为按照时间拆分,对应的,文件拆分控件为以时间为拆分单元的控件;在具体实施时,在接收到用户针对该多媒体文件的点击操作后,在文件管理器下显示以时间为拆分单元的滑动进度条,其中,该滑动进度条的长度为该音频文件的时长,基于用户在该滑动进度条上的滑动操作,将该滑动进度条上的第一滑块所对应的时间标记为开始拆分时间,将该滑动进度条上的第二滑块所对应的时间标记为结束拆分时间,并将开始拆分时间至结束拆分时间之间的时长对应的多媒体文件的文件片段确定为目标子文件;或者在接收到用户针对该多媒体文件的点击操作后,在文件管理器下显示信息输入框,基于用户在该信息输入框中输入的拆分时间间隔、拆分起止时刻等拆分时间信息,将该多媒体文件拆分为多个文件片段,并将该多个文件片段确定为目标子文件;其中,考虑到多媒体文件不仅具有时间属性,还具有大小属性,因此,当目标文件的类型为多媒体文件时,也可以按照文件大小对目标文件进行拆分。
进一步的,针对文件拆分控件为显示于目标文件下方的滑动进度条的情况,为了便于用户在滑动进度条上快速定位用户实际需要拆分的文件片段,或者便于用户快速识别某一目标子文件是否为当前需要传输的子文件,因此, 可以以预览窗口的形式显示相应的文件内容;具体的,可以通过在文件拆分过程中以预览窗口的形式显示文件内容,以便用户基于该预览窗口中展示的文件内容,快速定位到所需拆分的文件片段;也可以通过在文件拆分完成后以预览窗口的形式显示子文件内容,以便用户基于该预览窗口中展示的文件内容,快速识别该目标子文件是否为当前需要传输的子文件。其中,针对目标文件为文本文件的情况,可以在预览窗口中显示目标子文件所对应的文本内容,具体的,在预览窗口内可以自动翻页或者用户手动点击翻页;针对目标文件为多媒体文件的情况,可以在预览窗口中显示目标子文件所对应的多媒体播放界面,并播放出声音。
进一步的,考虑到针对目标文件的拆分过程,可以在目标应用(如文件管理器)的文件列表所在的用户界面下直接对文件进行拆分,此时文件拆分控件在文件列表所在的用户界面上显示,也可以在不同于目标应用(如文件管理器)的文件列表所在的用户界面的拆分界面下对文件进行拆分,此时文件拆分控件在该拆分界面上显示;又考虑到针对在文件列表所在的用户界面下对文件进行拆分的情况,目标文件是以信息列表的形式展示,无法展示目标文件的具体文件内容,因此,可以通过在文件拆分过程中以预览窗口的形式显示文件内容,以便用户基于该预览窗口中展示的文件内容,快速定位到所需拆分的文件片段;对应的,针对在不同于文件列表所在的用户界面的拆分界面下对文件进行拆分的情况,在拆分界面某一区域可以展示目标文件的具体文件内容,并且在拆分界面的另一区域以信息列表的形式显示拆分得到的多个目标子文件,因此,可以通过在文件拆分完成后以预览窗口的形式显示用户选择的目标子文件的文件内容,以便用户基于该预览窗口中展示的文件内容,快速识别该目标子文件是否为当前需要传输的子文件。
具体的,第一种拆分方式,即针对在文件列表所在的用户界面下对文件进行拆分的情况,由于目标文件是以信息列表的形式展示,无法展示目标文件的具体文件内容,因此,可以通过在文件拆分过程中以预览窗口的形式显 示文件内容,以便用户基于该预览窗口中展示的文件内容,快速定位到所需拆分的文件片段,基于此,上述步骤S104,显示目标文件对应的文件拆分控件,具体包括:
在目标应用的文件列表下目标文件的指定位置,显示目标文件对应的文件拆分控件,其中,该文件拆分控件包括:与目标文件的文件类型对应的滑动进度条;
具体的,针对目标文件为文本文件的情况,将以文件大小为拆分单元的滑动进度条确定为文件拆分控件,针对目标文件为多媒体文件的情况,将以播放时间为拆分单元的滑动进度条确定为文件拆分控件;在具体实施时,可以在用于表征目标文件的一条信息的下方显示目标文件对应的滑动进度条。
对应的,上述S106,接收用户针对目标文件对应的文件拆分控件的第二输入,具体包括:
显示用于展示上述滑动进度条上的滑块所在位置对应的文件内容的预览窗口;
接收用户基于上述预览窗口中显示的文件内容针对上述滑动进度条上的滑块的第二输入。
具体的,用户可以基于预览窗口中显示的文件内容将滑块移动到第一位置和第二位置处,其中,该第一位置可以表征文件拆分的起始位置,该第二位置可以表征文件拆分的终止位置,该第一位置和第二位置之间的文件片段即为一个目标子文件。
进一步的,考虑到在文件拆分完成后,用户可能还具有查看拆分得到的子文件的需求,基于此,在上述步骤S108,基于上述目标文件,生成至少一个目标子文件之后,还包括:
在上述预览窗口中显示拆分得到的目标子文件对应的文件内容。
具体的,在用户基于预览窗口中显示的文件内容将滑块移动到第一位置和第二位置处之后,可以继续在预览窗口中播放目标子文件的具体文件内容, 以便用户再次确认目标子文件是否为用户实际想要拆分的文件片段。
在具体实施时,考虑到为了便于用户快速地完成目标文件的拆分和传输,可以直接在文件管理器的用户界面中为用户提供文件拆分的相关控件,具体的,可以在用户所选择的目标文件的下方区域,显示用于指示拆分目标文件的文件拆分控件。对应的,为了便于用户快速定位其真正想要传输的文件片段,在对文件拆分控件进行操作之后,可以直接在文件拆分控件的临近位置,向用户显示目标文件的预览窗口,具体的,可以以悬浮窗的形式显示预览窗口,也可以在文件管理器的用户界面的预设区域显示一个预览界面。
在具体实施时,针对文件拆分控件为滑动进度条的情况,如图2所示,在文件管理器的用户界面上,显示文件列表,该文件列表中包括:文本文件、音频文件、以及视频文件,在接收到用户针对该文件列表中音频文件的点击操作后,在该音频文件的下方,显示以时间为拆分单元、用于指示拆分该音频文件的滑动进度条,并基于用户在该滑动进度条上针对滑块的滑动操作,在滑动进度条下方的预览窗口中显示滑动进度条中的滑块对应的当前停留位置对应的文件内容。
在具体实施时,针对文件拆分控件为信息输入框的情况,在文件管理器的用户界面上,显示文件列表,在接收到用户针对该文件列表中音频文件的点击操作后,在距该音频文件的预设位置,显示信息输入框,并基于用户在该信息输入框中输入的拆分大小、拆分时间间隔、拆分起止时刻、拆分章节标识、拆分对象中至少一项拆分信息,将目标文件拆分为多个目标子文件,并在预览窗口显示目标子文件对应的文件内容,其中,该预览窗口可以划分为多个子窗口,每个子窗口分别显示一个目标子文件对应的文件内容。
具体的,第二种拆分方式,即针对在不同于文件列表所在的用户界面的拆分界面下对文件进行拆分的情况,由于在拆分界面某一区域可以展示目标文件的具体文件内容,并且在拆分界面的另一区域以信息列表的形式显示拆分得到的多个目标子文件,因此,可以通过在文件拆分完成后以预览窗口的 形式显示用户选择的目标子文件的文件内容,以便用户基于该预览窗口中展示的文件内容,快速识别该目标子文件是否为当前需要传输的子文件,基于此,上述步骤S104,显示目标文件对应的文件拆分控件,具体包括:
接收用户针对目标文件的第四输入;
其中,上述第四输入可以包括:用户对目标文件的点击输入、用户将目标文件移至文件拆分控件的输入、用户对文件列表上的指定控件的点击输入、用户输入的语音指令、用户输入的特定手势中任一项,具体的可以根据实际使用需求确定,本申请实施例对此不作限定。
响应于上述第四输入,显示目标文件的拆分界面;
具体的,在接收到用户针对目标文件的第四输入后,若确定用户具有文件拆分需求,则跳转到下一个用户界面(即拆分界面),例如,在接收到用户将文件列表中的某一目标文件移至文件列表上文件拆分控件的输入操作后,显示不同于文件列表所在的用户界面的拆分界面;又如,在接收到用户双指同时点击目标文件和文件拆分控件后,显示不同于文件列表所在的用户界面的拆分界面。
在上述拆分界面的第一预设区域,显示目标文件和目标文件对应的文件拆分控件;
具体的,可以在第一预设区域显示目标文件的文件内容,这样便于用户快速定位实际所需拆分的文件片段;其中,上述文件拆分控件可以是与目标文件的文件类型对应的滑动进度条;
具体的,针对目标文件为文本文件的情况,将以文件大小为拆分单元的滑动进度条确定为文件拆分控件,针对目标文件为多媒体文件的情况,将以播放时间为拆分单元的滑动进度条确定为文件拆分控件;在具体实施时,可以在用于表征目标文件的一条信息的下方显示目标文件对应的滑动进度条。
对应的,在上述步骤S108,基于上述目标文件,生成至少一个目标子文件之后,还包括:
步骤一,在上述拆分界面的第二预设区域,显示拆分得到的至少一个目标子文件;
具体的,可以以信息列表的形式在第二预设区域逐条显示拆分得到的多个目标子文件。
步骤二,接收用户针对任一目标子文件的第五输入;其中,该第五输入与第三输入为不同输入,该第五输入用于触发显示用于展示用户所选择的目标子文件的具体文件内容的预览窗口。
其中,上述第五输入可以包括:用户对目标子文件的点击输入、用户对拆分界面上的指定控件的点击输入、用户输入的语音指令、用户输入的特定手势中任一项,具体的可以根据实际使用需求确定,本申请实施例对此不作限定。
步骤三,响应于上述第五输入,显示该第五输入所针对的目标子文件的预览窗口。
具体的,在接收到用户针对目标子文件的第五输入后,显示相应的预览窗口并在该预览窗口中显示用户选择的目标子文件的文件内容,例如,在接收到用户对某一目标子文件的点击输入后,在预览窗口中显示该目标子文件的具体文件内容;又如,在接收到用户针对某一目标子文件所输入的语音指定后,在预览窗口中显示该目标子文件的具体文件内容,这样用户可以基于该预览窗口中展示的文件内容,快速识别该目标子文件是否为当前需要传输的子文件。
在具体实施时,为了使用户更***地对目标文件进行拆分,可以在用户选择目标文件后,自动展开文件拆分界面,以便向用户展示更丰富的文件相关信息,便于用户更加准确地选择真正想要传输的文件片段;其中,为了给用户提供更丰富的选择,提升用户的使用体验,可以在拆分界面中显示多个目标子文件,同时,为了便于用户更加准确地选择其真正想要传输的文件片段,还可以在拆分界面中显示目标子文件的预览窗口。
在具体实施时,如图3所示,以目标文件为音频文件、且该音频文件的时长为3分58秒为例进行说明,首先在文件管理器的用户界面上,显示文件列表,并接收用户针对该文件列表中音频文件的点击输入,然后进入该音频文件的拆分界面,并在该拆分界面中音频文件的下方区域,显示用于指示拆分该音频文件的文件拆分控件,在图3中所示,上述文件拆分控件为以时间为拆分单元的滑动进度条,且该滑动进度条的长度为3分58秒,接收用户在该滑动进度条的第二输入,并将该第二输入所针对的音频文件中的音频片段确定为目标子文件;其中,用户可以在拆分界面中对该滑动进度条进行自由的拆分,将该音频文件拆分为多个音频片段,每个音频片段可以对应不同的时间段,即将该音频文件拆分为多个目标子文件,在图3中所示,该音频文件被拆分为三个音频子文件,并以列表的形式显示;在拆分界面的第二预设区域,即在拆分界面的最下方,显示对该音频文件拆分得到的多个音频片段(音频子文件1、音频子文件2、音频子文件3);进一步的,接收用户针对任一音频片段的第五输入;其中,第五输入与第三输入为不同输入;并在音频子文件列表上方,显示第五输入所针对的音频子文件的预览界面,其中,该预览界面包括所选择的音频子文件对应的音乐播放界面,该音乐播放界面中包含歌词,并播放出有声音,便于用户更加准确地选择其真正想要传输的音频片段。
在本申请实施例中,在用于管理、下载或者生成目标文件的目标应用中为用户提供了两种文件拆分的交互方式,一种是直接在目标应用的用户界面上对目标文件进行拆分、预览,操作简单,便于用户使用,另一种是在目标应用的用户界面下选中目标文件后,自动展开文件拆分界面,以便向用户展示更丰富的文件相关信息,便于用户更加准确地选择真正想要传输的文件片段,用户可以基于自身需求对上述两种交互方式进行选择,进而满足用户的个性化需求。
进一步的,考虑到将目标文件拆分为目标子文件之后,用户可能具有将 目标子文件发送给某一接收方的需求,即用户需要将目标子文件传输给目标接收方,为了使文件传输的过程更加快速、方便、简洁,还可以在用于管理、下载或者生成目标文件的目标应用中融入文件传输功能,同时,为了便于用户快速选择实际所需发送的目标接收方,使得用户可以直接在目标应用中快速选择目标接收方,进而完成文件的传输,基于此,在上述步骤S112,向目标接收方传输用户所选择的目标子文件之前,还包括:
显示备选接收方列表,其中,该备选接收方列表是基于用户预设时间段内的历史行为数据所确定的;
具体的,上述备选接收方列表是基于用户在预设时间段内的应用使用记录、聊天记录、以及无线信号连接记录中至少一项记录所确定的;在具体实施时,基于用户在预设时间段内的历史行为数据,自动识别用户希望进行文件传输的文件接收方,并将识别到的文件接收方作为备选接收方,以列表的形式显示在目标应用的用户界面上的预设位置,例如,备选接收方可以为用户近期频繁使用的某一网盘、用户近期在某一即时通信应用下频繁联系的某几个好友、或者已建立无线通信连接的电子设备,并以列表的形式将上述备选接收方显示在目标应用的用户界面上的预设位置。
对应的,上述步骤S112,向目标接收方传输用户所选择的目标子文件,具体包括:
在接收到用户针对上述备选接收方列表中的任一备选接收方的第六输入后,向与该第六输入对应的目标接收方传输用户所选择的目标子文件。
其中,上述第六输入可以包括:用户对备选接收方列表中的任一备选接收方的点击输入、用户对指定控件的点击输入、用户输入的语音指令、用户输入的特定手势中任一项,具体的可以根据实际使用需求确定,本申请实施例对此不作限定。
具体的,在显示备选接收方列表之后,用户可以在备选接收方列表中选择目标接收方,并触发向目标接收方传输想要传输的文件,具体的,接收用 户针对备选接收方列表中的任一备选接收方的第六输入,再接收用户针对目标子文件的第三输入,并将该目标子文件确定为用户所选择的目标子文件,然后向该第六输入所针对的目标接收方传输用户所选择的目标子文件;其中,该第三输入和第六输入可以是相同的输入,例如,用户将目标子文件拖至备选接收方列表中某一接收方所在位置;该第三输入和第六输入也可以是不同的输入,例如,用户先针对备选接收方列表中某一接收方的点击输入,即选择目标接收方,再将目标子文件拖至用于指示发送数据片段的控件所在位置。
在具体实施时,可以先基于上述第六输入确定用户所选择的目标接收方,然后将第三输入所针对的目标子文件拖动到用于指示发送数据片段的控件所在位置,此时,第三输入和第六输入为不同的输入,即可向用户预先选取的或者默认的目标接收方传输用户所选择的目标子文件,具体的,文件传输的过程可以直接在文件管理器用户界面中进行,如图4所示,在文件管理器下文件列表所在的用户界面中,将滑动进度条所对应的音频子文件拖动到用于指示发送数据片段的控件所在位置;文件传输的过程也可以在拆分界面中进行,如图5所示,在拆分界面中,将音频子文件列表中音频子文件1拖动到用于指示发送数据片段的控件所在位置。
在具体实施时,还可以直接将目标子文件拖动至备选接收方列表中某一备选接收方所在位置,此时,第三输入和第六输入即为同一输入,对应的,将第三输入最后在接收方列表中所在的位置对应的某一备选接收方确定为目标接收方,并向该目标接收方传输用户所选择的目标子文件,具体的,文件传输的过程可以直接在文件管理器用户界面中进行,如图6所示,在文件管理器用户界面中,将滑动进度条所对应的音频文件拖动至备选接收方列表中的通信应用下好友1所在位置,并将该好友1确定为目标接收方,向该该好友1传输用户所选择的的音频子文件,并跳转到与该好友1的通信聊天界面,具体的,在确定需要将音频子文件传输至好友1后,调用好友1所在的关联应用,通过该关联应用进行文件传输;文件传输的过程也可以在拆分界面中 进行,如图7所示,在拆分界面中,将音频子文件列表中音频子文件1拖动至备选接收方列表中的通信应用下好友1所在位置,并将该好友1确定为目标接收方,向该好友1传输用户所选择的音频子文件1,具体的,在确定需要将音频子文件1传输至好友1后,调用好友1所在的关联应用,通过该关联应用进行文件传输。
在本申请实施例提供的文件处理的方法中,接收用户针对文件列表的第一输入,其中,该文件列表包括多个备选文件;响应于第一输入,在多个备选文件中确定待拆分处理的目标文件,并显示目标文件对应的文件拆分控件;接收用户针对该文件拆分控件的第二输入;响应于第二输入,基于目标文件,生成至少一个目标子文件。即在接收到用户针对文件列表的第一输入之后,如果确定用户具有文件拆分需求,则将该第一输入所针对的备选文件确定为目标文件,并在文件列表对应的目标应用下的某一用户界面直接显示该目标文件对应的文件拆分控件,以便用户利用该文件拆分控件触发对目标文件进行拆分处理,生成所需的至少一个目标子文件,这样可以在用于管理、下载或者生成目标文件的目标应用下直接完成文件的拆分处理,无需将目标文件移动至特定的其他文件拆分应用,既能够提高文件的拆分效率,提升用户使用体验,并且无需安装额外的其他应用程序,还能够减少由于安装过多的使用频率不高的应用程序对电子设备的内存资源的占用。
需要说明的是,本申请实施例提供的文件处理的方法,执行主体可以为文件处理的装置,或者该文件处理的装置中的用于执行文件处理的方法的控制模块。本申请实施例中以文件处理的装置执行文件处理的方法为例,说明本申请实施例提供的文件处理的装置。
具体的,对应于上述文件处理的方法,如图8所示,本申请实施例提供的文件处理的装置,包括:
第一接收模块802,用于接收用户针对文件列表的第一输入,其中,所述文件列表包括多个备选文件;
拆分控件显示模块804,用于响应于所述第一输入,在所述多个备选文件中确定待拆分处理的目标文件,并显示所述目标文件对应的文件拆分控件;
第二接收模块806,用于接收所述用户针对所述文件拆分控件的第二输入;
文件生成模块808,用于响应于所述第二输入,基于所述目标文件,生成至少一个目标子文件。
在本申请提供的实施例中,在接收到用户针对文件列表的第一输入之后,如果确定用户具有文件拆分需求,则将该第一输入所针对的备选文件确定为目标文件,并在文件列表对应的目标应用下的某一用户界面直接显示该目标文件对应的文件拆分控件,以便用户利用该文件拆分控件触发对目标文件进行拆分处理,生成所需的至少一个目标子文件,这样可以在用于管理、下载或者生成目标文件的目标应用下直接完成文件的拆分处理,无需将目标文件移动至特定的其他文件拆分应用,既能够提高文件的拆分效率,提升用户使用体验,并且无需安装额外的其他应用程序,还能够减少由于安装过多的使用频率不高的应用程序对电子设备的内存资源的占用。
可选的,所述装置还包括:
第三接收模块,用于在基于所述目标文件,生成至少一个目标子文件之后,接收所述用户针对所述目标子文件的第三输入;
文件传输模块,用于响应于所述第三输入,向目标接收方传输所述用户所选择的目标子文件。
可选的,所述第一接收模块802,具体用于:
接收用户针对文件管理器的用户界面下的文件列表的第一输入;
所述第二接收模块806,具体用于:
接收所述用户针对所述用户界面上显示的所述文件拆分控件的第二输入。
可选的,所述拆分控件显示模块804,具体用于:
若所述目标文件为文本文件,将以文件大小为拆分单元的第一控件确定 为文件拆分控件,显示所述目标文件对应的所述文件拆分控件;
若所述目标文件为多媒体文件,将以时间为拆分单元的第二控件确定为文件拆分控件,显示所述目标文件对应的所述文件拆分控件。
可选的,所述拆分控件显示模块804,还具体用于:
在所述文件列表下所述目标文件的指定位置,显示所述目标文件对应的文件拆分控件,其中,所述文件拆分控件包括:与所述目标文件的文件类型对应的滑动进度条;
所述第二接收模块806,还具体用于:
显示用于展示所述滑动进度条上的滑块所在位置对应的文件内容的预览窗口;
接收所述用户基于所述预览窗口中显示的所述文件内容针对所述滑块的第二输入。
可选的,所述装置还包括:第一文件内容显示模块,用于:
在所述基于所述目标文件,生成至少一个目标子文件之后,在所述预览窗口中显示所述目标子文件对应的文件内容。
可选的,所述拆分控件显示模块804,还具体用于:
接收所述用户针对所述目标文件的第四输入;
响应于所述第四输入,显示所述目标文件的拆分界面;
在所述拆分界面的第一预设区域,显示所述目标文件和所述目标文件对应的文件拆分控件;
所述装置还包括:第二文件内容显示模块,用于:
在所述拆分界面的第二预设区域,显示所述至少一个目标子文件;
接收所述用户针对任一所述目标子文件的第五输入;
响应于所述第五输入,显示所述第五输入所针对的所述目标子文件的预览窗口。
在本申请实施例提供的文件处理的装置中,接收用户针对文件列表的第 一输入,其中,该文件列表包括多个备选文件;响应于第一输入,在多个备选文件中确定待拆分处理的目标文件,并显示目标文件对应的文件拆分控件;接收用户针对该文件拆分控件的第二输入;响应于第二输入,基于目标文件,生成至少一个目标子文件。即在接收到用户针对文件列表的第一输入之后,如果确定用户具有文件拆分需求,则将该第一输入所针对的备选文件确定为目标文件,并在文件列表对应的目标应用下的某一用户界面直接显示该目标文件对应的文件拆分控件,以便用户利用该文件拆分控件触发对目标文件进行拆分处理,生成所需的至少一个目标子文件,这样可以在用于管理、下载或者生成目标文件的目标应用下直接完成文件的拆分处理,无需将目标文件移动至特定的其他文件拆分应用,既能够提高文件的拆分效率,提升用户使用体验,并且无需安装额外的其他应用程序,还能够减少由于安装过多的使用频率不高的应用程序对电子设备的内存资源的占用。
本申请实施例中的文件处理的装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。
本申请实施例中的文件处理的装置可以为具有操作***的装置。该操作***可以为安卓(Android)操作***,可以为ios操作***,还可以为其他可能的操作***,本申请实施例不作具体限定。
本申请实施例提供的文件处理的装置能够实现图1a至图1b的方法实施例实现的各个过程,为避免重复,这里不再赘述。
可选地,如图9所示,本申请实施例还提供一种电子设备900,包括处 理器901,存储器902,存储在存储器902上并可在所述处理器901上运行的程序或指令,该程序或指令被处理器901执行时实现上述文件处理的方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。
图10为实现本申请实施例的一种电子设备的硬件结构示意图。
该电子设备1000包括但不限于:射频单元1001、网络模块1002、音频输出单元1003、输入单元1004、传感器1005、显示单元1006、用户输入单元1007、接口单元1008、存储器1009、以及处理器1010等部件。
本领域技术人员可以理解,电子设备1000还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理***与处理器1010逻辑相连,从而通过电源管理***实现管理充电、放电、以及功耗管理等功能。图10中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。
其中,处理器1010,用于接收用户针对文件列表的第一输入,其中,所述文件列表包括多个备选文件;
响应于所述第一输入,在所述多个备选文件中确定待拆分处理的目标文件,并显示所述目标文件对应的文件拆分控件;
接收所述用户针对所述文件拆分控件的第二输入;
响应于所述第二输入,基于所述目标文件,生成至少一个目标子文件。
在本申请实施例中,在接收到用户针对文件列表的第一输入之后,如果确定用户具有文件拆分需求,则将该第一输入所针对的备选文件确定为目标文件,并在文件列表对应的目标应用下的某一用户界面直接显示该目标文件对应的文件拆分控件,以便用户利用该文件拆分控件触发对目标文件进行拆分处理,生成所需的至少一个目标子文件,这样可以在用于管理、下载或者生成目标文件的目标应用下直接完成文件的拆分处理,无需将目标文件移动 至特定的其他文件拆分应用,既能够提高文件的拆分效率,提升用户使用体验,并且无需安装额外的其他应用程序,还能够减少由于安装过多的使用频率不高的应用程序对电子设备的内存资源的占用。
可选地,处理器1010,还用于在基于所述目标文件,生成至少一个目标子文件之后,还包括:
接收所述用户针对所述目标子文件的第三输入;
响应于所述第三输入,向目标接收方传输所述用户所选择的目标子文件。
可选地,处理器1010,用于所述接收用户针对文件列表的第一输入,包括:
接收用户针对文件管理器的用户界面下的文件列表的第一输入;
所述接收所述用户针对所述文件拆分控件的第二输入,包括:
接收所述用户针对所述用户界面上显示的所述文件拆分控件的第二输入。
可选地,处理器1010,用于所述显示所述目标文件对应的文件拆分控件,包括:
若所述目标文件为文本文件,将以文件大小为拆分单元的第一控件确定为文件拆分控件,显示所述目标文件对应的所述文件拆分控件;
若所述目标文件为多媒体文件,将以时间为拆分单元的第二控件确定为文件拆分控件,显示所述目标文件对应的所述文件拆分控件。
可选地,处理器1010,用于所述显示所述目标文件对应的文件拆分控件,包括:
在所述文件列表下所述目标文件的指定位置,显示所述目标文件对应的文件拆分控件,其中,所述文件拆分控件包括:与所述目标文件的文件类型对应的滑动进度条;
所述接收所述用户针对所述文件拆分控件的第二输入,包括:
显示用于展示所述滑动进度条上的滑块所在位置对应的文件内容的预览窗口;
接收所述用户基于所述预览窗口中显示的所述文件内容针对所述滑块的第二输入。
可选地,处理器1010,还用于在所述基于所述目标文件,生成至少一个目标子文件之后,还包括:
在所述预览窗口中显示所述目标子文件对应的文件内容。
可选地,处理器1010,用于所述显示所述目标文件对应的文件拆分控件,包括:
接收所述用户针对所述目标文件的第四输入;
响应于所述第四输入,显示所述目标文件的拆分界面;
在所述拆分界面的第一预设区域,显示所述目标文件和所述目标文件对应的文件拆分控件;
在所述基于所述目标文件,生成至少一个目标子文件之后,还包括:
在所述拆分界面的第二预设区域,显示所述至少一个目标子文件;
接收所述用户针对任一所述目标子文件的第五输入;
响应于所述第五输入,显示所述第五输入所针对的所述目标子文件的预览窗口。
本申请实施例提供的电子设备,接收用户针对文件列表的第一输入,其中,该文件列表包括多个备选文件;响应于第一输入,在多个备选文件中确定待拆分处理的目标文件,并显示目标文件对应的文件拆分控件;接收用户针对该文件拆分控件的第二输入;响应于第二输入,基于目标文件,生成至少一个目标子文件。即在接收到用户针对文件列表的第一输入之后,如果确定用户具有文件拆分需求,则将该第一输入所针对的备选文件确定为目标文件,并在文件列表对应的目标应用下的某一用户界面直接显示该目标文件对应的文件拆分控件,以便用户利用该文件拆分控件触发对目标文件进行拆分处理,生成所需的至少一个目标子文件,这样可以在用于管理、下载或者生成目标文件的目标应用下直接完成文件的拆分处理,无需将目标文件移动至 特定的其他文件拆分应用,既能够提高文件的拆分效率,提升用户使用体验,并且无需安装额外的其他应用程序,还能够减少由于安装过多的使用频率不高的应用程序对电子设备的内存资源的占用。
应理解的是,本申请实施例中,输入单元1004可以包括图形处理器(Graphics Processing Unit,GPU)10041和麦克风10042,图形处理器10041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元1006可包括显示面板10061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板10061。用户输入单元1007包括触控面板10071以及其他输入设备10072。触控面板10071,也称为触摸屏。触控面板10071可包括触摸检测装置和触摸控制器两个部分。其他输入设备10072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器1009可用于存储软件程序以及各种数据,包括但不限于应用程序和操作***。处理器1010可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作***、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1010中。
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述文件处理的方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述文件处理的方法实施例的各个过程,且能达到相同的技术效果,为避免重复, 这里不再赘述。
应理解,本申请实施例提到的芯片还可以称为***级芯片、***芯片、芯片***或片上***芯片等。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。

Claims (17)

  1. 一种文件处理的方法,所述方法包括:
    接收用户针对文件列表的第一输入,其中,所述文件列表包括多个备选文件;
    响应于所述第一输入,在所述多个备选文件中确定待拆分处理的目标文件,并显示所述目标文件对应的文件拆分控件;
    接收所述用户针对所述文件拆分控件的第二输入;
    响应于所述第二输入,基于所述目标文件,生成至少一个目标子文件。
  2. 根据权利要求1所述的方法,其中,在基于所述目标文件,生成至少一个目标子文件之后,还包括:
    接收所述用户针对所述目标子文件的第三输入;
    响应于所述第三输入,向目标接收方传输所述用户所选择的目标子文件。
  3. 根据权利要求1所述的方法,其中,所述接收用户针对文件列表的第一输入,包括:
    接收用户针对文件管理器的用户界面下的文件列表的第一输入;
    所述接收所述用户针对所述文件拆分控件的第二输入,包括:
    接收所述用户针对所述用户界面上显示的所述文件拆分控件的第二输入。
  4. 根据权利要求1所述的方法,其中,所述显示所述目标文件对应的文件拆分控件,包括:
    若所述目标文件为文本文件,将以文件大小为拆分单元的第一控件确定为文件拆分控件,显示所述目标文件对应的所述文件拆分控件;
    若所述目标文件为多媒体文件,将以时间为拆分单元的第二控件确定为文件拆分控件,显示所述目标文件对应的所述文件拆分控件。
  5. 根据权利要求1所述的方法,其中,所述显示所述目标文件对应的文件拆分控件,包括:
    在所述文件列表下所述目标文件的指定位置,显示所述目标文件对应的 文件拆分控件,其中,所述文件拆分控件包括:与所述目标文件的文件类型对应的滑动进度条;
    所述接收所述用户针对所述文件拆分控件的第二输入,包括:
    显示用于展示所述滑动进度条上的滑块所在位置对应的文件内容的预览窗口;
    接收所述用户基于所述预览窗口中显示的所述文件内容针对所述滑块的第二输入。
  6. 根据权利要求5所述的方法,其中,在所述基于所述目标文件,生成至少一个目标子文件之后,还包括:
    在所述预览窗口中显示所述目标子文件对应的文件内容。
  7. 根据权利要求1所述的方法,其中,所述显示所述目标文件对应的文件拆分控件,包括:
    接收所述用户针对所述目标文件的第四输入;
    响应于所述第四输入,显示所述目标文件的拆分界面;
    在所述拆分界面的第一预设区域,显示所述目标文件和所述目标文件对应的文件拆分控件;
    在所述基于所述目标文件,生成至少一个目标子文件之后,还包括:
    在所述拆分界面的第二预设区域,显示所述至少一个目标子文件;
    接收所述用户针对任一所述目标子文件的第五输入;
    响应于所述第五输入,显示所述第五输入所针对的所述目标子文件的预览窗口。
  8. 一种文件处理的装置,所述装置包括:
    第一接收模块,用于接收用户针对文件列表的第一输入,其中,所述文件列表包括多个备选文件;
    拆分控件显示模块,用于响应于所述第一输入,在所述多个备选文件中确定待拆分处理的目标文件,并显示所述目标文件对应的文件拆分控件;
    第二接收模块,用于接收所述用户针对所述文件拆分控件的第二输入;
    文件生成模块,用于响应于所述第二输入,基于所述目标文件,生成至少一个目标子文件。
  9. 根据权利要求8所述的装置,其中,还包括:
    第三接收模块,用于在基于所述目标文件,生成至少一个目标子文件之后,接收所述用户针对所述目标子文件的第三输入;
    文件传输模块,用于响应于所述第三输入,向目标接收方传输所述用户所选择的目标子文件。
  10. 根据权利要求8所述的装置,其中,所述第一接收模块,具体用于:
    接收用户针对文件管理器的用户界面下的文件列表的第一输入;
    所述第二接收模块,具体用于:
    接收所述用户针对所述用户界面上显示的所述文件拆分控件的第二输入。
  11. 根据权利要求8所述的装置,其中,所述拆分控件显示模块,具体用于:
    若所述目标文件为文本文件,将以文件大小为拆分单元的第一控件确定为文件拆分控件,显示所述目标文件对应的所述文件拆分控件;
    若所述目标文件为多媒体文件,将以时间为拆分单元的第二控件确定为文件拆分控件,显示所述目标文件对应的所述文件拆分控件。
  12. 根据权利要求8所述的装置,其中,所述拆分控件显示模块,还具体用于:
    在所述文件列表下所述目标文件的指定位置,显示所述目标文件对应的文件拆分控件,其中,所述文件拆分控件包括:与所述目标文件的文件类型对应的滑动进度条;
    所述第二接收模块,还具体用于:
    显示用于展示所述滑动进度条上的滑块所在位置对应的文件内容的预览窗口;
    接收所述用户基于所述预览窗口中显示的所述文件内容针对所述滑块的第二输入。
  13. 根据权利要求12所述的装置,其中,所述装置还包括:第一文件内容显示模块,用于:
    在所述基于所述目标文件,生成至少一个目标子文件之后,在所述预览窗口中显示所述目标子文件对应的文件内容。
  14. 根据权利要求8所述的装置,其中,所述拆分控件显示模块,还具体用于:
    接收所述用户针对所述目标文件的第四输入;
    响应于所述第四输入,显示所述目标文件的拆分界面;
    在所述拆分界面的第一预设区域,显示所述目标文件和所述目标文件对应的文件拆分控件;
    所述装置还包括:第二文件内容显示模块,用于:
    在所述拆分界面的第二预设区域,显示所述至少一个目标子文件;
    接收所述用户针对任一所述目标子文件的第五输入;
    响应于所述第五输入,显示所述第五输入所针对的所述目标子文件的预览窗口。
  15. 一种电子设备,包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1-7任一项所述的文件处理的方法的步骤。
  16. 一种可读存储介质,其中,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1-7任一项所述的文件处理的方法的步骤。
  17. 一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1-7任一项所述的文件处理的方法的步骤。
PCT/CN2022/127408 2021-10-29 2022-10-25 文件处理的方法和电子设备 WO2023072083A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111272564.7 2021-10-29
CN202111272564.7A CN113986083A (zh) 2021-10-29 2021-10-29 文件处理的方法和电子设备

Publications (1)

Publication Number Publication Date
WO2023072083A1 true WO2023072083A1 (zh) 2023-05-04

Family

ID=79744437

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/127408 WO2023072083A1 (zh) 2021-10-29 2022-10-25 文件处理的方法和电子设备

Country Status (2)

Country Link
CN (1) CN113986083A (zh)
WO (1) WO2023072083A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113986083A (zh) * 2021-10-29 2022-01-28 维沃移动通信有限公司 文件处理的方法和电子设备
CN115098811A (zh) * 2022-07-19 2022-09-23 北京达佳互联信息技术有限公司 在线文件处理方法、装置、电子设备、存储介质及产品

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105450769A (zh) * 2015-12-10 2016-03-30 浪潮通用软件有限公司 一种文件传输的方法及装置
WO2017052613A1 (en) * 2015-09-25 2017-03-30 Advanced Bionics Ag Systems and methods for preparing an audio file for an evaluation of cochlear implant system performance
WO2020134892A1 (zh) * 2018-12-29 2020-07-02 华为技术有限公司 一种媒体文件裁剪的方法、电子设备和服务器
US20200245040A1 (en) * 2019-01-25 2020-07-30 International Business Machines Corporation Securing and segmental sharing of multimedia files
CN113986083A (zh) * 2021-10-29 2022-01-28 维沃移动通信有限公司 文件处理的方法和电子设备

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104808976B (zh) * 2014-01-26 2021-05-18 联想(北京)有限公司 一种文件分享方法
CN107635083A (zh) * 2017-09-28 2018-01-26 努比亚技术有限公司 铃声设置方法、移动终端及可读存储介质
CN108471550B (zh) * 2018-03-16 2020-10-09 维沃移动通信有限公司 一种视频截取方法及终端
CN110069774B (zh) * 2019-03-15 2023-05-19 维沃移动通信有限公司 文本处理方法、装置及终端
CN111901534B (zh) * 2020-07-23 2022-03-29 北京字节跳动网络技术有限公司 一种音视频分割的交互方法、装置、设备及存储介质
CN112291341A (zh) * 2020-10-28 2021-01-29 维沃移动通信有限公司 文件传输方法、装置和设备
CN112437353B (zh) * 2020-12-15 2023-05-02 维沃移动通信有限公司 视频处理方法、视频处理装置、电子设备和可读存储介质
CN112767013A (zh) * 2021-01-05 2021-05-07 北京锐安科技有限公司 一种业务报表拆分方法、装置、服务器及存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017052613A1 (en) * 2015-09-25 2017-03-30 Advanced Bionics Ag Systems and methods for preparing an audio file for an evaluation of cochlear implant system performance
CN105450769A (zh) * 2015-12-10 2016-03-30 浪潮通用软件有限公司 一种文件传输的方法及装置
WO2020134892A1 (zh) * 2018-12-29 2020-07-02 华为技术有限公司 一种媒体文件裁剪的方法、电子设备和服务器
US20200245040A1 (en) * 2019-01-25 2020-07-30 International Business Machines Corporation Securing and segmental sharing of multimedia files
CN113986083A (zh) * 2021-10-29 2022-01-28 维沃移动通信有限公司 文件处理的方法和电子设备

Also Published As

Publication number Publication date
CN113986083A (zh) 2022-01-28

Similar Documents

Publication Publication Date Title
RU2631986C2 (ru) Способ и устройство для работы функции в сенсорном устройстве
WO2023072083A1 (zh) 文件处理的方法和电子设备
US10708534B2 (en) Terminal executing mirror application of a peripheral device
US10275295B2 (en) Method and apparatus for presenting clipboard contents on a mobile terminal
CN111050203B (zh) 一种视频处理方法、装置、视频处理设备及存储介质
KR101640460B1 (ko) 휴대 단말기의 분할 화면 운용 방법 및 이를 지원하는 휴대 단말기
KR101841574B1 (ko) 동영상 장면 검색 방법 및 이를 지원하는 휴대 단말기
WO2018157812A1 (zh) 一种实现视频分支选择播放的方法及装置
US20120210201A1 (en) Operation method for memo function and portable terminal supporting the same
WO2010086689A1 (en) Text prediction function based on a mind map user interface
CN106375179B (zh) 一种显示即时通信消息的方法和装置
CN105573744A (zh) 应用列表排序方法、装置和终端设备
CN109245997B (zh) 语音消息播放方法及装置
KR20140082000A (ko) 관련 어플리케이션 제공 단말 및 방법
CN106528252A (zh) 对象启动方法及装置
KR20080086265A (ko) 디스플레이 화면의 스크롤 시스템 및 스크롤 방법, 그시스템을 포함하는 모바일 단말과 그 방법을 수행하는프로그램이 기록된 기록 매체
CN112445395B (zh) 音乐片段的选取方法、装置、设备及存储介质
US8868550B2 (en) Method and system for providing an answer
WO2023061414A1 (zh) 一种文件生成方法、装置及电子设备
US11290661B2 (en) Subtitle presentation based on volume control
CN113127773A (zh) 页面处理方法、装置、存储介质及终端设备
CN112148176A (zh) 挂件控制方法、装置、电子设备及可读存储介质
WO2023030306A1 (zh) 视频编辑方法、装置及电子设备
CN111432288A (zh) 视频播放方法、装置、电子设备和存储介质
EP2587356A2 (en) Controlling method for basic screen and portable device therefore

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22885960

Country of ref document: EP

Kind code of ref document: A1