WO2023046068A1 - 文件处理方法及装置 - Google Patents

文件处理方法及装置 Download PDF

Info

Publication number
WO2023046068A1
WO2023046068A1 PCT/CN2022/120845 CN2022120845W WO2023046068A1 WO 2023046068 A1 WO2023046068 A1 WO 2023046068A1 CN 2022120845 W CN2022120845 W CN 2022120845W WO 2023046068 A1 WO2023046068 A1 WO 2023046068A1
Authority
WO
WIPO (PCT)
Prior art keywords
file
input
floating control
application program
icon
Prior art date
Application number
PCT/CN2022/120845
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 WO2023046068A1 publication Critical patent/WO2023046068A1/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

Definitions

  • the present application belongs to the technical field of communications, and in particular relates to a file processing method and device.
  • file sharing there are great restrictions on file sharing on electronic devices. For example: in the case that the A application does not support file sharing to the B application, the A application usually saves the target file in a certain path first, then finds the target file from the file manager, and then uses the B application to open the target file.
  • the above-mentioned file sharing process is limited by the initial application program to which the file belongs, and the file sharing process is fragmented, which makes the file sharing process cumbersome.
  • the purpose of the embodiments of the present application is to provide a file processing method and device, which can solve the problem of cumbersome file sharing process.
  • the embodiment of the present application provides a file processing method, the method including:
  • an embodiment of the present application provides a file processing device, which includes:
  • the first receiving module is configured to receive a user's first input to the floating control on the first application program icon, and the floating control indicates a target file;
  • a file opening module configured to move the floating control to the second application icon in response to the first input, and open the target file through the second application.
  • 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 method described in the first aspect when executed.
  • an embodiment of the present application provides a readable storage medium, on which a program or an instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented .
  • 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 method described.
  • FIG. 1 is a schematic flow diagram of a file processing method provided in an embodiment of the present application
  • Fig. 2 is one of the schematic diagrams of the operation page of the file processing method provided by the embodiment of the present application;
  • Fig. 3 is the second schematic diagram of the operation page of the file processing method provided by the embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of a file processing device provided in an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 6 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
  • FIG. 1 is a schematic flowchart of a file processing method provided by an embodiment of the present application.
  • the embodiment of the present application provides a file processing method, which may include:
  • Step 110 receiving the user's first input to the floating control on the first application program icon, the floating control indicating the target file;
  • Step 120 in response to the first input, move the floating control to the icon of the second application program, and open the target file through the second application program.
  • the execution subject of the file processing method provided in the embodiment of the present application may be an intelligent electronic device, such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an on-board electronic device, a wearable device, an ultra-mobile personal computer (ultra- mobile personal computer (UMPC), netbook or personal digital assistant (personal digital assistant, PDA), etc.
  • UMPC ultra-mobile personal computer
  • PDA personal digital assistant
  • the target file may include various types of files such as text documents, pictures, videos, audio and compressed packages, and may also include web page links or applets, etc.
  • the application does not specify the type of the target file limited.
  • the floating control can indicate the target file through the association relationship with the storage address of the target file.
  • the first input may be an operation of pressing the floating control, or an operation of moving the floating control.
  • the user can adjust the position of the floating control to any position on the desktop of the mobile phone through the first input.
  • a list of second application program icons can be displayed for the user to select, and based on the user selection, the target second application program can be determined;
  • the first input is a mobile operation, the user can move the floating control Moving from the first application program icon to the second application program icon, this application does not specifically limit the movement mode and movement track of the floating control.
  • step 120 in response to the first input, the floating control moves from the first application icon to the second application icon.
  • the floating control may be moved from the superscript position of the first application icon to the superscript position of the second application icon.
  • the target file can be opened directly through the second application program.
  • the target file simplifies the file sharing process, so that the file sharing can be completed conveniently and quickly, and the user operation experience is improved.
  • the moving the floating control to the icon of the second application program in response to the first input, and opening the target file through the second application program includes:
  • the file type supported by the application refers to the file type corresponding to the file that the application can run.
  • the file types supported by audio software can include various audio files
  • the file types supported by video software can include various video files and audio files
  • the file types supported by document reading software can include various format document files, for example: text TXT Format.
  • the floating control may be displayed on the second on the application icon.
  • the floating control may be displayed at the position of the corner icon of the second application program icon.
  • the second application program can directly open the target file and display the processing page of the target file. Users can perform corresponding processing on the processing page according to their needs.
  • the processing page of the target file may be a page for editing the target file, or a page for previewing the target file, which is not specifically limited in this application.
  • the floating control is moved to the icon of the first application program.
  • a list of second application program icons may be displayed for the user to select, and based on the user's selection, the target second application program is determined; when the second When the second input is a moving operation, the user can move the floating control from the first application program icon to the second application program icon according to the requirement.
  • This application does not specifically limit the moving mode and moving track of the floating control.
  • the file processing method by responding to the user's first input to the floating control, when the file type corresponding to the target file belongs to the file type supported by the second application program, it can quickly identify the first file that supports running the target file Two applications, so that the user can determine the application that supports the operation of the target file through the floating control, so as to reduce the situation that the file cannot be shared across applications due to the limitation of the first application.
  • the moving the floating control to the icon of the second application program in response to the first input, and opening the target file through the second application program includes:
  • the floating control In response to the second input, the floating control is moved to the icon of the target second application program, and the processing page of the target file is opened through the target second application program.
  • the desktop of the mobile phone will display a second application icon that supports the target file type on the current page, which may be Highlighting the icon of the second application program that supports the target file type may also be displaying only the icon of the second application program that supports the target file type on the current page, which is not specifically limited in this application.
  • the highlighting of the second application program icon has the following methods:
  • Method 1 Enlarge and display the icons of all second application programs that support the target file type, and display the enlarged second application program icons while the sizes of the other application program icons remain unchanged.
  • Method 2 Perform a highlighting operation on all second application program icons that support the target file type, and display the highlighted second application program icons while the brightness of other application program icons remains unchanged.
  • the application icon "capable of highlighting” indicates an application icon that can support the running of the target file.
  • Method 3 Perform a highlight operation on all the second application icons that support the target file type, and reduce the brightness of the rest of the application icons. Two app icons and the remaining app icons after dimming. As shown in FIG. 2 , the application icon "capable of highlighting” indicates that the application icon that supports the running of the target file can be highlighted. The application icon “does not support low brightness” indicates that the application icon that does not support the running of the target file can be displayed with low brightness.
  • Method 4 Perform animation display operation on all second application program icons that support the target file type, and do not perform animation display on other application program icons.
  • the shaking effect of the second application program icon is designed to remind the user that the current second application program icon supports the file type of the target file, and then the second application program icon with an animation effect may be displayed.
  • Method 5 As shown in FIG. 2 , set a shortcut bar area on the desktop of the mobile phone.
  • the user In response to the user's first input on the floating control, the user can display the shortcut bar area when moving the floating control, and the user can directly select the target second application program or the system default file editor in the shortcut bar.
  • the mobile phone highlights all icons of second application programs that support the type of the target file, and at the same time identifies the icon of the first application program, that is, the source application program of the target file.
  • the user selects the target second application program icon from the highlighted second application program icons through the second input.
  • the second input may be a release operation of moving the floating control to the target second application program icon, or a pressing operation of moving the floating control to the target second application program icon, which is not specifically limited in this application.
  • the mobile phone detects that the user has determined the icon of the target second application program, it will automatically open the processing page of the target file in the target second application program.
  • the processing page of the target file may be a page for editing the target file, or a page for previewing the target file, which is not specifically limited in this application.
  • the file processing method by responding to the first input, highlighting all the second application program icons that support the file type corresponding to the target file, so that the user can quickly select the target second application program;
  • the target second application icon is selected in the program icon, the floating control is displayed on the target second application icon, and the processing page of the target file is opened, thereby improving the success rate of file sharing.
  • the file processing method further includes:
  • the file operation control is used to perform at least one of the following on the target file corresponding to the suspension control:
  • the third input may be an operation of the user pressing the floating control, or an operation of moving the floating control.
  • the user can select the file operation control through the third input to the suspension control, that is, move the suspension control to the file operation control.
  • the user can perform corresponding file operations on the target file based on the file operation control.
  • the file operation control may be a file manager, such as a recycle bin or a folder, the recycle bin stores temporarily deleted target files, and the folder stores target files to be processed.
  • the target files in the file operation controls are all stored in the form of floating controls.
  • the file operation control can perform corresponding file processing operations on the entire file operation control or on the floating control in the file operation control, so as to realize file processing on the target file.
  • the file processing operation may include deleting, restoring, moving, merging, editing, and arranging the target file.
  • the deletion operation can be to delete a single target file or delete target files in batches, or to delete the file operation control as a whole;
  • the restore operation can be to restore the deleted target file to the default storage path or the storage path where it was deleted. It is also possible to directly restore the target file to be processed to the default storage path or the preset storage path.
  • the floating control can be displayed on the file operation control or on the application icon corresponding to the restored storage path ;
  • the move operation can be to move the entire file operation control to move the floating controls corresponding to all target files as a whole, or to move a single or multiple floating controls to achieve moving a single target file or moving target files in batches, that is, batch files can be realized
  • the merging operation can be to merge multiple floating controls so that multiple target files can be merged;
  • the editing operation can be to edit the target files corresponding to the floating controls;
  • the arrangement operation can be after the user opens the file operation control,
  • the floating controls in the file operation control can be arranged in a preset arrangement, for example, in the form of icons or lists.
  • File attribute information may include file name, file type, file size, file creation date, and the like.
  • the file operation control is used to perform file operations on the target files corresponding to the floating control, so as to realize the overall management of the target files, and also realize the batch transfer of target files, which improves the efficiency of file processing.
  • the file processing method further includes:
  • the floating control In response to the fourth input, the floating control is displayed in a preset area.
  • the fourth input may be an operation for the user to move the floating control, and is to move the floating control to a blank area on the desktop of the mobile phone.
  • the preset area may be the top status bar area of the mobile phone desktop and/or the blank area between the top status bar area of the mobile phone desktop and the first row of application icons on the desktop, or other displayable areas.
  • the user can move any floating control in the preset area.
  • the preset area is the top floating temporary storage area in FIG. 2 , that is, the blank area between the top status bar area and the first row of application icons on the desktop.
  • the file processing method provided by the embodiment of the present application, by setting a preset area, the convenience of using the floating control can be improved, and the user experience can be improved.
  • the file processing method further includes:
  • the mobile phone can adjust the position of the suspended controls in the preset area according to the gravity sensing information. For example, if the mobile phone changes from portrait to landscape, the floating control will move to the top area of the mobile phone desktop when the mobile phone is in landscape.
  • the display position of the floating control is adjusted through the gravity sensing information, which can improve the interactivity and fun of file processing.
  • the file processing method further includes:
  • a floating control corresponding to the target file is displayed on the first application program icon.
  • the target file may include various types of files such as text documents, pictures, videos, audio, and compressed files, and may also include web page links or applets, etc.
  • This application does not specifically limit the type of the target file.
  • the fifth input may be a pressing operation, a clicking operation on the target file, or an operation of touching the target file according to a preset track, and the present application does not specifically limit the operation form of the fifth input.
  • a floating control corresponding to the target file is generated and displayed on the first application icon. show.
  • the floating control can be in any shape, for example, it can be a circle.
  • This application does not specifically limit the expression form of the floating control.
  • the floating control can establish an association relationship with the target file, that is, the floating control can be associated with the storage path of the target file, and after the floating control is generated, the storage path and content of the target file will not be changed. Floating controls also do not interfere with the arrangement and use of app icons on the phone.
  • a selection control of "generate floating control" may be generated, and the selection control is used to select whether to generate the floating control corresponding to the target file.
  • the floating control corresponding to the target file is displayed on the first application program icon; the attribute parameters of the floating control can also be customized according to different types of files. For example, you can set the shape, size, color or transparency of the floating control. In the case that the user does not make custom settings, the floating control can adopt the default settings.
  • the floating control after the floating control is moved to the second application icon, it further includes:
  • the floating control after the floating control is moved to the second application icon, the user needs to move the floating control from the second application icon to other application icons due to possible user movement errors or misoperations. Then the floating control can be moved again at this time.
  • the sixth input may be an operation of pressing the floating control, or an operation of moving the floating control.
  • the user can adjust the position of the floating control to any position on the desktop of the mobile phone through the sixth input.
  • the sixth input is a press operation, a list of third application program icons can be displayed for the user to select, and based on the user selection, the target third application program is determined; when the sixth input is a mobile operation, the user can move the floating control Moving from the icon of the second application program to the icon of the third application program, this application does not specifically limit the moving manner and trajectory of the floating control.
  • the floating control moves from the second application icon to the third application icon.
  • the floating control may be moved from the superscript position of the second application icon to the superscript position of the third application icon.
  • the target file can be opened directly through the third application.
  • the file processing method provided by the embodiment of the present application improves the use of the floating control by moving the floating control from the icon of the second application to the image of the third application after the floating control is moved to the icon of the second application. flexibility.
  • the operation steps of the file processing method provided in the embodiment of the present application may include:
  • the user opens the target file through the first application in the mobile phone
  • a floating control When the user returns to the desktop, a floating control will be displayed on the icon of the first application program. As shown in FIG. 2 , the floating control can be moved to any second application program icon or file operation control, it can also be the second application program icon in the shortcut bar area, or it can be the top temporary storage suspension area.
  • the suspension control can be displayed on the icon of the second application program, and then directly open and display the processing page of the target file.
  • the floating control automatically returns to the icon of the first application program.
  • the file operation control can manage the floating control in the form of a folder.
  • “Folded file operation control” in Figure 3 means that before the file operation control is clicked, it will be displayed on the desktop in the form of a folder. At this time, the floating control in the file operation control is in a folded state.
  • “Expand file operation controls” means that you can preview the floating controls or file information in the form of a list or icon after clicking on the folder.
  • the floating control indicates the target file in the form of a "bubble” or "balloon". Taking “bubble” as an example, the corresponding “file bubble” can be generated according to the target file.
  • the “file bubble” can be moved arbitrarily on the phone desktop.
  • the target application can automatically open the processing page of the target file.
  • the "file bubble” moves to the icon of the target application that does not support the operation of the target file, the "file bubble” will automatically float back to the icon of the last application that opened the target file.
  • the "file bubble” can be suspended in the preset temporary storage area.
  • the preset temporary storage area is the blank space between the status bar at the top of the desktop and the first row of application icons, then the user can drag the "file bubble” to any blank space on the desktop during the process of moving the "file bubble” Let go, and the "file bubble” will automatically float up to the blank space between the status bar at the top of the desktop and the first row of application icons.
  • the desktop of the mobile phone may highlight application icons that support the running of the target file, and at the same time identify the initial application icon that generated the "file bubble".
  • an application icon similar to a "file trash can” or a "recycle bin” can be set on the desktop of the mobile phone.
  • the recycle bin as an example, if the "file bubble" is moved to the recycle bin application icon, the target file will be automatically included in the recycle bin directory, indicating that the target file is temporarily deleted.
  • the "file bubble” corresponding to the target file will re-suspend on the recycle bin application icon.
  • 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 in the embodiment of the present application is described by taking the file processing method performed by the file processing device as an example.
  • Fig. 4 is a schematic structural diagram of a file processing device provided by an embodiment of the present application.
  • a file processing device which may include:
  • the first receiving module 410 is configured to receive a user's first input to the floating control on the first application program icon, the floating control indicating the target file;
  • the file opening module 420 is configured to move the floating control to the icon of the second application program in response to the first input, and open the target file through the second application program.
  • the file processing device provided in the embodiment of the present application receives the user's first input on the floating control, moves the floating control to the icon of the second application program in response to the first input, and opens the said floating control through the second application program.
  • the target file simplifies the file sharing process, so that the file sharing can be completed conveniently and quickly, and the user operation experience is improved.
  • the file opening module 420 is specifically used for:
  • the file opening module 420 is specifically used for:
  • the floating control In response to the second input, the floating control is moved to the icon of the target second application program, and the processing page of the target file is opened through the target second application program.
  • the file processing device further includes:
  • a file operation module (not shown in the figure), configured to receive a third input from the user on the floating control;
  • the file operation control is used to perform at least one of the following on the target file corresponding to the suspension control:
  • the file processing device further includes:
  • a second receiving module (not shown in the figure), configured to receive a user's fourth input to the floating control
  • a first display module (not shown in the figure), configured to display the floating control in a preset area in response to the fourth input.
  • the file processing device further includes:
  • An adjustment module (not shown in the figure) is configured to adjust the display position of the floating control according to the gravity sensing information.
  • the file processing device further includes:
  • the third receiving module (not shown in the figure), is used for receiving the fifth input of the user to the target file in the first application program;
  • the second display module (not shown in the figure) is configured to display a floating control corresponding to the target file on the first application program icon in response to the fifth input.
  • the file processing device further includes:
  • a fourth receiving module (not shown in the figure), configured to receive a sixth input from the user on the floating control on the second application program icon;
  • a moving module (not shown in the figure), configured to move the floating control to the third application icon in response to the sixth input, and open the target file through the third application.
  • the file processing apparatus 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 this 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 shown in FIG. 1 to FIG. 3 , and details are not repeated here to avoid repetition.
  • the embodiment of the present application further provides an electronic device 500, including a processor 501, a memory 502, and programs or instructions stored in the memory 502 and operable on the processor 501,
  • an electronic device 500 including a processor 501, a memory 502, and programs or instructions stored in the memory 502 and operable on the processor 501,
  • the program or instruction is executed by the processor 501, the various processes of the above-mentioned file processing method embodiment can be realized, 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. 6 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
  • the electronic device 600 includes but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, and a processor 610, etc. part.
  • the electronic device 600 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 610 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. 6 does not constitute a limitation to the electronic device, and the electronic device may include more or fewer components than shown in the figure, or combine some components, or arrange different components, which will not be repeated here. .
  • the processor 610 is configured to receive a user's first input to the floating control on the first application program icon, the floating control indicating the target file;
  • the electronic device receives the user's first input on the floating control, moves the floating control to the second application program icon in response to the first input, and opens the target through the second application program. files, thereby simplifying the file sharing process, so that the file sharing can be completed conveniently and quickly, and the user operation experience is improved.
  • processor 610 is further configured to move the floating control to the second application program icon in response to the first input;
  • the processor 610 is further configured to, in response to the first input, display icons of all second application programs that support the file type corresponding to the target file;
  • the floating control In response to the second input, the floating control is moved to the icon of the target second application program, and the processing page of the target file is opened through the target second application program.
  • the processor 610 is further configured to receive a third input from the user on the floating control;
  • the file operation control is used to perform at least one of the following on the target file corresponding to the suspension control:
  • the processor 610 is further configured to receive a fourth user input on the floating control
  • the floating control In response to the fourth input, the floating control is displayed in a preset area.
  • the processor 610 is further configured to adjust the display position of the floating control according to the gravity sensing information.
  • the processor 610 is further configured to receive a fifth input from the user on the target file in the first application program;
  • a floating control corresponding to the target file is displayed on the first application program icon.
  • the processor 610 is further configured to receive a sixth input from the user on the floating control on the second application program icon;
  • the input unit 604 may include a graphics processor (Graphics Processing Unit, GPU) 6041 and a microphone 6042, and the graphics processor 6041 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 606 may include a display panel 6061, and the display panel 6061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the user input unit 607 includes a touch panel 6071 and other input devices 6072 .
  • the touch panel 6071 is also called a touch screen.
  • the touch panel 6071 may include two parts, a touch detection device and a touch controller.
  • Other input devices 6072 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.
  • Memory 609 may be used to store software programs as well as various data, including but not limited to application programs and operating systems.
  • the processor 610 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 610 .
  • 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 embodiment of the file processing method is realized, and can achieve the same To avoid repetition, the technical effects will not be repeated here.
  • 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, and the processor is used to run programs or instructions to implement the above-mentioned file processing method embodiment
  • 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 to implement the above-mentioned file processing method embodiment
  • 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 that includes 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.

Abstract

本申请公开了一种文件处理方法及装置,属于通信技术领域。该方法包括:接收用户对第一应用程序图标上的悬浮控件的第一输入,所述悬浮控件指示目标文件;响应于所述第一输入,将所述悬浮控件移动至第二应用程序图标上,并通过第二应用程序打开所述目标文件

Description

文件处理方法及装置
相关申请的交叉引用
本申请要求于2021年09月24日提交的申请号为202111122063.0,发明名称为“文件处理方法及装置”的中国专利申请的优先权,其通过引用方式全部并入本申请。
技术领域
本申请属于通信技术领域,具体涉及一种文件处理方法及装置。
背景技术
电子设备上文件分享存在较大限制。例如:在A应用不支持分享文件至B应用的情况下,A应用通常先将目标文件保存在某个路径,再从文件管理器中找到目标文件,进而使用B应用打开目标文件。上述文件分享过程受限于文件所属的初始应用程序,并且文件分享过程被割裂,使得文件分享过程变得繁琐。
发明内容
本申请实施例的目的是提供一种文件处理方法及装置,能够解决文件分享过程繁琐的问题。
第一方面,本申请实施例提供了一种文件处理方法,该方法包括:
接收用户对第一应用程序图标上的悬浮控件的第一输入,所述悬浮控件指示目标文件;
响应于所述第一输入,将所述悬浮控件移动至第二应用程序图标上,并通过第二应用程序打开所述目标文件。
第二方面,本申请实施例提供了一种文件处理装置,该装置包括:
第一接收模块,用于接收用户对第一应用程序图标上的悬浮控件的第一输入,所述悬浮控件指示目标文件;
文件打开模块,用于响应于所述第一输入,将所述悬浮控件移动至第二应用程序图标上,并通过第二应用程序打开所述目标文件。
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。
在本申请实施例中,通过接收对第一应用程序中的目标文件的第一输入,响应于第一输入,在第一应用程序图标上显示与目标文件对应的悬浮控件,可以简化用户对目标文件的操作;并通过接收用户对悬浮控件的第二输入,响应于第二输入,在目标文件对应的文件类型属于第二应用程序支持的文件类型的情况下,在第二应用程序图标上显示悬浮控件,由此简化了文件分享过程,从而可以方便快捷的完成文件分享,提高了用户操作体验。
附图说明
图1是本申请实施例提供的文件处理方法的流程示意图;
图2是本申请实施例提供的文件处理方法的操作页面示意图之一;
图3是本申请实施例提供的文件处理方法的操作页面示意图之二;
图4是本申请实施例提供的文件处理装置的结构示意图;
图5是实现本申请实施例提供的电子设备的结构示意图;
图6是实现本申请实施例的一种电子设备的硬件结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的文件处理方法及装置进行详细地说明。
图1是本申请实施例提供的文件处理方法的流程示意图。参照图1,本申请实施例提供一种文件处理方法,可以包括:
步骤110、接收用户对第一应用程序图标上的悬浮控件的第一输入,所述悬浮控件指示目标文件;
步骤120、响应于所述第一输入,将所述悬浮控件移动至第二应用程序图标上,并通过第二应用程序打开所述目标文件。
需要说明的是,本申请实施例提供的文件处理方法的执行主体可以是智能电子设备,例如手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等。
下面以手机作为执行主体实现本申请实施例提供的文件处理方法为例,详细说明本申请的技术方案。
可选地,在步骤110中,目标文件可以包括文本文档、图片、视频、音频和压缩包等各种类型的文件,还可以包括网页链接或小程序等,本申请对目标文件的类型不作具体限定。悬浮控件可以通过与目标文件的存储地址的关联关系来指示目标文件。
可选地,第一输入可以是按压悬浮控件的操作,也可以是移动悬浮控件的操作。用户可以通过第一输入将悬浮控件的位置调整至手机桌面的任意位置上。当第一输入是按压操作时,可以显示第二应用程序图标列表以供用户选择,并基于用户选择,确定目标第二应用程序;当第一输入是移动操作时,用户可以根据需求将悬浮控件从第一应用程序图标上向第二应用程序图标移动,本申请对悬浮控件的移动方式和移动轨迹不作具体限定。
可选地,在步骤120中,响应于第一输入,悬浮控件从第一应用图标上移动至第二应用图标上。悬浮控件可以是从第一应用图标的角标位置移动至第二应用图标的角标位置上。在悬浮控件位于第二应用图标上的情况下,可以直接通过第二应用程序打开目标文件。
本申请实施例提供的文件处理方法,通过接收用户对悬浮控件的第一输入,响应于第一输入,将所述悬浮控件移动至第二应用程序图标上,并通过第二应用程序打开所述目标文件,由此简化了文件分享过程,从而可以方便快捷的完成文件分享,提高了用户操作体验。
在一个实施例中,所述响应于所述第一输入,将所述悬浮控件移动至第二应用程序图标上,并通过第二应用程序打开所述目标文件,包括:
响应于所述第一输入,将所述悬浮控件移动至第二应用程序图标上;
在所述目标文件对应的文件类型属于第二应用程序支持的文件类型的情况下,在第二应用程序图标上显示所述悬浮控件,并通过所述第二应用程序打开所述目标文件的处理页面。
可选地,应用程序支持的文件类型指的是应用程序能够运行的文件对应的文件类型。例如:音频软件支持的文件类型可以包括各种音频文件,视频软件支持的文件类型可以包括各种视频文件和音频文件;文档阅读软件支持的 文件类型可以包括各种格式文档文件,例如:文本TXT格式。响应于用户对悬浮控件的第一输入,在用户选择的第二应用程序支持目标文件的文件类型的情况下,即在第二应用程序能够运行目标文件的情况下,悬浮控件可以显示在第二应用程序图标上。例如:悬浮控件可以显示在第二应用程序图标的角标位置。第二应用程序可以直接打开目标文件,并显示目标文件的处理页面。用户可以根据需求在处理页面进行相应的处理。目标文件的处理页面可以是编辑目标文件的页面,也可以是预览目标文件的页面,本申请不作具体限定。
可选地,在所述目标文件对应的文件类型不属于所述第二应用程序支持的文件类型的情况下,将所述悬浮控件移动至所述第一应用程序图标上。
可选地,响应用户对悬浮控件的第二输入,当第二输入是按压操作时,可以显示第二应用程序图标列表以供用户选择,并基于用户选择,确定目标第二应用程序;当第二输入是移动操作时,用户可以根据需求将悬浮控件从第一应用程序图标上向第二应用程序图标移动,本申请对悬浮控件的移动方式和移动轨迹不作具体限定。在用户选择的第二应用程序不支持目标文件的文件类型的情况下,即在第二应用程序不能运行目标文件的情况下,悬浮控件将自动返回至第一应用程序图标上。
本申请实施例提供的文件处理方法,通过响应用户对悬浮控件的第一输入,在目标文件对应的文件类型属于第二应用程序支持的文件类型的情况下,可以快速识别支持运行目标文件的第二应用程序,从而便于用户通过悬浮控件确定支持目标文件运行的应用程序,以减少由于第一应用程序限制导致文件无法跨应用程序分享的情况。
在一个实施例中,所述响应于所述第一输入,将所述悬浮控件移动至第二应用程序图标上,并通过第二应用程序打开所述目标文件,包括:
响应于所述第一输入,显示所有支持所述目标文件对应的文件类型的第二应用程序图标;
接收用户从所述第二应用程序图标中选择目标第二应用程序图标的第二输入;
响应于所述第二输入,将所述悬浮控件移动至所述目标第二应用程序图标上,并通过目标第二应用程序打开所述目标文件的处理页面。
可选地,响应于用户对悬浮控件的第一输入,当第一输入是按压操作或移动操作时,手机桌面会在当前页面显示支持目标文件类型的第二应用程序图标,可以是在当前页面突出显示支持目标文件类型的第二应用程序图标,也可以是在当前页面只显示支持目标文件类型的第二应用程序图标等,本申请不作具体限定。其中,突出显示第二应用程序图标有如下方式:
方式一、对所有支持目标文件类型的第二应用程序图标进行放大显示操作,且其余应用程序图标的大小保持不变,则显示放大后的第二应用程序图标。
方式二、对所有支持目标文件类型的第二应用程序图标进行高亮显示操作,且其余应用程序图标的亮度保持不变,则显示高亮显示后的第二应用程序图标。如图2所示,“可支持高亮”的应用图标表示可支持目标文件运行的应用图标。
方式三、对所有支持目标文件类型的第二应用程序图标进行高亮显示操作,且降低其余应用程序图标的亮度,例如对其余应用程序图标进行灰度显示操作,则显示高亮显示后的第二应用程序图标和降低亮度后的其余应用程序图标。如图2所示,“可支持高亮”的应用图标表示可支持目标文件运行的应用图标可以高亮度显示。“不支持低亮”的应用图标表示不支持目标文件运行的应用图标可以低亮度显示。
方式四、对所有支持目标文件类型的第二应用程序图标进行动画显示操作,且其余应用程序图标不进行动画显示。例如设计第二应用程序图标的抖动效果,以提示用户当前第二应用程序图标支持目标文件的文件类型,则可以显示具有动画效果的第二应用程序图标。
方式五、如图2所示,在手机桌面设置快捷栏区域,快捷栏中可以设置支持目标文件类型的第二应用程序图标或系统默认的文件编辑器。响应于用户对悬浮控件的第一输入,用户在移动悬浮控件时可以显示快捷栏区域,则用户可以直接在快捷栏中选择目标第二应用程序或系统默认的文件编辑器。
可选地,手机突出显示所有支持目标文件类型的第二应用程序图标,同时会标识出第一应用程序图标,即目标文件的来源应用程序。
可选地,用户通过第二输入从突出显示的第二应用程序图标中选择目标第二应用程序图标。第二输入可以是将悬浮控件移动至目标第二应用程序图标上的松手操作,也可以是将悬浮控件移动至目标第二应用程序图标上的按压操作,本申请不作具体限定。在手机检测到用户已确定目标第二应用程序图标的情况下,将自动打开该目标第二应用程序中目标文件的处理页面。目标文件的处理页面可以是编辑目标文件的页面,也可以是预览目标文件的页面,本申请不作具体限定。
本申请实施例提供的文件处理方法,通过响应于第一输入,突出显示所有支持目标文件对应的文件类型的第二应用程序图标,便于用户快速选择目标第二应用程序;在用户从第二应用程序图标中选择目标第二应用程序图标的情况下,在目标第二应用程序图标上显示悬浮控件,并打开所述目标文件的处理页面,从而提高文件分享的成功率。
在一个实施例中,所述文件处理方法还包括:
接收用户对所述悬浮控件的第三输入;
响应于所述第三输入,将所述悬浮控件移动至文件操作控件中;
其中,所述文件操作控件用于对所述悬浮控件对应的目标文件执行以下至少一项:
删除目标文件、还原目标文件、移动目标文件、合并目标文件、编辑目标文件、排列目标文件。
可选地,第三输入可以是用户按压悬浮控件的操作,也可以是移动悬浮控件的操作。用户可以通过对悬浮控件的第三输入选择文件操作控件,即将悬浮控件移动至文件操作控件中。用户可以基于文件操作控件对目标文件执行相应的文件操作。
可选地,文件操作控件可以是文件管理器,例如可以是回收站或文件夹,回收站保存的是临时删除的目标文件,文件夹保存的是待处理的目标文件。文 件操作控件中的目标文件均以悬浮控件的形式存储。文件操作控件可以对整个文件操作控件或者对文件操作控件中的悬浮控件执行相应的文件处理操作,以实现对目标文件的文件处理。
可选地,文件处理操作可以包括对目标文件进行的删除操作、还原操作、移动操作、合并操作、编辑操作、排列操作。删除操作可以是删除单个目标文件或批量删除目标文件,也可以是对文件操作控件进行整体删除;还原操作可以是将删除的目标文件还原至默认存储路径或者是删除时所处的存储路径中,也可以是将待处理目标文件直接还原至默认存储路径或是预设存储路径中,还原操作后的悬浮控件可以在文件操作控件上显示,也可以在还原的存储路径对应的应用程序图标上显示;移动操作可以是移动整个文件操作控件以使所有目标文件对应的悬浮控件整体移动,也可以是移动单个或多个悬浮控件,以实现移动单个目标文件或批量移动目标文件,即可以实现批量文件的分享过程;合并操作可以是将多个悬浮控件合并以使多个目标文件实现合并;编辑操作可以是对悬浮控件对应的目标文件进行编辑处理;排列操作可以是在用户打开文件操作控件后,对文件操作控件中保存的悬浮控件进行排列的操作。文件操作控件中的悬浮控件可以按照预设排列方式排列,例如可以为图标形式或列表形式。则有文件操作控件展开后可以显示按照预设排列顺序排列的悬浮控件图标,也可以显示按照文件属性信息排列的文件列表。文件属性信息可以包括文件名、文件类型、文件大小、文件创建日期等。
本申请实施例提供的文件处理方法,通过文件操作控件对悬浮控件对应的目标文件执行文件操作,可以实现对目标文件整体管理,还可以实现批量传输目标文件,提高了文件处理的效率。
在一个实施例中,所述文件处理方法还包括:
接收用户对所述悬浮控件的第四输入;
响应于所述第四输入,在预设区域中显示所述悬浮控件。
可选地,第四输入可以是用户移动悬浮控件的操作,并且是将悬浮控件移动至手机桌面的空白区域处。在上述情况下,手机将默认用户暂时没有选择应 用程序运行目标文件,则悬浮控件将会自动移动至预设区域中。预设区域可以是手机桌面顶部状态栏区域和/或手机桌面顶部状态栏区域与桌面上第一排应用程序图标之间的空白区域,也可以是其他可显示区域。用户可以对预设区域中的任意悬浮控件进行移动。例如:预设区域为图2中的顶部悬浮暂存区,即顶部状态栏区域与桌面上第一排应用程序图标之间的空白区域。
本申请实施例提供的文件处理方法,通过设置预设区域,可以提高悬浮控件的使用便捷性,提高了用户体验。
在一个实施例中,所述文件处理方法还包括:
根据重力感应信息,调整所述悬浮控件的显示位置。
可选地,手机可以根据重力感应信息,对预设区域中的悬空控件进行位置调整。例如:手机由竖屏变为横屏状态,则悬浮控件将移动至手机横屏时的手机桌面的顶部区域。
本申请实施例提供的文件处理方法,通过重力感应信息调整悬浮控件的显示位置,可以提升文件处理的交互性和趣味性。
在一个实施例中,所述文件处理方法,还包括:
接收用户对第一应用程序中的目标文件的第五输入;
响应于所述第五输入,在第一应用程序图标上显示与所述目标文件对应的悬浮控件。
可选地,目标文件可以包括文本文档、图片、视频、音频和压缩包等各种类型的文件,还可以包括网页链接或小程序等,本申请对目标文件的类型不作具体限定。第五输入可以是对目标文件的按压操作、点击操作或者是按照预设轨迹对目标文件进行触控的操作,本申请对第五输入的操作形式不作具体限定。
可选地,响应于用户对目标文件的第五输入,生成与目标文件对应的悬浮控件,并显示在第一应用程序图标上,例如:悬浮控件可以在第一应用程序图标的角标位置进行显示。其中,悬浮控件可以是任意形状,例如可以为圆形。本申请对悬浮控件的表现形式不作具体限定。悬浮控件可以与目标文件建立 关联关系,即可以将悬浮控件与目标文件的存储路径进行关联,且生成悬浮控件后,不会对目标文件的存储路径和内容进行变更。悬浮控件也不会干扰到手机上应用程序图标的排列和使用。
可选地,生成悬浮控件之前,可以生成“生成悬浮控件”的选择控件,该选择控件用于选择是否生成与目标文件对应的悬浮控件。接收到用户确认生成悬浮控件的操作后,在第一应用程序图标上显示与目标文件对应的悬浮控件;还可以根据不同类型的文件对悬浮控件的属性参数进行自定义设置。例如可以设置悬浮控件的形状、大小、颜色或透明度等。在用户不进行自定义设置的情况下,悬浮控件可以采用默认设置。
本申请实施例提供的文件处理方法,通过接收对第一应用程序中的目标文件的第五输入,响应于第五输入,在第一应用程序图标上显示与目标文件对应的悬浮控件,可以简化用户对目标文件的操作。
在一个实施例中,在所述悬浮控件移动至所述第二应用程序图标上之后,还包括:
接收用户对所述第二应用程序图标上的悬浮控件的第六输入;
响应于所述第六输入,将所述悬浮控件移动至第三应用程序图标上,并通过第三应用程序打开所述目标文件。
可选地,在悬浮控件移动至第二应用程序图标上之后,由于可能存在用户移动错误或误操作等情况,使得用户需要将悬浮控件从第二应用程序图标上移动至其他应用程序图标上,则此时可以再次移动悬浮控件。
可选地,第六输入可以是按压悬浮控件的操作,也可以是移动悬浮控件的操作。用户可以通过第六输入将悬浮控件的位置调整至手机桌面的任意位置上。当第六输入是按压操作时,可以显示第三应用程序图标列表以供用户选择,并基于用户选择,确定目标第三应用程序;当第六输入是移动操作时,用户可以根据需求将悬浮控件从第二应用程序图标上向第三应用程序图标移动,本申请对悬浮控件的移动方式和移动轨迹不作具体限定。
可选地,响应于第六输入,悬浮控件从第二应用图标上移动至第三应用图 标上。悬浮控件可以是从第二应用图标的角标位置移动至第三应用图标的角标位置上。在悬浮控件位于第三应用图标上的情况下,可以直接通过第三应用程序打开目标文件。
本申请实施例提供的文件处理方法,通过在所述悬浮控件移动至第二应用程序图标上之后,将悬浮控件从第二应用程序图标上移动至第三应用图像上,提高了悬浮控件的使用灵活性。
在一个实施例中,本申请实施例提供的文件处理方法的操作步骤可以包括:
1、用户通过手机中的第一应用程序中打开目标文件;
2、用户长按该目标文件,弹出“生成悬浮控件”的选择控件,并点击确认。
3、当用户退回桌面时,第一应用程序图标上将显示有悬浮控件。如图2所示,悬浮控件可以移动至任意第二应用程序图标上或文件操作控件中,也可以是快捷栏区域中的第二应用程序图标上,还可以是顶部暂存悬浮区。
4、若悬浮控件被移动到的第二应用程序支持目标文件类型,则悬浮控件可以显示在第二应用程序图标上,则直接打开并显示目标文件的处理页面。
5、若悬浮控件被移动到的第二应用程序不支持目标文件类型,则悬浮控件自动返回至第一应用程序图标上。
6、若悬浮控件被移动到文件操作控件中,用户可以打开文件操作控件,并按照预设排列方式预览文件操作控件中的悬浮控件。如图3所示,文件操作控件可以以文件夹形式来管理悬浮控件。图3中“文件操作控件折叠”表示文件操作控件未被点开前,将以文件夹的形式显示在桌面上,此时文件操作控件中的悬浮控件呈现折叠状态。“文件操作控件展开”表示点开文件夹后可以以列表形式或图标形式预览悬浮控件或文件信息。
在一个实施例中,悬浮控件以“气泡”或“气球”的形式来指示目标文件。以“气泡”为例,则根据目标文件可以生成对应的“文件气泡”。“文件气泡”可以在手机桌面上进行任意移动。当“文件气泡”移动至支持目标文件运行的 目标应用程序图标上,则目标应用程序可以自动打开目标文件的处理页面。当“文件气泡”移动至不支持目标文件运行的目标应用程序图标上,“文件气泡”将自动飘回上一个打开过目标文件的应用程序图标上。
可选地,在用户移动“文件气泡”的过程中,没有确定目标应用程序图标的情况下,“文件气泡”可以悬浮在预设暂存区域。例如:预设暂存区域为桌面顶部状态栏和第一排应用程序图标之间的空白区域,则用户可以在移动“文件气泡”的过程中,把“文件气泡”拖到桌面上任意空白区域中松手,此时“文件气泡”将会自动上浮至桌面顶部状态栏和第一排应用程序图标之间的空白区域。
可选地,在用户移动“文件气泡”的过程中,手机桌面可以高亮显示支持目标文件运行的应用程序图标,同时会标识出生成“文件气泡”的初始应用程序图标。
可选地,手机桌面可以设置类似于“文件垃圾桶”或“回收站”的应用图标。以回收站为例,“文件气泡”被移动至回收站应用图标上,则目标文件将被自动列入回收站目录下,表示目标文件被临时删除。在用户选择恢复目标文件的情况下,目标文件对应的“文件气泡”将重新悬浮在回收站应用图标上。
需要说明的是,本申请实施例提供的文件处理方法,执行主体可以为文件处理装置,或者该文件处理装置中的用于执行文件处理的方法的控制模块。本申请实施例中以文件处理装置执行文件处理的方法为例,说明本申请实施例提供的文件处理装置。
图4是本申请实施例提供的文件处理装置的结构示意图。参照图4,本申请实施例提供一种文件处理装置,可以包括:
第一接收模块410,用于接收用户对第一应用程序图标上的悬浮控件的第一输入,所述悬浮控件指示目标文件;
文件打开模块420,用于响应于所述第一输入,将所述悬浮控件移动至第二应用程序图标上,并通过第二应用程序打开所述目标文件。
本申请实施例提供的文件处理装置,通过接收用户对悬浮控件的第一输 入,响应于第一输入,将所述悬浮控件移动至第二应用程序图标上,并通过第二应用程序打开所述目标文件,由此简化了文件分享过程,从而可以方便快捷的完成文件分享,提高了用户操作体验。
在一个实施例中,所述文件打开模块420具体用于:
响应于所述第一输入,将所述悬浮控件移动至第二应用程序图标上;
在所述目标文件对应的文件类型属于第二应用程序支持的文件类型的情况下,在第二应用程序图标上显示所述悬浮控件,并通过所述第二应用程序打开所述目标文件的处理页面。
在一个实施例中,所述文件打开模块420具体用于:
响应于所述第一输入,显示所有支持所述目标文件对应的文件类型的第二应用程序图标;
接收用户从所述第二应用程序图标中选择目标第二应用程序图标的第二输入;
响应于所述第二输入,将所述悬浮控件移动至所述目标第二应用程序图标上,并通过目标第二应用程序打开所述目标文件的处理页面。
在一个实施例中,所述文件处理装置还包括:
文件操作模块(图中未示出),用于接收用户对所述悬浮控件的第三输入;
响应于所述第三输入,将所述悬浮控件移动至文件操作控件中;
其中,所述文件操作控件用于对所述悬浮控件对应的目标文件执行以下至少一项:
删除目标文件、还原目标文件、移动目标文件、合并目标文件、编辑目标文件、排列目标文件。
在一个实施例中,所述文件处理装置还包括:
第二接收模块(图中未示出),用于接收用户对所述悬浮控件的第四输入;
第一显示模块(图中未示出),用于响应于所述第四输入,在预设区域中显示所述悬浮控件。
在一个实施例中,所述文件处理装置还包括:
调整模块(图中未示出),用于根据重力感应信息,调整所述悬浮控件的显示位置。
在一个实施例中,所述文件处理装置还包括:
第三接收模块(图中未示出),用于接收用户对第一应用程序中的目标文件的第五输入;
第二显示模块(图中未示出),用于响应于所述第五输入,在第一应用程序图标上显示与所述目标文件对应的悬浮控件。
在一个实施例中,所述文件处理装置还包括:
第四接收模块(图中未示出),用于接收用户对所述第二应用程序图标上的悬浮控件的第六输入;
移动模块(图中未示出),用于响应于所述第六输入,将所述悬浮控件移动至第三应用程序图标上,并通过第三应用程序打开所述目标文件。
本申请实施例中的文件处理装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。
本申请实施例中的文件处理装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。
本申请实施例提供的文件处理装置能够实现图1至图3的方法实施例实现的各个过程,为避免重复,这里不再赘述。
可选地,如图5所示,本申请实施例还提供一种电子设备500,包括处理器501,存储器502,存储在存储器502上并可在所述处理器501上运行的程 序或指令,该程序或指令被处理器501执行时实现上述文件处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。
图6为实现本申请实施例的一种电子设备的硬件结构示意图。
该电子设备600包括但不限于:射频单元601、网络模块602、音频输出单元603、输入单元604、传感器605、显示单元606、用户输入单元607、接口单元608、存储器609、以及处理器610等部件。
本领域技术人员可以理解,电子设备600还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器610逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图6中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。
其中,处理器610,用于接收用户对第一应用程序图标上的悬浮控件的第一输入,所述悬浮控件指示目标文件;
响应于所述第一输入,将所述悬浮控件移动至第二应用程序图标上,并通过第二应用程序打开所述目标文件。
本申请实施例提供的电子设备,通过接收用户对悬浮控件的第一输入,响应于第一输入,将所述悬浮控件移动至第二应用程序图标上,并通过第二应用程序打开所述目标文件,由此简化了文件分享过程,从而可以方便快捷的完成文件分享,提高了用户操作体验。
可选地,处理器610,还用于响应于所述第一输入,将所述悬浮控件移动至第二应用程序图标上;
在所述目标文件对应的文件类型属于第二应用程序支持的文件类型的情况下,在第二应用程序图标上显示所述悬浮控件,并通过所述第二应用程序打开所述目标文件的处理页面。
可选地,处理器610,还用于响应于所述第一输入,显示所有支持所述目 标文件对应的文件类型的第二应用程序图标;
接收用户从所述第二应用程序图标中选择目标第二应用程序图标的第二输入;
响应于所述第二输入,将所述悬浮控件移动至所述目标第二应用程序图标上,并通过目标第二应用程序打开所述目标文件的处理页面。
可选地,处理器610,还用于接收用户对所述悬浮控件的第三输入;
响应于所述第三输入,将所述悬浮控件移动至文件操作控件中;
其中,所述文件操作控件用于对所述悬浮控件对应的目标文件执行以下至少一项:
删除目标文件、还原目标文件、移动目标文件、合并目标文件、编辑目标文件、排列目标文件。
可选地,处理器610,还用于接收用户对所述悬浮控件的第四输入;
响应于所述第四输入,在预设区域中显示所述悬浮控件。
可选地,处理器610,还用于根据重力感应信息,调整所述悬浮控件的显示位置。
可选地,处理器610,还用于接收用户对第一应用程序中的目标文件的第五输入;
响应于所述第五输入,在第一应用程序图标上显示与所述目标文件对应的悬浮控件。
可选地,处理器610,还用于接收用户对所述第二应用程序图标上的悬浮控件的第六输入;
响应于所述第六输入,将所述悬浮控件移动至第三应用程序图标上,并通过第三应用程序打开所述目标文件。
应理解的是,本申请实施例中,输入单元604可以包括图形处理器(Graphics Processing Unit,GPU)6041和麦克风6042,图形处理器6041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元606可包括显示面板6061,可以采 用液晶显示器、有机发光二极管等形式来配置显示面板6061。用户输入单元607包括触控面板6071以及其他输入设备6072。触控面板6071,也称为触摸屏。触控面板6071可包括触摸检测装置和触摸控制器两个部分。其他输入设备6072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器609可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器610可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器610中。
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述文件处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述文件处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物 品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。

Claims (21)

  1. 一种文件处理方法,包括:
    接收用户对第一应用程序图标上的悬浮控件的第一输入,所述悬浮控件指示目标文件;
    响应于所述第一输入,将所述悬浮控件移动至第二应用程序图标上,并通过第二应用程序打开所述目标文件。
  2. 根据权利要求1所述的文件处理方法,其中,所述响应于所述第一输入,将所述悬浮控件移动至第二应用程序图标上,并通过第二应用程序打开所述目标文件,包括:
    响应于所述第一输入,将所述悬浮控件移动至第二应用程序图标上;
    在所述目标文件对应的文件类型属于第二应用程序支持的文件类型的情况下,在第二应用程序图标上显示所述悬浮控件,并通过所述第二应用程序打开所述目标文件的处理页面。
  3. 根据权利要求2所述的文件处理方法,其中,所述响应于所述第一输入,将所述悬浮控件移动至第二应用程序图标上,并通过第二应用程序打开所述目标文件,包括:
    响应于所述第一输入,显示支持所述目标文件对应的文件类型的第二应用程序图标;
    接收用户从所述第二应用程序图标中选择目标第二应用程序图标的第二输入;
    响应于所述第二输入,将所述悬浮控件移动至所述目标第二应用程序图标上,并通过目标第二应用程序打开所述目标文件的处理页面。
  4. 根据权利要求1所述的文件处理方法,还包括:
    接收用户对所述悬浮控件的第三输入;
    响应于所述第三输入,将所述悬浮控件移动至文件操作控件中;
    其中,所述文件操作控件用于对所述悬浮控件对应的目标文件执行以下 至少一项:
    删除目标文件、还原目标文件、移动目标文件、合并目标文件、编辑目标文件、排列目标文件。
  5. 根据权利要求1所述的文件处理方法,还包括:
    接收用户对所述悬浮控件的第四输入;
    响应于所述第四输入,在预设区域中显示所述悬浮控件。
  6. 根据权利要求5所述的文件处理方法,还包括:
    根据重力感应信息,调整所述悬浮控件的显示位置。
  7. 根据权利要求1-6任一项所述的文件处理方法,还包括:
    接收用户对第一应用程序中的目标文件的第五输入;
    响应于所述第五输入,在第一应用程序图标上显示与所述目标文件对应的悬浮控件。
  8. 根据权利要求1所述的文件处理方法,其中,在所述悬浮控件移动至所述第二应用程序图标上之后,还包括:
    接收用户对所述第二应用程序图标上的悬浮控件的第六输入;
    响应于所述第六输入,将所述悬浮控件移动至第三应用程序图标上,并通过第三应用程序打开所述目标文件。
  9. 一种文件处理装置,包括:
    第一接收模块,用于接收用户对第一应用程序图标上的悬浮控件的第一输入,所述悬浮控件指示目标文件;
    文件打开模块,用于响应于所述第一输入,将所述悬浮控件移动至第二应用程序图标上,并通过第二应用程序打开所述目标文件。
  10. 根据权利要求9所述的文件处理装置,其中,所述文件打开模块具体用于:
    响应于所述第一输入,将所述悬浮控件移动至第二应用程序图标上;
    在所述目标文件对应的文件类型属于第二应用程序支持的文件类型的情况下,在第二应用程序图标上显示所述悬浮控件,并通过所述第二应用程序打 开所述目标文件的处理页面。
  11. 根据权利要求10所述的文件处理装置,其中,所述文件打开模块具体用于:
    响应于所述第一输入,显示支持所述目标文件对应的文件类型的第二应用程序图标;
    接收用户从所述第二应用程序图标中选择目标第二应用程序图标的第二输入;
    响应于所述第二输入,将所述悬浮控件移动至所述目标第二应用程序图标上,并通过目标第二应用程序打开所述目标文件的处理页面。
  12. 根据权利要求9所述的文件处理装置,还包括文件操作模块,所述文件操作模块用于:
    接收用户对所述悬浮控件的第三输入;
    响应于所述第三输入,将所述悬浮控件移动至文件操作控件中;
    其中,所述文件操作控件用于对所述悬浮控件对应的目标文件执行以下至少一项:
    删除目标文件、还原目标文件、移动目标文件、合并目标文件、编辑目标文件、排列目标文件。
  13. 根据权利要求9所述的文件处理装置,还包括:
    第二接收模块,用于接收用户对所述悬浮控件的第四输入;
    第一显示模块,用于响应于所述第四输入,在预设区域中显示所述悬浮控件。
  14. 根据权利要求13所述的文件处理装置,还包括调整模块,所述调整模块用于:
    根据重力感应信息,调整所述悬浮控件的显示位置。
  15. 根据权利要求9-14任一项所述的文件处理装置,还包括:
    第三接收模块,用于接收用户对第一应用程序中的目标文件的第五输入;
    第二显示模块,用于响应于所述第五输入,在第一应用程序图标上显示与 所述目标文件对应的悬浮控件。
  16. 根据权利要求9所述的文件处理装置,还包括:
    第四接收模块,用于接收用户对所述第二应用程序图标上的悬浮控件的第六输入;
    移动模块,用于响应于所述第六输入,将所述悬浮控件移动至第三应用程序图标上,并通过第三应用程序打开所述目标文件。
  17. 一种电子设备,包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1-8任一项所述的文件处理方法的步骤。
  18. 一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1-8任一项所述的文件处理方法的步骤。
  19. 一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1-8任一项所述的文件处理方法的步骤。
  20. 一种计算机程序产品,所述程序产品被存储在非易失的存储介质中,所述程序产品被至少一个处理器执行以实现如权利要求1-8任一项所述的文件处理方法的步骤。
  21. 一种文件处理设备,所述设备用于执行如权利要求1-8任一项所述的文件处理方法的步骤。
PCT/CN2022/120845 2021-09-24 2022-09-23 文件处理方法及装置 WO2023046068A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111122063.0 2021-09-24
CN202111122063.0A CN113805757A (zh) 2021-09-24 2021-09-24 文件处理方法及装置

Publications (1)

Publication Number Publication Date
WO2023046068A1 true WO2023046068A1 (zh) 2023-03-30

Family

ID=78896733

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/120845 WO2023046068A1 (zh) 2021-09-24 2022-09-23 文件处理方法及装置

Country Status (2)

Country Link
CN (1) CN113805757A (zh)
WO (1) WO2023046068A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113805757A (zh) * 2021-09-24 2021-12-17 维沃移动通信有限公司 文件处理方法及装置
CN116841959A (zh) * 2023-09-01 2023-10-03 统信软件技术有限公司 在应用中访问文件目录的方法、计算设备及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103593180A (zh) * 2013-09-29 2014-02-19 宇龙计算机通信科技(深圳)有限公司 一种在应用程序中添加文件的方法和装置
CN107590006A (zh) * 2017-09-05 2018-01-16 广东欧珀移动通信有限公司 文件处理方法、装置及移动终端
CN111858522A (zh) * 2020-08-06 2020-10-30 Oppo广东移动通信有限公司 文件分享方法、装置、终端及存储介质
CN113055525A (zh) * 2021-03-30 2021-06-29 维沃移动通信有限公司 文件分享方法、装置、设备和存储介质
CN113805757A (zh) * 2021-09-24 2021-12-17 维沃移动通信有限公司 文件处理方法及装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103593180A (zh) * 2013-09-29 2014-02-19 宇龙计算机通信科技(深圳)有限公司 一种在应用程序中添加文件的方法和装置
CN107590006A (zh) * 2017-09-05 2018-01-16 广东欧珀移动通信有限公司 文件处理方法、装置及移动终端
CN111858522A (zh) * 2020-08-06 2020-10-30 Oppo广东移动通信有限公司 文件分享方法、装置、终端及存储介质
CN113055525A (zh) * 2021-03-30 2021-06-29 维沃移动通信有限公司 文件分享方法、装置、设备和存储介质
CN113805757A (zh) * 2021-09-24 2021-12-17 维沃移动通信有限公司 文件处理方法及装置

Also Published As

Publication number Publication date
CN113805757A (zh) 2021-12-17

Similar Documents

Publication Publication Date Title
CN106775334B (zh) 移动终端上的文件调用方法、装置及移动终端
WO2023046068A1 (zh) 文件处理方法及装置
US9003283B2 (en) Copying text using parameters displayed on a clipboard
WO2022068773A1 (zh) 桌面元素调整方法、装置和电子设备
US20240031668A1 (en) Photographing interface display method and apparatus, electronic device, and medium
JP2013544410A (ja) マルチスクリーン電子メールクライアント
WO2023061280A1 (zh) 应用程序显示方法、装置及电子设备
WO2023040896A1 (zh) 内容分享方法、装置和电子设备
WO2023046130A1 (zh) 应用图标的显示方法、装置、电子设备及存储介质
WO2023072061A1 (zh) 图标显示控制方法、装置、电子设备及存储介质
WO2024037418A1 (zh) 显示方法、装置、电子设备及可读存储介质
WO2023045837A1 (zh) 桌面编辑方法和电子设备
WO2023155811A1 (zh) 页面布局调整方法、装置
WO2023030306A1 (zh) 视频编辑方法、装置及电子设备
WO2022166893A1 (zh) 信息显示方法、装置、电子设备和存储介质
WO2023066109A1 (zh) 一种显示方法、装置、电子设备和可读存储介质
WO2023030115A1 (zh) 界面显示方法和装置
WO2023155877A1 (zh) 应用图标管理方法、装置和电子设备
WO2022242542A1 (zh) 应用图标的管理方法和电子设备
CN114116098B (zh) 应用图标管理方法、装置、电子设备及存储介质
CN112698762B (zh) 图标显示方法、装置及电子设备
WO2023155874A1 (zh) 应用图标管理方法、装置和电子设备
WO2023198064A1 (zh) 应用程序启动方法、装置、电子设备及存储介质
WO2023151512A1 (zh) 多媒体文件管理方法、装置、电子设备及介质
WO2023078348A1 (zh) 应用程序显示方法、装置及电子设备

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: 22872112

Country of ref document: EP

Kind code of ref document: A1