Movatterモバイル変換


[0]ホーム

URL:


CN118331463A - Method for processing file - Google Patents

Method for processing file
Download PDF

Info

Publication number
CN118331463A
CN118331463ACN202410535938.7ACN202410535938ACN118331463ACN 118331463 ACN118331463 ACN 118331463ACN 202410535938 ACN202410535938 ACN 202410535938ACN 118331463 ACN118331463 ACN 118331463A
Authority
CN
China
Prior art keywords
file
application
cloud
layout window
mobile terminal
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202410535938.7A
Other languages
Chinese (zh)
Inventor
田枫
冯荣峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
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 Lenovo Beijing LtdfiledCriticalLenovo Beijing Ltd
Priority to CN202410535938.7ApriorityCriticalpatent/CN118331463A/en
Publication of CN118331463ApublicationCriticalpatent/CN118331463A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

The application provides a method for processing a file, which is applied to a mobile terminal, and comprises the following steps: displaying a first icon and a second icon in response to manipulating the first file; the first icon representation opens the first file based on a first application, the first application being implemented based on a first operating system; the second icon representation opens the first file based on a second application, the second application being implemented based on a second operating system; the first operating system is different from the second operating system; displaying a first application layout window for manipulating the first file in response to selecting the first icon; displaying a second application layout window for manipulating the first file in response to selecting the second icon; wherein the first application layout window is capable of providing more manipulation functions than the second application layout window is capable of providing.

Description

