CN113656196A - Linux-compatible Android application file transfer method and device - Google Patents

Linux-compatible Android application file transfer method and device Download PDF

Info

Publication number
CN113656196A
CN113656196A CN202110937006.1A CN202110937006A CN113656196A CN 113656196 A CN113656196 A CN 113656196A CN 202110937006 A CN202110937006 A CN 202110937006A CN 113656196 A CN113656196 A CN 113656196A
Authority
CN
China
Prior art keywords
android
file
mouse
linux
information
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.)
Granted
Application number
CN202110937006.1A
Other languages
Chinese (zh)
Other versions
CN113656196B (en
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.)
Shenzhen Jide Application Technology Co ltd
Original Assignee
Shenzhen Jide Intelligent Technology Research Institute Co 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 Shenzhen Jide Intelligent Technology Research Institute Co ltd filed Critical Shenzhen Jide Intelligent Technology Research Institute Co ltd
Priority to CN202110937006.1A priority Critical patent/CN113656196B/en
Publication of CN113656196A publication Critical patent/CN113656196A/en
Application granted granted Critical
Publication of CN113656196B publication Critical patent/CN113656196B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/543User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method and a device for transmitting files between Linux-compatible Android applications. In the environment of Linux compatible with Android, the method and the device realize the function of dragging and transmitting the file among a plurality of applications.

Description