Method for processing file
Technical Field
The application relates to the technical field of artificial intelligence, in particular to a method for processing files.
Background
In the related art, due to ecological limitation of Android equipment (Android), a user cannot enjoy the same office experience as a personal computer based on a Windows operating system at a mobile terminal, and cannot directly open applications using the personal computer (Personal Computer, PC).
Disclosure of Invention
Accordingly, the embodiments of the present application provide at least a method for processing a file.
The technical scheme of the embodiment of the application is realized as follows:
In a first aspect, an embodiment of the present application provides a method for processing a file, applied to a mobile terminal, where the method includes: displaying a first icon and a second icon in response to manipulating the first file; the first icon representation opens the first file based on a first application, the first application being implemented based on a first operating system; the second icon representation opens the first file based on a second application, the second application being implemented based on a second operating system; the first operating system is different from the second operating system; displaying a first application layout window for manipulating the first file in response to selecting the first icon; displaying a second application layout window for manipulating the first file in response to selecting the second icon; wherein the first application layout window is capable of providing more manipulation functions than the second application layout window is capable of providing.
In a second aspect, an embodiment of the present application provides a method for processing a file, applied to a cloud, where the method includes: receiving a request transmitted by a mobile terminal and based on a first application to open a first file, controlling the first application to open the first file so as to create a first application layout window for operating the first file, wherein the request is sent by the mobile terminal in response to the selection of a first icon; the mobile terminal responds to the operation of the first file, and displays a first icon and a second icon; the first icon representation is used for opening the first file based on a first application, wherein the first application is a cloud application and is realized based on a first operating system; the second icon representation opens the first file based on a second application, which is a mobile terminal local application and is realized based on a second operating system; the first operating system is different from the second operating system; transmitting first application layout window data to the mobile terminal so that the mobile terminal displays a first application layout window for operating the first file; and compared with the second icon selected by the mobile terminal, the second application layout window for manipulating the first file is displayed, and the first application layout window can provide more manipulation functions than the second application layout window can provide.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
Fig. 1 is a schematic implementation flow diagram of a method for processing a file according to an embodiment of the present application;
Fig. 2 is a schematic diagram showing two icons on an interface of an android device according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a layout window corresponding to a text file according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a layout window corresponding to an image file according to an embodiment of the present application;
FIG. 5 is a second implementation flow chart of a method for processing a file according to an embodiment of the present application;
FIG. 6 is a schematic diagram III illustrating an implementation flow of a method for processing a file according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a cloud application architecture according to an embodiment of the present application;
FIG. 8 is a flowchart illustrating another method for processing a file according to an embodiment of the present application;
FIG. 9 is a schematic diagram of a device for processing documents according to an embodiment of the present application;
FIG. 10 is a schematic diagram of a second embodiment of a device for processing documents;
fig. 11 is a schematic diagram of a hardware entity of a computer device according to an embodiment of the present application.
Detailed Description
The technical solution of the present application will be further elaborated with reference to the accompanying drawings and examples, which should not be construed as limiting the application, but all other embodiments which can be obtained by one skilled in the art without making inventive efforts are within the scope of protection of the present application.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is to be understood that "some embodiments" can be the same subset or different subsets of all possible embodiments and can be combined with one another without conflict.
It should be noted that the term "first\second\third" related to the embodiments of the present application is merely to distinguish similar objects, and does not represent a specific order for the objects, it being understood that the "first\second\third" may interchange a specific order or sequencing, where allowed, so that the embodiments of the present application described herein can be implemented in an order other than illustrated or described herein.
It will be understood by those skilled in the art that all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which embodiments of the application belong unless defined otherwise. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
The method provided by the embodiment of the application can be executed by mobile terminal equipment, wherein the mobile terminal equipment can be a notebook computer, a tablet computer, a desktop computer, a set-top box, various types of terminals such as mobile equipment (for example, a mobile phone, a portable music player, a personal digital assistant, a special message equipment and a portable game equipment). The cloud end is implemented as a server. The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, a content distribution network (Content Delivery Network, CDN), basic cloud computing services such as big data and an artificial intelligent platform.
At present, the operation of opening, displaying and editing the commonly used image-text office files by the mobile terminal equipment has the problem of poor experience.
Based on this, the method for processing a file provided in the embodiment of the present application is applied to a mobile terminal, as shown in fig. 1, the method may include the following steps S101 to S103, where:
Step S101, in response to the manipulation of the first file, displaying a first icon and a second icon; the first icon representation opens the first file based on a first application, the first application being implemented based on a first operating system; the second icon representation opens the first file based on a second application, the second application being implemented based on a second operating system; the first operating system is different from the second operating system;
Here, in the case where the mobile terminal is an android device, the first file may be any type of file (e.g., text file, image file, etc.) on the android device, and as shown in fig. 2, the first icon and the second icon are two icons (first icon 21 and second icon 22) for opening the file, which are displayed on the interface 20 of the android device, and provide different operation options, allowing the user to select in which way to open and manipulate the first file. The first application corresponding to the first icon and the second application corresponding to the second icon are applications located in two operating systems. If the user selects the first icon, this indicates that the user wishes to open and manipulate the first file using the first application based on the first operating system. Conversely, if the user selects the second icon, it indicates that the user wishes to open the file using a second application that is based on the second operating system.
In some embodiments, when the user selects and long presses the first file to select to open on the android device, the first icon and the second icon are displayed, so that the user can select to open the first file with the first application corresponding to the first icon or open the first file with the second application corresponding to the second icon.
Step S102, in response to selecting the first icon, displaying a first application layout window for manipulating the first file;
Here, the first application layout window may be a window for displaying the file after the file is opened by the first application, and is used for displaying the opened file and manipulation functions corresponding to the file, so that a user can easily find and execute corresponding operations, where the manipulation functions generally correspond to editable options presented after the file is opened, so that the user can smoothly perform operations when editing the file. The first application layout window can adapt to the changes of different file types and editing requirements, and when a user opens different types of files, the first application layout window can be automatically adjusted to display editable options related to the file types. As shown in fig. 3, when a text file is opened, a first application layout window 30 corresponding to the text file may mainly display text editing tools (e.g., insert 31, design 32, page layout 33, etc.); as shown in fig. 4, when one image file is opened, the first application layout window 40 corresponding to the image file may mainly display an image editing tool (e.g., insert 41, design 42, switch 43, animation 44, etc.). This adaptability ensures that the user can perform efficient editing operations for different file types.
In some embodiments, when the user selects the first icon, the android device recognizes the action, sends a request to the cloud end to load a first application corresponding to the first file, displays the opened first file and an editing tool corresponding to the first file after the first application opens the first file, and displays a first application layout window for editing the first file in the process of editing the first file. In this way, the first application layout window provides rich manipulation functions that enable the user to perform various complex operations on the first file.
Step S103, in response to selecting the second icon, displaying a second application layout window for manipulating the first file; wherein the first application layout window is capable of providing more manipulation functions than the second application layout window is capable of providing.
The second application layout window may be a window for displaying the file after the file is opened by the second application, and is used for displaying the opened file and manipulation functions corresponding to the file, so that a user can easily find and execute corresponding operations, and the manipulation functions generally correspond to editable options presented after the file is opened, so that the user can smoothly perform operations when editing the file. The second application layout window can also adapt to the changes of different file types and editing requirements, and the corresponding content of the first application layout window can be referred to.
It should be noted that, the first application layout window may provide more manipulation functions than the second application layout window, and specifically, if a text file is opened by using the first application, the manipulation functions provided by the first application layout window corresponding to the text file may be inserted, designed, and laid out on a page; if the text file is opened by the second application, the operational functions provided by the second application layout window corresponding to the text file may only be inserted.
In some embodiments, when the user selects the second icon, the android device recognizes the action and starts a second application associated with the first file, after the second application opens the first file, the android device displays the opened first file and an editing tool corresponding to the first file, and in the process of editing the first file, a second application layout window for editing the file is displayed. Although the second application layout window may also allow the user to manipulate the first file, the manipulation functionality provided by it may be limited compared to the first application layout window.
In the embodiment of the application, the mobile terminal provides flexibility for users to select different operating systems and applications to open and manipulate files. The user can select the operation mode and application which are most suitable for the user according to specific requirements and personal preferences. The design not only improves the user experience, but also meets the diversified demands of different user groups.
In some embodiments, the implementation of step S102 "in response to selecting the first icon, displaying a first application layout window that manipulates the first file" may include steps S1021 through S1023, where:
Step S1021, transmitting the first file information to the first application in response to selecting the first icon;
Here, the first file information may be a collection of various attributes and features describing the file, including but not limited to file content, and name, format, type, size, etc. of the file.
In some embodiments, when the user selects the first icon, the android device recognizes the action and sends a request carrying the first file information to the cloud end, requesting to load a first application corresponding to the first file.
Step S1022, receiving the first application layout window data returned by the first application for operating the first file;
Here, the first application layout window data of the first file generally refers to data after various manipulations of the file (e.g., browsing the file, editing the file content, saving the file, etc.) in the first application layout window.
In some embodiments, after the user manipulates the file each time, the cloud end updates the first application layout window data, and returns the updated first application layout window data to the android device, so as to realize that the updated first application layout window data is seen on the android device.
Step S1023, based on the first application layout window data, displaying a first application layout window for manipulating the first file; the first application is a cloud application, and the cloud application is realized based on the first operating system; the second application is a local application, and the local application is realized based on the second operating system.
Here, the relationship between the cloud application and the cloud may be analogized to the relationship of "application" and "server". The cloud application is an application program running on the cloud, and the cloud provides the cloud application with required computing resources and running environments.
Under the condition that the first application is a cloud application, the first operating system is a Windows PC system; and in the case that the second application is a local application, the second operating system is an android system. If the first icon is a cloud icon, the second icon is a local icon, the cloud icon represents opening a file based on a cloud application, and the cloud application is realized based on a Windows PC system; the local icon representation is based on a local application open file, and the local application is realized based on an android system.
In some embodiments, after receiving the first application layout window data for manipulating the first file, the mobile terminal renders and displays a corresponding first application layout window on the interface according to the description of the data. Thus, the user can see a layout window on the mobile terminal similar to the first application interface.
In the embodiment of the application, the mobile terminal can provide a unified interface for the user to control the processing of the first file by the first application of the cloud end without switching among a plurality of applications or systems.
In some embodiments, as shown in fig. 5, the method may include the following steps S501 to S505, in which:
Step S501, in response to manipulating the first file, displaying a first icon and a second icon;
Step S502, in response to selecting the first icon, sending storage address information of the first file to a cloud end, so that the cloud end application opens the first file based on the storage address information;
Here, the storage address information of the first file may be address information of a file stored locally or address information of a file stored in the cloud, if the file is opened on the current cloud, which generally means that the file is already loaded in the cloud application, and the cloud knows the address information of the file, the cloud feeds back the address information of the file to the mobile terminal. The stored information of a file typically includes a file path, a file name, and possibly access rights information.
In some embodiments, if the current cloud end does not open the first file, the cloud end does not know the address information of the first file, so when the user selects the cloud end icon, the android device sends storage address information carrying the first file path and the file name of the first file to the cloud end, so that the cloud end application opens the first file corresponding to the file name based on the first file path.
Step S503, receiving a processing procedure number of the first file sent by the cloud end, where the processing procedure number of the first file is used to bind a cloud application that opens the first file with a first application layout window of the mobile end, so as to be used for the mobile end to manipulate the first application layout window;
Here, the processing procedure number of the first file is generally a unique processing procedure number generated after the first file is opened, and the processing procedure number can identify and track a processing state of the first file, and is used for binding a cloud application for opening the first file with a first application layout window of the mobile terminal, so as to be used for the mobile terminal to manipulate the first application layout window.
In some embodiments, after the cloud application opens the first file, a processing procedure number of the first file is generated, and the processing procedure number of the first file is sent to the mobile terminal, and the mobile terminal binds the cloud application opening the first file with a first application layout window of the mobile terminal according to the processing procedure number of the first file, so as to be used for the mobile terminal to manipulate the first application layout window.
Step S504, receiving the first application layout window data returned by the first application and used for operating the first file;
step S505, based on the first application layout window data, displaying a first application layout window for manipulating the first file;
step S506, in response to selecting the second icon, displaying a second application layout window for manipulating the first file.
Here, step S501 and step S506 correspond to the steps S101 and S103, respectively, and when implemented, reference may be made to the steps S101 and S103; step S504 and step S505 correspond to step S1022 and step S1023, respectively, and when implemented, reference may be made to step S1022 and step S1023.
In the embodiment of the application, a tight cooperative working mechanism is established between the mobile terminal and the cloud terminal, so that a user can conveniently control the processing of the cloud application on the mobile terminal without directly operating on the cloud terminal equipment. The working efficiency and experience of the user are greatly improved, and seamless cooperation among devices is realized.
In some embodiments, the method may include the following steps S111 to S114, wherein:
step S111, in response to manipulating the first icon corresponding to each of the plurality of files, receiving a processing procedure number of each of the plurality of files sent by the cloud, where the processing procedure number of each file is used to bind a cloud application that opens each file with a corresponding first application layout window of the mobile terminal;
In some embodiments, if a plurality of files need to be opened through the cloud application, the cloud end generates a corresponding processing procedure number after opening each file of the plurality of files, and sends the processing procedure number of each file to the mobile end, so that the cloud application of each file is bound to a corresponding first application layout window of the mobile end through the mobile end. After receiving the processing process numbers of each file, the mobile terminal binds the cloud application of each file with the first application layout window of the mobile terminal according to the processing process numbers. In this way, the processing process of each file in the cloud end is associated with a specific layout window on the mobile end.
Step S112, based on the processing process number of each file, acquiring a first input event corresponding to a first application layout window for operating each file;
Here, the first input event may be an input event generated by a user performing various operations on the android device, the first input event may include a touch event, a key event, and the like, the different input events come from different input sources of the android device, for example, the touch event may come from a touch screen of the android device, and the key event may come from a key of the android device.
In some embodiments, according to the processing procedure number of each file, when the user performs an input operation on the android device, the android system generates an input event corresponding to the first application layout window for manipulating each file. For example, the plurality of files include a text file and an image file, and the android device obtains an input event corresponding to a first application layout window for manipulating the text file according to a processing procedure number of the text file, and obtains an input event corresponding to the first application layout window for manipulating the image file according to the processing procedure number of the image file.
Step S113, processing the first input event corresponding to each file to correspondingly obtain a second input event;
Here, since input events on an android device may come from different input sources, the data format and meaning of the input events generated by these input sources may be different. Therefore, the first input events need to be processed to adapt to the requirements of the cloud application. Through processing, different input events can be converted into standard formats which can be understood and processed by the cloud application.
Step S114, mapping the second input event corresponding to each file to the corresponding cloud application.
Here, since the input events corresponding to each file may be different, the input events corresponding to each file need to be mapped to the corresponding cloud application, so as to realize one-to-one correspondence between the first application layout window and the mirror window of the mobile terminal. For example, the plurality of files include a text file and an image file, and the android device maps an input event corresponding to the text file to a corresponding cloud application and maps an input event corresponding to the image file to a corresponding cloud application.
In the embodiment of the application, the operation of the user on the cloud file through the mobile terminal can be reflected to the cloud application, so that seamless collaboration and file operation experience across devices are realized. The method not only improves the working efficiency of the user, but also enhances the interactivity and the collaboration between the mobile device and the cloud application.
In some embodiments, the step S113 "process the first input event corresponding to each file and the implementation of obtaining the second input event" correspondingly may include the following steps S1131 and S1132, where:
step S1131, analyzing the first input event corresponding to each file, and correspondingly obtaining attribute information of the first input event;
Here, the attribute information of the first input event includes a type, a time stamp, and coordinates of the first input event; the attribute information of the first input event is used to describe specific characteristics of the input event and the state at the time of occurrence. The type of input event may be a category of input event, e.g., click, slide, long press, zoom, etc. The time stamp of an input event records the specific time at which the input event occurred, which is useful for processing a continuous sequence of input events or calculating the rate of input events, etc. The coordinates of the input event characterize the position of the input event on the android device screen. For touch events, the coordinates typically include coordinate values of the X-axis and Y-axis for precisely locating the specific location of the touch event on the screen of the android device.
Because the input event corresponding to each file may be different, the input event corresponding to each file needs to be parsed, so that the type, the event stamp and the coordinates of the first input event are correspondingly obtained. Next, an example will be described in which a touch event is taken as a first input event corresponding to an image file. In some embodiments, the android device parses the touch event corresponding to the image file to obtain the type of touch event (e.g., sliding, zooming, etc.), the specific time of occurrence, and the specific location on the screen of the android device.
Step S1132, converting and packaging attribute information of the first input event corresponding to each file, and correspondingly obtaining the second input event.
Here, since the attribute information of the first input event includes the type, the timestamp and the coordinates of the first input event, the android device is required to package the type, the timestamp and the coordinates of the first input event after conversion, so as to obtain the second input event. The second input event can be identified by the cloud end, and the cloud end requirement can be met.
In some embodiments, if the coordinate system used by the cloud is different from the android device, the coordinates of the touch event may need to be converted. In view of network delay and time synchronization problems between the android device and the cloud, it may be necessary to adjust the time stamp of the input event. According to the input interface specification of the cloud, mapping the input event type of the android device into the corresponding event type of the cloud.
According to the embodiment of the application, efficient transmission and processing of the input event can be realized between the mobile terminal and the cloud terminal, so that accurate and timely response of a user to the operation of the cloud terminal file through the mobile terminal is ensured. This provides a user with a smoother and more convenient cross-device file manipulation experience.
In some embodiments, the method may include the following steps S121 to S125, wherein:
step S121, responding to the drag operation of the target content in the first application layout window, and simulating a drag event based on the expanded mobile device drag-and-drop architecture;
Here, the extended mobile device Drag-and-Drop architecture may enhance and extend an existing Drag-and-Drop (Drag and Drop) function on the basis of an android operating system, and by long-pressing and dragging a certain object on a screen, a user may move the object to other positions of the screen, so that the user may support seamless transmission and sharing of data between cloud applications running in a cloud end and between the cloud applications and other applications running locally in a Drag-and-Drop manner. The drag event may be an event generated by a drag operation performed by a user on the cloud application.
In some embodiments, the android system needs to be able to accurately identify the target content that the user selects in the cloud application layout window. This is typically achieved by a touch event on the touch screen, e.g. a user pressing or clicking on a certain content for a long time. Once the target content is identified, the android system should enter a drag mode. In the drag mode, the user can drag the target content by moving a finger. Based on the extended mobile device drag-and-drop architecture, drag events are simulated.
Step S122, receiving target content in the cloud application sent by the cloud; the target content comprises characters, pictures and files;
In some embodiments, when a user drags target contents in the cloud application, the cloud end sends the target contents to the mobile end, and the mobile end can receive the target contents in the cloud application sent by the cloud end through a real-time communication protocol, so that data consistency between the target contents and the mobile end can be ensured.
Step S123, packaging the target content into a format which can be accessed by other applications to obtain a data packet;
here, since the format of the target content may be different from the format that can be accessed by other applications, the mobile terminal is required to encapsulate the target content into a format that can be accessed by other applications, so as to obtain a data packet, where the format of the data packet should be compatible with the requirements of the receiving application, so as to ensure that the data packet can be correctly parsed and used.
Step S124, based on the drag event, controlling a layout window of the mobile terminal to display a moving process of the target content;
In some embodiments, when a user touches and drags the target content, the application captures a touch event and calculates the distance and direction the target content should move according to the change of coordinates of the touch event. For example, the coordinate points at the touch start and touch movement are compared, thereby determining the movement locus of the target content. And updating the position of the target content in the layout window of the mobile terminal according to the calculated moving distance and direction.
Step S125, after the target content is dragged to other applications, controlling the other applications to receive the target content corresponding to the data packet.
In some embodiments, after the target content is dragged to other applications, the mobile terminal controls the other applications to parse the received data packet, so as to obtain the target content corresponding to the data packet.
In the embodiment of the application, the mobile terminal controls the moving process of the layout window display target content of the mobile terminal according to the dragging event. Thus, a user can intuitively see how the target content is dragged from one position to another, and the intuitiveness and convenience of operation are improved.
The method for processing the file provided by the embodiment of the application is applied to the cloud, as shown in fig. 6, the method may include the following steps S601 and S602, where:
Step S601, receiving a request transmitted by a mobile terminal and based on a first application to open a first file, controlling the first application to open the first file to create a first application layout window for operating the first file, wherein the request is sent by the mobile terminal in response to the selection of a first icon; the mobile terminal responds to the operation of the first file, and displays a first icon and a second icon; the first icon representation is used for opening the first file based on a first application, wherein the first application is a cloud application and is realized based on a first operating system; the second icon representation opens the first file based on a second application, which is a mobile terminal local application and is realized based on a second operating system; the first operating system is different from the second operating system;
Here, there is a network connection between the mobile terminal and the cloud terminal, so that the cloud terminal can receive a request for opening the first file based on the cloud terminal application transmitted by the mobile terminal. After receiving the request, the cloud end performs corresponding processing, first stores the first file in the cloud end, and then controls the cloud end application to open the first file to create a first application layout window for operating the first file, so that backup and remote access of the first file are realized.
Step S602, transmitting first application layout window data to the mobile terminal, so that the mobile terminal displays a first application layout window for manipulating the first file, wherein compared with the mobile terminal selecting the second icon, a second application layout window for manipulating the first file is displayed, and the first application layout window can provide more manipulation functions than the second application layout window can provide.
In some embodiments, after the user manipulates the first file each time, the cloud end updates the first application layout window data, and returns the updated first application layout window data to the android device, so as to realize that the updated first application layout window data is seen on the android device.
In the embodiment of the application, on one hand, compared with the case that the mobile terminal local application is selected to open the file through the second icon, the first application layout window created by the cloud application is selected to open the file through the first icon, so that more manipulation functions can be provided. In this way, the cloud application may provide richer editing, processing or collaboration functions when processing the file, so that the user can operate the file more flexibly. Alternatively, the user may select different applications to open the file as desired. If more advanced functions or collaboration capabilities are required, a cloud application may be selected; if only simple viewing or editing functions are required, the local application may be selected.
In some embodiments, the implementation of step S601 "control a first application to open the first file to create a first application layout window that manipulates the first file" may include steps S6011 to S6013, wherein:
step S6011, receiving first file information transmitted by a mobile terminal, wherein the first file information comprises storage address information of a first file;
In some embodiments, if the current cloud end does not open the first file, the cloud end does not know the address information of the first file, so when the user selects the cloud end icon, the android device sends the first file information carrying the storage address information of the first file to the cloud end.
Step S6012, controlling a cloud application to open the first file based on the storage address information of the first file;
Here, the stored information of the first file generally includes a path of the first file, a file name of the first file, and possible access right information. In some embodiments, the cloud end controls the cloud end application to open the first file corresponding to the file name according to the path of the first file.
Step S6013, in response to the process number of opening the first file, sending the process number of the first file to the mobile terminal, where the process number is used to bind the cloud application that opens the first file with the first application layout window of the mobile terminal.
In some embodiments, after the cloud application opens the first file, a processing procedure number of the first file is generated, and the processing procedure number of the first file is sent to the mobile terminal, and the mobile terminal binds the cloud application opening the first file with a first application layout window of the mobile terminal according to the processing procedure number of the first file, so as to be used for the mobile terminal to manipulate the first application layout window. Thus, the mobile terminal can know which cloud application is processing the file, and can track the processing state of the file.
According to the embodiment of the application, the cloud end and the mobile end can realize efficient collaborative work, a user can easily operate the file on the mobile end, and the actual processing of the file is completed by the cloud application. This greatly improves the user experience and ease of operation. Meanwhile, through binding of the processing process numbers, the mobile terminal can track the processing state of the file, and more accurate feedback is provided for the user.
In some embodiments, the method may include the following steps S611 and S612, wherein:
Step S611, in response to receiving a drag operation instruction sent by the mobile terminal, obtaining target content in the cloud application; the drag operation instruction characterizes target content in the first application layout window of the drag operation of the mobile terminal, and the target content comprises characters, pictures and files;
step S612, sending the target content to the mobile terminal, so that the first application layout window of the mobile terminal displays the moving process of the target content.
In some implementations, after a drag manipulation of the target content in the cloud layout window, the target content needs to be synchronized to the mobile terminal, which may be achieved using a real-time communication protocol. This ensures data consistency between the two.
According to the embodiment of the application, the cloud end and the mobile end can realize cooperative work, so that a user can transfer target contents between different equipment or application interfaces through drag operation, and user experience and operation convenience are improved.
In some embodiments, the method may include the following step S621 and step S622, wherein:
Step S621, under the condition that the first file cannot be opened by the residual executable memory of the cloud application is detected, acquiring the type of the first file;
In some embodiments, if the cloud detects that the remaining memory of the cloud application is insufficient to open the first file, it may stop further opening operation and acquire the type of the first file, so that the cloud selects different policies according to the type of the first file. For example, the first file is transferred to other cloud applications capable of supporting opening the first file type.
Step S622, transferring the first file to another cloud application, so that the other cloud application capable of supporting to open the first file type opens the first file.
In some embodiments, the cloud end searches whether cloud end applications capable of supporting opening the file type exist in other cloud end applications according to the type of the first file. This may involve checking a cloud application library, integrating with third party applications, or querying with an API interface. Once other cloud applications capable of supporting the file type to be opened are found, the cloud end transfers the file to the other cloud applications so that the other applications can open the file.
According to the embodiment of the application, on one hand, by acquiring the types of the files, the cloud can more accurately process the condition of insufficient memory, ensure that a user obtains optimal experience, and avoid waste of system resources. On the other hand, the cloud can fully utilize the functions of other cloud applications to open unsupported file types, so that more flexible and convenient services are provided for users.
According to the cloud application provided by the embodiment of the application, a cloud computing architecture is adopted, computing and storage resources are placed in the cloud, and the mobile terminal is in charge of connecting a server to acquire images and operations of the PC application, so that office experience similar to that of a traditional PC can be obtained.
Cloud computing architecture of cloud application as shown in fig. 7, the cloud computing architecture includes an Android Device 71 and a cloud server (Cloud Server Platform) 72, where: the device 71 of the android operating system comprises a scene layer 711 and a business layer 712. The scene layer 711 includes an input event handler, PC App_1Mirror-1, PC App_1Mirror-2, and the like. The PC App_1Mirror-1 and the PC App_1Mirror-2 represent images corresponding to two application layout windows (namely the cloud application layout windows) of the operating file on the PC so as to display the two application layout windows of the operating file on the android device. The input event handler is a component responsible for handling user input events, such as touch operations, key inputs, etc. It receives the input signal from the user and converts it into instructions or data that the application can understand for further processing by the application. The business layer 712 is an audio engine that provides session management, transport, video engine for the native application. Cloud server 72 includes software layer services 721, platform layer services 722, and infrastructure layer services 723. The software layer service 721 includes a cloud application service, a PC app_1, a PC app_2, and the like, wherein the PC app_1 and the PC app_2 represent two cloud applications on a cloud server, and when one cloud application cannot open a file, the file is transferred to another cloud application capable of supporting the file opening. The cloud application service provides software applications through the cloud computing platform, and users do not need to install and configure software locally, but access and use the applications running in the cloud through the internet. Platform layer services 722 include virtualization, mirror management, and scheduling/policies. Infrastructure layer services 723 include conventional clusters of computing servers that form the underlying hardware foundation of the cloud computing platform, providing computing, storage, and network resources.
An embodiment of the present application provides another method for processing a file, as shown in fig. 8, including the following steps:
Step S801, after a mobile terminal selects a local file, selecting to open the local file by using a cloud application, and automatically uploading the local file to the cloud application;
Step S802, editing a local file through a cloud application;
in step S803, after the cloud application completes editing the local file, the original path/position of the mobile terminal is directly saved/returned to cover the original local file.
Based on the above embodiments, an embodiment of the present application provides a device for processing a file, which is applied to a mobile terminal, as shown in fig. 9, the device 900 for processing a file includes: a first display module 910 for displaying a first icon and a second icon in response to manipulating the first file; the first icon representation opens the first file based on a first application, the first application being implemented based on a first operating system; the second icon representation opens the first file based on a second application, the second application being implemented based on a second operating system; the first operating system is different from the second operating system; a second display module 920 configured to display a first application layout window for manipulating the first file in response to selecting the first icon; a third display module 930 for displaying a second application layout window for manipulating the first file in response to selecting the second icon; wherein the first application layout window is capable of providing more manipulation functions than the second application layout window is capable of providing.
In some embodiments, the second display module 920 includes: a transmission unit, configured to transmit the first file information to the first application in response to selecting the first icon; the receiving unit is used for receiving the first application layout window data returned by the first application and used for operating the first file; a display unit configured to display a first application layout window that manipulates the first file based on the first application layout window data; the first application is a cloud application, and the cloud application is realized based on the first operating system; the second application is a local application, and the local application is realized based on the second operating system.
In some embodiments, the transmission unit comprises: the sending subunit is used for responding to the selection of the first icon and sending the storage address information of the first file to the cloud end so that the cloud end application opens the first file based on the storage address information; the receiving subunit is configured to receive a processing procedure number of the first file sent by the cloud end, where the processing procedure number of the first file is used to bind a cloud application that opens the first file with a first application layout window of the mobile end, so that the mobile end manipulates the first application layout window.
In some embodiments, the apparatus 900 for processing a file further includes: the first receiving module is used for responding to the first icon corresponding to each file of the plurality of files, receiving the processing process number of each file of the plurality of files sent by the cloud, wherein the processing process number of each file is used for binding the cloud application for opening each file with the corresponding first application layout window of the mobile terminal; the acquisition module is used for acquiring a first input event corresponding to a first application layout window for correspondingly operating each file based on the processing process number of each file; the processing module is used for processing the first input event corresponding to each file and correspondingly obtaining a second input event; and the mapping module is used for mapping the second input event corresponding to each file to the corresponding cloud application.
In some embodiments, the processing module comprises: the analysis unit is used for analyzing the first input event corresponding to each file and correspondingly obtaining attribute information of the first input event; the attribute information includes a type, a time stamp, and coordinates of the first input event; and the conversion unit is used for converting and packaging the attribute information of the first input event corresponding to each file, and correspondingly obtaining the second input event.
In some embodiments, the apparatus 900 for processing a file further includes: the simulation module is used for responding to the drag operation of the target content in the first application layout window and simulating a drag event based on the expanded mobile equipment drag-and-drop architecture; the second receiving module is used for receiving target content in the cloud application sent by the cloud; the target content comprises characters, pictures and files; the packaging module is used for packaging the target content into a format which can be accessed by other applications to obtain a data packet; the first control module is used for controlling a layout window of the mobile terminal to display the moving process of the target content based on the dragging event; and the second control module is used for controlling the other applications to receive the target content corresponding to the data packet after the target content is dragged to the other applications.
An embodiment of the present application provides a device for processing a file, which is applied to a cloud, as shown in fig. 10, where a device 1000 for processing a file includes: a receiving module 1010, configured to receive a request transmitted by a mobile terminal and based on a first application to open a first file, and control the first application to open the first file to create a first application layout window for manipulating the first file, where the request is sent by the mobile terminal in response to selecting a first icon; the mobile terminal responds to the operation of the first file, and displays a first icon and a second icon; the first icon representation is used for opening the first file based on a first application, wherein the first application is a cloud application and is realized based on a first operating system; the second icon representation opens the first file based on a second application, which is a mobile terminal local application and is realized based on a second operating system; the first operating system is different from the second operating system; a transmission module 1020, configured to transmit first application layout window data to the mobile terminal, so that the mobile terminal displays a first application layout window for manipulating the first file; and compared with the second icon selected by the mobile terminal, the second application layout window for manipulating the first file is displayed, and the first application layout window can provide more manipulation functions than the second application layout window can provide.
In some embodiments, the receiving module 1010 includes: the mobile terminal comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is used for receiving first file information transmitted by the mobile terminal, and the first file information comprises storage address information of a first file; the control unit is used for controlling the cloud application to open the first file based on the storage address information of the first file; the sending unit is used for responding to the processing process number of the first file, sending the processing process number of the first file to the mobile terminal, and the processing number is used for binding the cloud application of the first file and the first application layout window of the mobile terminal.
In some embodiments, the apparatus 1000 for processing a file further comprises: the first acquisition module is used for responding to the receiving of the drag operation instruction sent by the mobile terminal and acquiring target content in the cloud application; the drag operation instruction characterizes target content in the first application layout window of the drag operation of the mobile terminal, and the target content comprises characters, pictures and files; and the sending module is used for sending the target content to the mobile terminal so as to enable the first application layout window of the mobile terminal to display the moving process of the target content.
In some embodiments, the apparatus 1000 for processing a file further comprises: the second acquisition module is used for acquiring the type of the first file under the condition that the first file cannot be opened by the residual executable memory of the cloud application; and the transfer module is used for transferring the first file to other cloud applications so as to enable the other cloud applications capable of supporting the opening of the first file type to open the first file.
The description of the apparatus embodiments above is similar to that of the method embodiments above, with similar advantageous effects as the method embodiments. For technical details not disclosed in the embodiments of the apparatus of the present application, please refer to the description of the embodiments of the method of the present application.
It should be noted here that: the above description of various embodiments is intended to emphasize the differences between the various embodiments, the same or similar features being referred to each other. The above description of apparatus, storage medium, computer program and computer program product embodiments is similar to that of method embodiments described above, with similar advantageous effects as the method embodiments. For technical details not disclosed in the embodiments of the apparatus, the storage medium, the computer program and the computer program product of the present application, reference should be made to the description of the embodiments of the method of the present application.
It should be noted that, in the embodiment of the present application, if the method is implemented in the form of a software functional module, and sold or used as a separate product, the method may also be stored in a computer readable storage medium. Based on such understanding, the technical solution of the embodiments of the present application may be essentially or some of contributing to the related art may be embodied in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read Only Memory (ROM), a magnetic disk, an optical disk, or other various media capable of storing program codes. Thus, embodiments of the application are not limited to any specific combination of hardware and software.
The embodiment of the application provides computer equipment, which comprises a memory and a processor, wherein the memory stores a computer program capable of running on the processor, and the processor realizes the method when executing the computer program.
Embodiments of the present application provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the above-described method. The computer readable storage medium may be transitory or non-transitory.
Embodiments of the present application provide a computer program product comprising a non-transitory computer-readable storage medium storing a computer program which, when read and executed by a computer, performs some or all of the steps of the above-described method. The computer program product may be realized in particular by means of hardware, software or a combination thereof. In an alternative embodiment, the computer program product is embodied as a computer storage medium, and in another alternative embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK), or the like.
It should be noted that, fig. 11 is a schematic diagram of a hardware entity of a computer device according to an embodiment of the present application, as shown in fig. 11, the hardware entity of the computer device 1100 includes: a processor 1101, a communication interface 1102, and a memory 1103, wherein: the processor 1101 generally controls the overall operation of the computer device 1100. The communication interface 1102 may enable the computer device to communicate with other terminals or servers over a network. The memory 1103 is configured to store instructions and applications executable by the processor 1101, and may also cache data (e.g., image data, audio data, voice communication data, and video communication data) to be processed or processed by various modules in the processor 1101 and the computer device 1100, which may be implemented by a FLASH memory (FLASH) or a random access memory (Random Access Memory, RAM). Data transfer may occur between the processor 1101, the communication interface 1102 and the memory 1103 via the bus 1104.
It should be noted here that: the description of the storage medium and apparatus embodiments above is similar to that of the method embodiments described above, with similar benefits as the method embodiments. For technical details not disclosed in the embodiments of the storage medium and the apparatus of the present application, please refer to the description of the method embodiments of the present application.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in various embodiments of the present application, the sequence number of each step/process described above does not mean that the execution sequence of each step/process should be determined by its functions and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above described device embodiments are only illustrative, e.g. the division of the units is only one logical function division, and there may be other divisions in practice, such as: multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. In addition, the various components shown or discussed may be coupled or directly coupled or communicatively coupled to each other via some interface, whether indirectly coupled or communicatively coupled to devices or units, whether electrically, mechanically, or otherwise.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units; can be located in one place or distributed to a plurality of network units; some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may be separately used as one unit, or two or more units may be integrated in one unit; the integrated units may be implemented in hardware or in hardware plus software functional units.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the above method embodiments may be implemented by hardware related to program instructions, and the foregoing program may be stored in a computer readable storage medium, where the program, when executed, performs steps including the above method embodiments; and the aforementioned storage medium includes: various media capable of storing program codes, such as a mobile storage device, a read-only memory, a magnetic disk or an optical disk.
Or the above-described integrated units of the application may be stored in a computer-readable storage medium if implemented in the form of software functional modules and sold or used as separate products. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the related art in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a removable storage device, a ROM, a magnetic disk, or an optical disk.
The foregoing is merely an embodiment of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the present application, and the changes and substitutions are intended to be covered by the scope of the present application.

Claims (10)

Receiving a request transmitted by a mobile terminal and based on a first application to open a first file, controlling the first application to open the first file so as to create a first application layout window for operating the first file, wherein the request is sent by the mobile terminal in response to the selection of a first icon; the mobile terminal responds to the operation of the first file, and displays a first icon and a second icon; the first icon representation is used for opening the first file based on a first application, wherein the first application is a cloud application and is realized based on a first operating system; the second icon representation opens the first file based on a second application, which is a mobile terminal local application and is realized based on a second operating system; the first operating system is different from the second operating system;
CN202410535938.7A2024-04-292024-04-29Method for processing filePendingCN118331463A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202410535938.7ACN118331463A (en)2024-04-292024-04-29Method for processing file

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202410535938.7ACN118331463A (en)2024-04-292024-04-29Method for processing file

Publications (1)

Publication NumberPublication Date
CN118331463Atrue CN118331463A (en)2024-07-12

Family

ID=91770820

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202410535938.7APendingCN118331463A (en)2024-04-292024-04-29Method for processing file

Country Status (1)

CountryLink
CN (1)CN118331463A (en)

Similar Documents

PublicationPublication DateTitle
EP4130963A1 (en)Object dragging method and device
US7159186B2 (en)User interface for transferring data with a communications terminal
AU2014201293B2 (en)Multi-input control method and system, and electronic device supporting the same
KR102362659B1 (en)Application/document collaboration in a multi-device environment
CN111049935B (en) System for remotely controlling electronic equipment and its electronic equipment
CN102436344B (en)context menu
CN103595756B (en)The method and apparatus for generating and utilizing the content shortcut object based on cloud service
CN112269516B (en)Display method and access method of desktop element data and related devices
JP2003323402A (en) Thin client system, thin client terminal, thin client terminal control method, and control program
US20170212718A1 (en)Open Collaboration Board with Multiple Integrated Services
TW201621706A (en)Sharing content with permission control using near field communication
US20160248843A1 (en)Data upload method using shortcut
US11061641B2 (en)Screen sharing system, and information processing apparatus
US20130290851A1 (en)User interface web services
CN111246299A (en)Communication terminal and application management method
WO2023151597A1 (en)Task processing method and apparatus, electronic device, and computer-readable storage medium
AU2017356878B2 (en)Layered content selection
CN118331463A (en)Method for processing file
KR102550499B1 (en)Method for dynamically pre-fetching folder tree and cloud server for executing the same
ShurtzApplication Sharing from Mobile Devices with a Collaborative Shared Display
CN113329250B (en) Control method of playback system and playback system
KR102193040B1 (en)Method for running application virtualization whith application installed on virtual desktops in vdi environment or switching to virtual desktop connection, and vitualization server using the same
WO2015056942A1 (en)Gui sharing system and gui editing device
WO2016209717A1 (en)Integration and synchronization using a virtual data provider
CN109379405A (en)Virtual disk construction method, virtual disk system and Dropbox

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination

[8]ページ先頭

©2009-2025 Movatter.jp