Linux-compatible Android application file transfer method and device
Technical Field
The invention relates to the field of computer operating systems, in particular to a method and a device for transmitting files between applications compatible with Android in Linux.
Background
When a user runs and uses an Android application in a Linux-compatible Android environment, there are usually requirements for transmitting files (pictures, videos, audios, texts, office documents, compressed packages, and the like) between applications, for example: in the gallery application, a left mouse button presses a picture or a video for a long time to enter a multi-selection interface, one or more files are selected, the file in the selected state is pressed for a long time again, and after a dragging icon appears, the file is dragged to an application of an opened notebook. Or in the file manager, files such as audio files, office documents, compressed packages and the like are dragged to the opened android wps application in the same way, and editing is completed in wps. These operations can be well done on a mobile phone. However, the above problems have not been solved so far in a Linux-compatible Android environment.
Disclosure of Invention
In order to solve the problem that files are transmitted between applications in a dragging mode in a Linux-compatible Android environment, the invention provides a Linux-compatible Android application file transmitting method and device.
On one hand, the invention provides a method for transmitting files between applications compatible with Android in Linux, which is applied to an operation environment compatible with Android in Linux, and comprises the following steps:
step S1: creating a container on Linux, starting the container on the Linux, and starting an Android system in the container;
step S2: the method comprises the steps that a left mouse button is pressed at a file to be transmitted on a first Android application interface, an Android system generates a dragging shadow of the file to be transmitted, a Linux side sends information of a first Android application with a mouse click event and the mouse click event to the Android side, and the Android side records the information of the first Android application;
step S3: dragging the transmitted file to a second Android application interface, sending information of the second Android application to an Android side by the Linux side, recording the information of the second Android application and position information of the transmitted file by the Android side, and displaying a dragging shadow of the transmitted file;
step S4: and releasing a left mouse button on a second Android application interface, and receiving the transmitted file by a control at the released position of the mouse by using the second Android application.
Further, the step S2 is specifically:
pressing a left mouse button at a file to be transmitted on a first Android application interface; the Android system generates a dragging shadow of a file to be transmitted; the method comprises the steps that a first Android application detects a mouse left button click event and analyzes the mouse click event; the method comprises the steps that a component communicated with an Android side sends information of a first Android application with a mouse click event and the mouse click event to an information receiving unit of the Android system side through a socket, and after the information is received by the information receiving unit of the Android system side, a window management service of the Android system is informed to record information of the first Android application with the dragged file.
Further, the step S3 is specifically:
the method comprises the steps that a first Android application detects a mouse moving event, analyzes the mouse moving event, and sets a second Android application interface to be in an active state if a mouse is moved to the second Android application interface; and the component communicating with the Android side sends the information of the second Android application and the position information of the dragged shadow of the transmitted file on the second Android application interface to the message receiving unit of the Android system side through the socket, and after the message receiving unit of the Android system side receives the message, the message receiving unit informs the window management service of the Android system to record the position information of the transmitted file on the second Android application interface and display the dragged shadow of the transmitted file.
Further, the step S4 is specifically:
the second Android application detects a mouse release event and analyzes the mouse release event; and a component communicating the Linux side and the Android side sends information of a second Android application with a mouse release event and the mouse release event to a message receiving unit of the Android system side through a socket, the message receiving unit of the Android system side receives the message and then informs a window management service of the Android system, and a control of the second Android application at the mouse release position receives the transmitted file.
Further, the method further comprises:
after the first Android application detects a long mouse press and a moving event on a Linux side, the first Android application calls a function to notify an Android system in an Android container that a file starts to be dragged, wherein the notification information comprises: the data of the dragged file to be transmitted and callback information for drawing the dragging shadow. And the Android system responds to the call, returns the dragging shadow of the transmitted file required by the application, displays the dragging shadow on the first Android application interface, and moves along with the dragging process.
On the other hand, the invention provides a file transmitting device between Linux applications compatible with Android, which is applied in an operating environment compatible with the Android running on Linux, and comprises:
a container creation initiating unit for: creating a container on Linux, starting the container on the Linux, and starting an Android system in the container;
a file transfer unit to:
the method comprises the steps that a left mouse button is pressed at a file to be transmitted on a first Android application interface, an Android system generates a dragging shadow of the file to be transmitted, a Linux side sends information of a first Android application with a mouse click event and the mouse click event to the Android side, and the Android side records the information of the first Android application;
dragging the transmitted file to a second Android application interface, sending information of the second Android application to an Android side by the Linux side, recording the information of the second Android application and position information of the transmitted file by the Android side, and displaying a dragging shadow of the transmitted file;
and releasing a left mouse button on a second Android application interface, and receiving the transmitted file by a control at the released position of the mouse by using the second Android application.
Further, the file transfer unit of the apparatus includes:
a file transfer triggering subunit configured to:
pressing a left mouse button at a file to be transmitted on a first Android application interface; the Android system generates a dragging shadow of a file to be transmitted; the method comprises the steps that a first Android application detects a mouse left button click event and analyzes the mouse click event; the method comprises the steps that a component communicated with an Android side sends information of a first Android application with a mouse click event and the mouse click event to an information receiving unit of the Android system side through a socket, and after the information is received by the information receiving unit of the Android system side, a window management service of the Android system is informed to record information of the first Android application with the dragged file.
Further, the file transfer unit of the apparatus includes:
a mobile drag processing subunit, configured to:
the method comprises the steps that a first Android application detects a mouse moving event, analyzes the mouse moving event, and sets a second Android application interface to be in an active state if a mouse is moved to the second Android application interface; and the component communicating with the Android side sends the information of the second Android application and the position information of the dragged shadow of the transmitted file on the second Android application interface to the message receiving unit of the Android system side through the socket, and after the message receiving unit of the Android system side receives the message, the message receiving unit informs the window management service of the Android system to record the position information of the transmitted file on the second Android application interface and display the dragged shadow of the transmitted file.
Further, the file transfer unit of the apparatus includes:
a drag release subunit to:
the second Android application detects a mouse release event and analyzes the mouse release event; and a component communicating the Linux side and the Android side sends information of a second Android application with a mouse release event and the mouse release event to a message receiving unit of the Android system side through a socket, the message receiving unit of the Android system side receives the message and then informs a window management service of the Android system, and a control of the second Android application at the mouse release position receives the transmitted file.
Further, the file transfer unit of the apparatus includes:
a drag shadow subunit for generating a transferred file for:
after the first Android application detects a long mouse press and a moving event on a Linux side, the first Android application calls a function to notify an Android system in an Android container that a file starts to be dragged, wherein the notification information comprises: the data of the dragged file to be transmitted and callback information for drawing the dragging shadow. And the Android system responds to the call, returns the dragging shadow of the transmitted file required by the application, displays the dragging shadow on the first Android application interface, and moves along with the dragging process.
Compared with the prior art, the invention has the following advantages:
in the environment of Linux compatible with Android, the method and the device realize the function of dragging and transmitting the file among the plurality of applications, meet the requirement of a user on transmitting the file among the plurality of applications, and enrich the ecological application of Linux compatible with Android.
Drawings
Fig. 1 is a schematic diagram illustrating a file transfer method between Linux-compatible Android applications according to an embodiment of the present invention;
fig. 2 is a schematic diagram illustrating a file transfer apparatus between Linux-compatible Android applications according to an embodiment of the present invention;
fig. 3a is an interface schematic diagram of clicking a drag file on a first application interface according to the Linux-compatible Android provided in the embodiment of the present invention;
fig. 3b is a schematic interface diagram illustrating that a Linux compatible Android drags a file to a second application according to an embodiment of the present invention;
fig. 3c is a schematic interface diagram of the Linux-compatible Android system after a file is dragged and released in the second application interface according to the embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
For the operating environment compatible with Android running on the Linux operating system, the Android operating environment runs in a container.
Containers are a lightweight virtualization technology supported by the Linux kernel in recent years. A new Linux system (including other systems customized based on the Linux system, such as Android) can be operated in the Linux system through a container technology, and a client system and a host system are isolated from each other through the container. Different from the traditional scheme based on the virtual machine technology, in the container technology, the client system and the host system share resources such as a CPU (central processing unit), a memory, storage and the like, and the resource overhead is low. In addition, through proper configuration, the client system can directly access the hardware resource of the host, and the performance of the client system is further improved.
Fig. 1 is a file transmission method between Linux-compatible Android applications, provided by an embodiment of the present invention, and applied in an operating environment where Linux is compatible with Android, where the method includes the following steps:
step S1: creating a container on Linux, starting the container on the Linux, and starting an Android system in the container;
step S2: the method comprises the steps that a left mouse button is pressed at a file to be transmitted on a first Android application interface, an Android system generates a dragging shadow of the file to be transmitted, a Linux side sends information of a first Android application with a mouse click event and the mouse click event to the Android side, and the Android side records the information of the first Android application;
step S3: dragging the transmitted file to a second Android application interface, sending information of the second Android application to an Android side by the Linux side, recording the information of the second Android application and position information of the transmitted file by the Android side, and displaying a dragging shadow of the transmitted file;
step S4: and releasing a left mouse button on a second Android application interface, and receiving the transmitted file by a control at the released position of the mouse by using the second Android application.
Further, the step S2 is specifically:
pressing a left mouse button at a file to be transmitted on a first Android application interface; the Android system generates a dragging shadow of a file to be transmitted; the method comprises the steps that a first Android application detects a mouse left button click event and analyzes the mouse click event; the method comprises the steps that a component communicated with an Android side sends information of a first Android application with a mouse click event and the mouse click event to an information receiving unit of the Android system side through a socket, and after the information is received by the information receiving unit of the Android system side, a window management service of the Android system is informed to record information of the first Android application with the dragged file.
Specifically, the Android application display window display-window is a window program realized through QT, and is mainly realized through QSinow class and QWidget class of QT. For the QSinow and QWidget classes, a mouse click event, namely void mouseResEvent (QMuseEvent) is obtained by rewriting the mouseResEvent function; the mousepressEvent function can acquire a mouse click event message of QWindow or QWidget, and when e- > button () is equal to Qt:: LeftButton, the mouse left click event is obtained.
The Android application A display window display-window A analyzes the mouse click event in the previous step, and sends the information of the app page A operated by the mouse and the mouse click event to a message receiving unit app-service on the Android system through socket (nested words, a communication mode) by a component app-manager in charge of communication with the Android side through the Linux side.
After receiving the message, the message receiving unit app-service on the Android system notifies a window management service (WindowManagerservice) of the Android system, and records that the display-window A where the dragging is started is displayed.
Further, the step S3 is specifically:
the method comprises the steps that a first Android application detects a mouse moving event, analyzes the mouse moving event, and sets a second Android application interface to be in an active state if a mouse is moved to the second Android application interface; and the component communicating with the Android side sends the information of the second Android application and the position information of the dragged shadow of the transmitted file on the second Android application interface to the message receiving unit of the Android system side through the socket, and after the message receiving unit of the Android system side receives the message, the message receiving unit informs the window management service of the Android system to record the position information of the transmitted file on the second Android application interface and display the dragged shadow of the transmitted file.
In particular, the amount of the solvent to be used,
for the QWindow and QWidget classes, a mouse movement event, namely void mouseEvent (QMouseEvent) is obtained by rewriting a mouseEvent function; the mousemoveeevent function can get a mouse move event message of QWindow or QWidget. Where e- > x (), e- > y () is the mouse position (relative to the coordinates of the upper left corner of display-window A), the drag shadow is displayed at (e- > x (), e- > y ()) of display-window A.
The Android application A display window display-window A analyzes the mouse moving event in the previous step, obtains the position of the mouse in the display-window A through e- > x (), e- > y (), and analyzes and calculates whether the mouse moves to the Android application B display window display-window B or not according to the position. And if the mouse moves to the Android application B display window display-window B, displaying the Android application B display window display-window B to the foreground and setting the Android application B display window display-window B as a focus application (active application). In addition, the Linux side is responsible for sending the information of the app page B operated by the mouse and the position of the mouse movement to the message receiving unit app-service on the Android system through the socket by a component app-manager communicating with the Android side, wherein e1- > x (), e1- > y () are mouse positions (coordinates relative to the upper left corner of display-window B).
After receiving the message, the message receiving unit app-service on the Android system notifies a window management service (WindowManagerService) of the Android system that the current dragging position is on a display window display-window B, and the dragging shadow is displayed on the display-window B by the position of coordinates (e1- > x ()), e1- > y ()).
Further, the step S4 is specifically:
the second Android application detects a mouse release event and analyzes the mouse release event; and a component communicating the Linux side and the Android side sends information of a second Android application with a mouse release event and the mouse release event to a message receiving unit of the Android system side through a socket, the message receiving unit of the Android system side receives the message and then informs a window management service of the Android system, and a control of the second Android application at the mouse release position receives the transmitted file.
In particular, the amount of the solvent to be used,
for the QWindow and QWidget classes, a mouse release event, namely void mouseReleaseEvent (QMouseEvent) is obtained by rewriting the mouseReleaseEvent function; the mouse ReleaseEvent function can acquire a mouse release event message of QWindow or QWidget, and when e- > button () is equal to Qt:: LeftButton, the mouse left button release event is obtained.
And the Android application B display window display-window B analyzes the mouse release event in the previous step, and sends the mouse operation app page B information and the mouse release event to a message receiving unit app-service on the Android system through a socket by a component app-manager which is responsible for communicating with the Android side through the Linux side.
And after receiving the message, the message receiving unit app-service on the Android system informs a window management service (WindowManagerservice) of the Android system, and the Android application B receives the dragged file at a control at the mouse release position.
Further, the method further comprises:
after the first Android application detects a long mouse press and a moving event on a Linux side, the first Android application calls a function to notify an Android system in an Android container that a file starts to be dragged, wherein the notification information comprises: the data of the dragged file to be transmitted and callback information for drawing the dragging shadow. And the Android system responds to the call, returns the dragging shadow of the transmitted file required by the application, displays the dragging shadow on the first Android application interface, and moves along with the dragging process.
Specifically, after the Android application A display window display-window A detects a mouse long-time press and a movement event on the Linux side, the application A calls a startDrag () method to notify an Android system in an Android container, and the parameters provided by the startDrag () method include: dragged data, metadata for the data, and a callback method to draw a dragging shadow. The Android system in the Android container firstly returns a dragging shadow required by an application program by responding to the call, and then displays the shadow on the display-window A, wherein the shadow can move along with the dragging process, and the displayed position is calculated by taking the upper left corner of the display-window A as a coordinate origin.
When the range of the dragging exceeds the range of the display window display-window A, the dragging shadow is not displayed.
And then judging whether the mouse moves to an Android application B display window display-window B according to a coordinate point of the mouse movement, when the Linux side detects that the mouse moves to the mouse movement display window display-window B, sending Android application B page information and a mouse event (mouse long press and mouse position) to a message receiving unit app-service running on an Android system in an Android container, after the message receiving unit receives the message, informing a window management service (WindowManagerService) of the Android system that the current dragging position is on the display window display-window B, and displaying a dragging shadow by using the position calculated by taking the mouse at the upper left corner of the display-window B as a coordinate origin.
After the display window display-window B is displayed, the mouse is released, the Linux side sends Android application B page information and mouse events (mouse release and mouse position) to the message receiving unit app-service running on the Android system in the Android container, and after the message receiving unit receives the message, the message receiving unit informs the Windows management service (WindowManagerService) of the Android system to release the mouse at a certain position of the display window display-window B.
Fig. 2 is a file transfer device between Linux-compatible Android applications, provided in an embodiment of the present invention, and applied in an operating environment compatible with running Android on Linux, where the device includes:
a container creation initiating unit for: creating a container on Linux, starting the container on the Linux, and starting an Android system in the container;
a file transfer unit to:
the method comprises the steps that a left mouse button is pressed at a file to be transmitted on a first Android application interface, an Android system generates a dragging shadow of the file to be transmitted, a Linux side sends information of a first Android application with a mouse click event and the mouse click event to the Android side, and the Android side records the information of the first Android application;
dragging the transmitted file to a second Android application interface, sending information of the second Android application to an Android side by the Linux side, recording the information of the second Android application and position information of the transmitted file by the Android side, and displaying a dragging shadow of the transmitted file;
and releasing a left mouse button on a second Android application interface, and receiving the transmitted file by a control at the released position of the mouse by using the second Android application.
Further, the file transfer unit of the apparatus includes:
a file transfer triggering subunit configured to:
pressing a left mouse button at a file to be transmitted on a first Android application interface; the Android system generates a dragging shadow of a file to be transmitted; the method comprises the steps that a first Android application detects a mouse left button click event and analyzes the mouse click event; the method comprises the steps that a component communicated with an Android side sends information of a first Android application with a mouse click event and the mouse click event to an information receiving unit of the Android system side through a socket, and after the information is received by the information receiving unit of the Android system side, a window management service of the Android system is informed to record information of the first Android application with the dragged file.
Further, the file transfer unit of the apparatus includes:
a mobile drag processing subunit, configured to:
the method comprises the steps that a first Android application detects a mouse moving event, analyzes the mouse moving event, and sets a second Android application interface to be in an active state if a mouse is moved to the second Android application interface; and the component communicating with the Android side sends the information of the second Android application and the position information of the dragged shadow of the transmitted file on the second Android application interface to the message receiving unit of the Android system side through the socket, and after the message receiving unit of the Android system side receives the message, the message receiving unit informs the window management service of the Android system to record the position information of the transmitted file on the second Android application interface and display the dragged shadow of the transmitted file.
Further, the file transfer unit of the apparatus includes:
a drag release subunit to:
the second Android application detects a mouse release event and analyzes the mouse release event; and a component communicating the Linux side and the Android side sends information of a second Android application with a mouse release event and the mouse release event to a message receiving unit of the Android system side through a socket, the message receiving unit of the Android system side receives the message and then informs a window management service of the Android system, and a control of the second Android application at the mouse release position receives the transmitted file.
Further, the file transfer unit of the apparatus includes:
a drag shadow subunit for generating a transferred file for:
after the first Android application detects a long mouse press and a moving event on a Linux side, the first Android application calls a function to notify an Android system in an Android container that a file starts to be dragged, wherein the notification information comprises: the data of the dragged file to be transmitted and callback information for drawing the dragging shadow. And the Android system responds to the call, returns the dragging shadow of the transmitted file required by the application, displays the dragging shadow on the first Android application interface, and moves along with the dragging process.
Fig. 3a is an interface schematic diagram of clicking a drag file on a first application interface according to the Linux-compatible Android provided in the embodiment of the present invention;
fig. 3b is a schematic interface diagram illustrating that a Linux compatible Android drags a file to a second application according to an embodiment of the present invention;
fig. 3c is a schematic interface diagram of the Linux-compatible Android system after a file is dragged and released in the second application interface according to the embodiment of the present invention.
Finally, it should be noted that: although the present invention has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that changes may be made in the embodiments and/or equivalents thereof without departing from the spirit and scope of the invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for transmitting files between Linux applications compatible with Android is characterized in that the method is applied to an environment compatible with Android running on Linux, and comprises the following steps:
step S1: creating a container on Linux, starting the container on the Linux, and starting an Android system in the container;
step S2: the method comprises the steps that a left mouse button is pressed at a file to be transmitted on a first Android application interface, an Android system generates a dragging shadow of the file to be transmitted, a Linux side sends information of a first Android application with a mouse click event and the mouse click event to the Android side, and the Android side records the information of the first Android application;
step S3: dragging the transmitted file to a second Android application interface, sending information of the second Android application to an Android side by the Linux side, recording the information of the second Android application and position information of the transmitted file by the Android side, and displaying a dragging shadow of the transmitted file;
step S4: and releasing a left mouse button on a second Android application interface, and receiving the transmitted file by a control at the released position of the mouse by using the second Android application.
2. The method for transferring files between Linux-compatible Android applications as recited in claim 1, wherein the step S2 specifically comprises:
pressing a left mouse button at a file to be transmitted on a first Android application interface; the Android system generates a dragging shadow of a file to be transmitted; the method comprises the steps that a first Android application detects a mouse left button click event and analyzes the mouse click event; the method comprises the steps that a component communicated with an Android side sends information of a first Android application with a mouse click event and the mouse click event to an information receiving unit of the Android system side through a socket, and after the information is received by the information receiving unit of the Android system side, a window management service of the Android system is informed to record information of the first Android application with the dragged file.
3. The method for transferring files between Linux-compatible Android applications as recited in claim 1, wherein the step S3 specifically comprises:
the method comprises the steps that a first Android application detects a mouse moving event, analyzes the mouse moving event, and sets a second Android application interface to be in an active state if a mouse is moved to the second Android application interface; and the component communicating with the Android side sends the information of the second Android application and the position information of the dragged shadow of the transmitted file on the second Android application interface to the message receiving unit of the Android system side through the socket, and after the message receiving unit of the Android system side receives the message, the message receiving unit informs the window management service of the Android system to record the position information of the transmitted file on the second Android application interface and display the dragged shadow of the transmitted file.
4. The method for transferring files between Linux-compatible Android applications as recited in claim 1, wherein the step S4 specifically comprises:
the second Android application detects a mouse release event and analyzes the mouse release event; and a component communicating the Linux side and the Android side sends information of a second Android application with a mouse release event and the mouse release event to a message receiving unit of the Android system side through a socket, the message receiving unit of the Android system side receives the message and then informs a window management service of the Android system, and a control of the second Android application at the mouse release position receives the transmitted file.
5. The method for transferring files between Linux-compatible Android applications of claim 1, further comprising:
after the first Android application detects a long mouse press and a moving event on a Linux side, the first Android application calls a function to notify an Android system in an Android container that a file starts to be dragged, wherein the notification information comprises: the data of the dragged file to be transmitted and callback information for drawing the dragging shadow. And the Android system responds to the call, returns the dragging shadow of the transmitted file required by the application, displays the dragging shadow on the first Android application interface, and moves along with the dragging process.
6. An apparatus for transmitting a file between Linux-compatible Android applications, the apparatus being applied in an environment compatible with Android running on Linux, the apparatus comprising:
a container creation initiating unit for: creating a container on Linux, starting the container on the Linux, and starting an Android system in the container;
a file transfer unit to:
the method comprises the steps that a left mouse button is pressed at a file to be transmitted on a first Android application interface, an Android system generates a dragging shadow of the file to be transmitted, a Linux side sends information of a first Android application with a mouse click event and the mouse click event to the Android side, and the Android side records the information of the first Android application;
dragging the transmitted file to a second Android application interface, sending information of the second Android application to an Android side by the Linux side, recording the information of the second Android application and position information of the transmitted file by the Android side, and displaying a dragging shadow of the transmitted file;
and releasing a left mouse button on a second Android application interface, and receiving the transmitted file by a control at the released position of the mouse by using the second Android application.
7. The Linux-compatible Android inter-application transfer file device of claim 6, wherein the file transfer unit of the device comprises:
a file transfer triggering subunit configured to:
pressing a left mouse button at a file to be transmitted on a first Android application interface; the Android system generates a dragging shadow of a file to be transmitted; the method comprises the steps that a first Android application detects a mouse left button click event and analyzes the mouse click event; the method comprises the steps that a component communicated with an Android side sends information of a first Android application with a mouse click event and the mouse click event to an information receiving unit of the Android system side through a socket, and after the information is received by the information receiving unit of the Android system side, a window management service of the Android system is informed to record information of the first Android application with the dragged file.
8. The Linux-compatible Android inter-application transfer file device of claim 6, wherein the file transfer unit of the device comprises:
a mobile drag processing subunit, configured to:
the method comprises the steps that a first Android application detects a mouse moving event, analyzes the mouse moving event, and sets a second Android application interface to be in an active state if a mouse is moved to the second Android application interface; and the component communicating with the Android side sends the information of the second Android application and the position information of the dragged shadow of the transmitted file on the second Android application interface to the message receiving unit of the Android system side through the socket, and after the message receiving unit of the Android system side receives the message, the message receiving unit informs the window management service of the Android system to record the position information of the transmitted file on the second Android application interface and display the dragged shadow of the transmitted file.
9. The Linux-compatible Android inter-application transfer file device of claim 6, wherein the file transfer unit of the device comprises:
a drag release subunit to:
the second Android application detects a mouse release event and analyzes the mouse release event; and a component communicating the Linux side and the Android side sends information of a second Android application with a mouse release event and the mouse release event to a message receiving unit of the Android system side through a socket, the message receiving unit of the Android system side receives the message and then informs a window management service of the Android system, and a control of the second Android application at the mouse release position receives the transmitted file.
10. The Linux-compatible Android inter-application transfer file device of claim 6, wherein the file transfer unit of the device comprises:
a drag shadow subunit for generating a transferred file for:
after the first Android application detects a long mouse press and a moving event on a Linux side, the first Android application calls a function to notify an Android system in an Android container that a file starts to be dragged, wherein the notification information comprises: the data of the dragged file to be transmitted and callback information for drawing the dragging shadow. And the Android system responds to the call, returns the dragging shadow of the transmitted file required by the application, displays the dragging shadow on the first Android application interface, and moves along with the dragging process.
CN202110937006.1A 2021-08-16 2021-08-16 Method and device for transferring files between applications of Linux compatible with Android Active CN113656196B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110937006.1A CN113656196B (en) 2021-08-16 2021-08-16 Method and device for transferring files between applications of Linux compatible with Android

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110937006.1A CN113656196B (en) 2021-08-16 2021-08-16 Method and device for transferring files between applications of Linux compatible with Android

Publications (2)

Publication Number Publication Date
CN113656196A true CN113656196A (en) 2021-11-16
CN113656196B CN113656196B (en) 2024-02-27

Family

ID=78491649

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110937006.1A Active CN113656196B (en) 2021-08-16 2021-08-16 Method and device for transferring files between applications of Linux compatible with Android

Country Status (1)

Country Link
CN (1) CN113656196B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113934464A (en) * 2021-12-14 2022-01-14 北京鲸鲮信息系统技术有限公司 Method and device for starting android application in Linux system and electronic equipment

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7681134B1 (en) * 2006-04-25 2010-03-16 Parallels Software International, Inc. Seamless integration and installation of non-host application into native operating system
CN102360272A (en) * 2011-11-04 2012-02-22 南京芒冠光电科技股份有限公司 Dynamic transparent tagging and mouse operating system
US20140237375A1 (en) * 2013-02-20 2014-08-21 Sap Portals Israel Ltd. Web-based operating system framework
CN104123080A (en) * 2014-07-15 2014-10-29 东莞市微云系统科技有限公司 Automation file dragging method
KR20150009377A (en) * 2013-07-16 2015-01-26 주식회사 틸론 Touch screen terminal apparatus and method for supporting dynamically displayed mouse user interface in server based computing system of terminal environment
CN104317587A (en) * 2014-10-22 2015-01-28 中国人民解放军国防科学技术大学 Automatic android mobile device oriented application generation method
CN105260250A (en) * 2015-09-10 2016-01-20 烽火通信科技股份有限公司 Linux system and Android system dual-system communication device
WO2016095383A1 (en) * 2014-12-19 2016-06-23 中兴通讯股份有限公司 Method for implementing application call and virtual machine
KR20160097415A (en) * 2015-02-06 2016-08-18 이강우 Application for operating multi-windows on android platform and the touch device equipped with the same
CN110221759A (en) * 2019-05-31 2019-09-10 广州视源电子科技股份有限公司 A kind of element dragging method, device, storage medium and interactive intelligent tablet computer
CN112068897A (en) * 2020-08-16 2020-12-11 北京麟卓信息科技有限公司 Android application file loading method and device based on mouse key simulation
CN112269604A (en) * 2020-11-11 2021-01-26 北京技德系统技术有限公司 Window interaction method and device for compatibly running Android application on Linux
CN112988675A (en) * 2021-03-12 2021-06-18 麒麟软件有限公司 Linux file manager-based Android file classified display method
CN113157230A (en) * 2019-09-18 2021-07-23 华为技术有限公司 Data transmission method and related equipment
CN113204307A (en) * 2021-05-06 2021-08-03 技德技术研究所(武汉)有限公司 File sending method and device compatible with Android system running on Linux

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7681134B1 (en) * 2006-04-25 2010-03-16 Parallels Software International, Inc. Seamless integration and installation of non-host application into native operating system
CN102360272A (en) * 2011-11-04 2012-02-22 南京芒冠光电科技股份有限公司 Dynamic transparent tagging and mouse operating system
US20140237375A1 (en) * 2013-02-20 2014-08-21 Sap Portals Israel Ltd. Web-based operating system framework
KR20150009377A (en) * 2013-07-16 2015-01-26 주식회사 틸론 Touch screen terminal apparatus and method for supporting dynamically displayed mouse user interface in server based computing system of terminal environment
CN104123080A (en) * 2014-07-15 2014-10-29 东莞市微云系统科技有限公司 Automation file dragging method
CN104317587A (en) * 2014-10-22 2015-01-28 中国人民解放军国防科学技术大学 Automatic android mobile device oriented application generation method
WO2016095383A1 (en) * 2014-12-19 2016-06-23 中兴通讯股份有限公司 Method for implementing application call and virtual machine
KR20160097415A (en) * 2015-02-06 2016-08-18 이강우 Application for operating multi-windows on android platform and the touch device equipped with the same
CN105260250A (en) * 2015-09-10 2016-01-20 烽火通信科技股份有限公司 Linux system and Android system dual-system communication device
CN110221759A (en) * 2019-05-31 2019-09-10 广州视源电子科技股份有限公司 A kind of element dragging method, device, storage medium and interactive intelligent tablet computer
CN113157230A (en) * 2019-09-18 2021-07-23 华为技术有限公司 Data transmission method and related equipment
CN112068897A (en) * 2020-08-16 2020-12-11 北京麟卓信息科技有限公司 Android application file loading method and device based on mouse key simulation
CN112269604A (en) * 2020-11-11 2021-01-26 北京技德系统技术有限公司 Window interaction method and device for compatibly running Android application on Linux
CN112988675A (en) * 2021-03-12 2021-06-18 麒麟软件有限公司 Linux file manager-based Android file classified display method
CN113204307A (en) * 2021-05-06 2021-08-03 技德技术研究所(武汉)有限公司 File sending method and device compatible with Android system running on Linux

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
GREGORY H. HUFF: "Z0lver: A cross-platform open-source App for transmission line analysis and circuit design", 《IEEE XPLORE》, 26 October 2015 (2015-10-26) *
王涛渊: "开源框架下OpenStack云管系统的实现", 《CNKI中国知网》, 15 April 2018 (2018-04-15) *
黄琳雅: "基于内核的Android文件访问控制研究", 《CNKI中国知网》, 15 November 2013 (2013-11-15) *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113934464A (en) * 2021-12-14 2022-01-14 北京鲸鲮信息系统技术有限公司 Method and device for starting android application in Linux system and electronic equipment

Also Published As

Publication number Publication date
CN113656196B (en) 2024-02-27

Similar Documents

Publication Publication Date Title
US11494010B2 (en) Touch support for remoted applications
US11803451B2 (en) Application exception recovery
TWI601055B (en) A unified extensible firmware interface (uefi) basic input/output system (bios)-controlled computing device and method and non-transitory medium thereof
CN111049935B (en) System for remotely controlling electronic equipment and electronic equipment thereof
EP4184308A1 (en) Data transmission method and device
WO2022179405A1 (en) Screen projection display method and electronic device
WO2022028494A1 (en) Multi-device data collaboration method and electronic device
US9293108B2 (en) Transmission apparatus and system of using the same
US11314391B2 (en) Navigation bar controlling method and terminal
CN111597000A (en) Small window management method and terminal
CN114327189B (en) Operation method, intelligent terminal and storage medium
CN104092815A (en) Method and device for inter-application information interaction based on Android system
WO2023124141A9 (en) Input method calling method and related device
CN113656196B (en) Method and device for transferring files between applications of Linux compatible with Android
WO2020000263A1 (en) Method and device for calling input method, and server and terminal
US11194598B2 (en) Information display method, terminal and storage medium
WO2023179183A1 (en) Subprogram synchronization processing
WO2023029983A1 (en) Control content dragging method and system, and electronic device
WO2024104131A1 (en) Method for gaining window focus in multi-window scenario, device and system
WO2022242326A1 (en) Display method and electronic device
WO2024046117A1 (en) Data transmission method and terminal device
WO2023005784A1 (en) Method for cross-system transmission of target object, and device
CN112882834A (en) Computer system and method for calling exclusive resource device
CN115525382A (en) Remote assistance method and device and terminal equipment
CN112181676A (en) Method and device for sharing recording data, terminal equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20231229

Address after: 518055, Building 3, Nanshan Zhiyuan Chongwen Park, No. 3370 Liuxian Avenue, Fuguang Community, Taoyuan Street, Shenzhen City, Guangdong Province, 1804

Applicant after: Shenzhen Jide Application Technology Co.,Ltd.

Address before: 518055 1803, building 3, Chongwen Park, Nanshan Zhiyuan, No. 3370 Liuxian Avenue, Fuguang community, Taoyuan Street, Nanshan District, Shenzhen, Guangdong

Applicant before: Shenzhen Jide Intelligent Technology Research Institute Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant