CN106201217B - File transmission method and terminal - Google Patents

File transmission method and terminal Download PDF

Info

Publication number
CN106201217B
CN106201217B CN201610601037.9A CN201610601037A CN106201217B CN 106201217 B CN106201217 B CN 106201217B CN 201610601037 A CN201610601037 A CN 201610601037A CN 106201217 B CN106201217 B CN 106201217B
Authority
CN
China
Prior art keywords
terminal
boundary
data file
moving
icon corresponding
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.)
Active
Application number
CN201610601037.9A
Other languages
Chinese (zh)
Other versions
CN106201217A (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.)
Hisense Visual Technology Co Ltd
Original Assignee
Qingdao Hisense Electronics 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 Qingdao Hisense Electronics Co Ltd filed Critical Qingdao Hisense Electronics Co Ltd
Priority to CN201610601037.9A priority Critical patent/CN106201217B/en
Publication of CN106201217A publication Critical patent/CN106201217A/en
Application granted granted Critical
Publication of CN106201217B publication Critical patent/CN106201217B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0486Drag-and-drop
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides a file transmission method and a terminal, wherein a second terminal receives a data file and a first angle value sent by a first terminal, and then the second terminal displays a moving animation of an icon corresponding to the data file moving from a second boundary of a display screen of the second terminal to a second position according to the first angle value, because an included angle between a moving track of the icon corresponding to the data file moving from the second boundary to the second position and a normal line of the second boundary is the same as an included angle between a moving track of the icon corresponding to the data file on the display screen of the first terminal and a normal line of a first boundary of the first terminal, the angle of the icon flying out from the first boundary is ensured to be the same as the angle of flying in from the second boundary, thereby realizing the coherent actions of the data file flying out from one side of the display screen of the first terminal and flying in from one side of the display screen of the second terminal, the transmission process of the data file is visually displayed for the user, and the user experience degree of the terminal is improved.

Description

File transmission method and terminal
Technical Field
The embodiment of the invention relates to a wireless data transmission technology, in particular to a file transmission method and a terminal.
Background
With the continuous development of mobile terminals, people can use the mobile terminals to realize daily communication and can also perform operations such as file transmission and the like through the mobile terminals, so that the purpose of sharing files such as pictures, audios and videos is realized.
In the File transmission process, the mobile terminal transmits the File from one mobile terminal to another mobile terminal through hard disk copy, bluetooth transmission, File Transfer Protocol (FTP) based on a wireless network, local area network sharing and the like. Then, the mobile terminal receiving the file can perform operations such as playing, clicking and browsing on the file after finding the transmitted file by searching the directory.
However, in the file transmission process, the interaction mode of the mobile terminal is rigid, the transmission process of the transmission cannot be intuitively displayed to the user, and the user experience is poor.
Disclosure of Invention
The invention provides a file transmission method and a terminal, which can visually display the transmission process of a file to a user and improve the interactive flexibility and the user experience degree of the file transmission process.
In a first aspect, an embodiment of the present invention provides a file transmission method, including:
receiving a data file and a first angle numerical value sent by a first terminal, wherein the first angle numerical value is an included angle between a moving track of an icon corresponding to the data file on a display screen of the first terminal and a normal of a first boundary of the first terminal, and the moving track is a moving track of the icon corresponding to the data file dragged from a first position to the first boundary;
and displaying a moving animation of the icon corresponding to the data file moving from a second boundary of a display screen of a second terminal to a second position, wherein an included angle between a moving track of the icon corresponding to the data file moving from the second boundary to the second position and a normal line of the second boundary is the same as the first angle value.
In a second aspect, an embodiment of the present invention provides a file transmission method, including:
dragging an icon corresponding to a data file to be transmitted from a first position to a first boundary on a display screen of the first terminal;
determining a first angle value, wherein the first angle value is an included angle between a moving track of the icon moving from the first position to the first boundary and a normal line of the first boundary;
and sending the data file and the first angle numerical value to a second terminal, so that a display screen of the second terminal displays a moving animation in which an icon corresponding to the data file moves from a second boundary to a second position, wherein an included angle between a moving track of the icon corresponding to the data file moving from the second boundary to the second position and a normal line of the second boundary is the same as the first angle numerical value.
In a third aspect, an embodiment of the present invention provides a terminal, including:
the receiving and sending module is used for receiving a data file and a first angle value sent by a first terminal, wherein the first angle value is an included angle between a moving track of an icon corresponding to the data file on a display screen of the first terminal and a normal line of a first boundary of the first terminal, and the moving track is a moving track of the icon corresponding to the data file dragged from a first position to the first boundary;
and the display module is used for displaying the moving animation of the icon corresponding to the data file moving from the second boundary of the display screen of the second terminal to the second position, wherein the included angle between the moving track of the icon corresponding to the data file moving from the second boundary to the second position and the normal line of the second boundary is the same as the first angle value.
In a fourth aspect, an embodiment of the present invention provides a terminal, including:
the display module is used for displaying that an icon corresponding to the data file to be transmitted is dragged to a first boundary from a first position on the display screen of the first terminal;
the processing module is used for determining a first angle value, wherein the first angle value is an included angle between a moving track of the icon moving from the first position to the first boundary and a normal line of the first boundary;
and the transceiving module is used for sending the data file and the first angle value to a second terminal, so that a display screen of the second terminal displays a moving animation that an icon corresponding to the data file moves from a second boundary to a second position, wherein an included angle between a moving track of the icon corresponding to the data file moving from the second boundary to the second position and a normal line of the second boundary is the same as the first angle value.
In the file transmission method provided by the embodiment of the invention, the second terminal receives the data file and the first angle value sent by the first terminal, and then the second terminal displays the moving animation of the icon corresponding to the data file moving from the second boundary of the display screen of the second terminal to the second position according to the first angle value, because the included angle between the moving track of the icon corresponding to the data file moving from the second boundary to the second position and the normal of the second boundary is the same as the included angle between the moving track of the icon corresponding to the data file on the display screen of the first terminal and the normal of the first boundary of the first terminal, the angle of the icon flying out from the first boundary of the first terminal is ensured to be the same as the angle of flying in from the second boundary of the second terminal, thereby realizing the coherent actions of the data file flying out from one side of the display screen of the first terminal and flying in from one side of the display screen of the second terminal, the transmission process of the data file is visually displayed for the user, and the user experience degree of the terminal is improved. Meanwhile, the user can transmit the data file from the first terminal to the second terminal only by dragging the icon corresponding to the data file from the first position of the display screen of the first terminal to the first boundary, so that rigid interaction of data file transmission in the prior art is avoided, and interaction flexibility of data file transmission is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the method of the present invention, the drawings used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the method of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive effort.
FIG. 1 is a schematic diagram of a file transfer system according to the present invention;
FIG. 2 is a signaling diagram of a file transfer method according to a first embodiment of the present invention;
fig. 3 is a schematic diagram illustrating an example of a first terminal acquiring location information in a file transmission method according to the present invention;
fig. 4 is a schematic diagram illustrating an example of a first terminal determining whether a data file needs to be transmitted according to a file transmission method of the present invention;
fig. 5A is an exemplary diagram illustrating that a plurality of second terminals exist in the file transmission method according to the present invention;
fig. 5B is another exemplary diagram illustrating that two second terminals exist in the file transmission method according to the present invention;
fig. 6 is a schematic structural diagram of a first embodiment of the terminal according to the present invention;
fig. 7 is a schematic structural diagram of a second terminal according to the embodiment of the present invention;
fig. 8 is a schematic structural diagram of a third embodiment of the terminal of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention. The following detailed description of specific embodiments, structures, features, and operations according to the present application are described in connection with the accompanying drawings and preferred embodiments.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In the embodiment of the invention, the first terminal is a terminal with a touch display screen, such as a mobile phone with a touch function, a tablet computer and the like; the second terminal is a terminal with a display screen, such as a common desktop display, a mobile phone with a display screen, and the like.
FIG. 1 is a schematic diagram of a file transfer system according to the present invention. As shown in fig. 1, a file transfer system provided in an embodiment of the present invention includes a first terminal and a second terminal, where the first terminal has a first terminal display screen, the second terminal has a second terminal display screen, and the first terminal and the second terminal establish a wireless communication connection. In the file transmission process, a user drags the icon of the data file displayed on the first terminal display screen to the boundary of the first terminal display screen and transmits the icon, so that the icon of the data file flies out from one side of the first terminal display screen and flies in from one side of the second terminal display screen of the second terminal and is displayed.
It should be noted that, although only one first terminal and one second terminal are illustrated in fig. 1, the present invention is not limited thereto, and in practical applications, one first terminal may transmit files to a plurality of second terminals; correspondingly, one second terminal can also receive the files transmitted by a plurality of first terminals.
In the following, a file transmission method of the present invention is described in detail on the basis of fig. 1, specifically, fig. 2 can be referred to, and fig. 2 is a signaling diagram of a file transmission method according to a first embodiment of the present invention, which includes:
101. and dragging an icon corresponding to the data file to be transmitted from a first position to a first boundary on the display screen of the first terminal.
Specifically, the user can press the icon corresponding to the data file to be transmitted displayed on the display screen of the first terminal for a long time, and then move the icon of the data file from the first position of the display screen of the first terminal to any position of the first boundary of the first terminal through the dragging action.
Preferably, when the user performs the above operation on the icon of the data file displayed on the first terminal display screen, the first terminal display screen may display an animation process in which the icon is dragged from the first position to the first boundary.
102 determine a first angle value.
In this step, the first terminal determines an included angle between the movement track and a normal of the first boundary according to the movement track of the icon moving from the first position to the first boundary.
103. And sending the data file and the first angle value to a second terminal.
After the first angle value is determined, the first terminal sends the first angle value and the data file to the second terminal through wireless communication connection; correspondingly, the second terminal receives the first angle value and the data file.
104. And displaying the moving animation that the icon corresponding to the data file moves from the second boundary of the display screen of the second terminal to the second position.
After receiving the first angle value, the second terminal determines a moving track from the second boundary to the second position on a display screen of the second terminal according to the first angle value, and the determining principle is to keep an included angle between the moving track from the second boundary to the second position and a normal line of the second boundary to be the same as an included angle between the moving track from the first position to the first boundary and the normal line of the first boundary. After the track is determined, the second terminal moves the icon from the second boundary to the second position along the moving track, and at the moment, the animation that the icon moves from the second boundary to the second position is displayed on the display screen of the second terminal.
In the file transmission method provided by the embodiment of the invention, the second terminal receives and receives the data file and the first angle value sent by the first terminal, and then the second terminal displays the moving animation of the icon corresponding to the data file moving from the second boundary of the display screen of the second terminal to the second position according to the first angle value, because the included angle between the moving track of the icon corresponding to the data file moving from the second boundary to the second position and the normal of the second boundary is the same as the included angle between the moving track of the icon corresponding to the data file on the display screen of the first terminal and the normal of the first boundary of the first terminal, the angle of the icon flying out from the first boundary of the first terminal is ensured to be the same as the angle of the icon flying in from the second boundary of the second terminal, so that the consecutive actions of the data file flying out from one side of the display screen of the first terminal and flying in from one side of the display screen of the second terminal are realized, the transmission process of the data file is visually displayed for the user, and the user experience degree of the terminal is improved. Meanwhile, the user can transmit the data file from the first terminal to the second terminal only by dragging the icon corresponding to the data file from the first position of the display screen of the first terminal to the first boundary, so that rigid interaction of data file transmission in the prior art is avoided, and interaction flexibility of data file transmission is improved.
In the above embodiment, the included angle between the moving track from the second boundary to the second position and the normal line of the second boundary is the same as the included angle between the moving track from the first position to the first boundary and the normal line of the first boundary, so as to ensure that the angle of the icon "flying out" from the first boundary of the first terminal is the same as the angle of the icon "flying in" from the second boundary of the second terminal, thereby implementing the consistency of the animation. In this process, the moving locus of the second boundary to the second position may be the same as or different from the moving locus of the first boundary to the first position. When the two movement tracks are different, the straight-line distance between the second boundary and the second position and the straight-line distance between the first boundary and the first position can be the same or different, and the icon of the data file can start from any position of the second boundary and can reach the second position along any movement track. When the two moving tracks are the same, the straight-line distance between the second boundary and the second position is the same as the straight-line distance between the first boundary and the first position, and the moving track between the second boundary and the second position is obtained in a reverse direction of the moving track between the first position and the first boundary.
Specifically, when the moving track of the icon from the second boundary to the second position is the same as the track from the first position to the first boundary, the second terminal determines the moving track of the icon from the second boundary to the second position according to the moving track data after receiving the moving track data from the first terminal, where the moving track data is sent from the first terminal. In the determination process, an on-screen display (OSD) drawing module is arranged on the second terminal, and the OSD drawing module draws the moving track from any position of the second boundary to the second position along the coordinate and the motion direction provided by the moving track data of the icon of the data file, so that the effect of 'flying in' of the icon of the data file from one side of the display screen of the second terminal is reversely restored.
Optionally, in the above embodiment, before the first terminal determines an included angle between a moving trajectory from the first position to the first boundary and a normal line of the first boundary, the position information of the first terminal relative to the second terminal is further obtained.
Specifically, the first terminal is provided with a first positioning module, the second terminal is provided with a second positioning module, and the first positioning module detects the signal intensity of the second positioning module and determines the position information according to the signal intensity.
For example, the second terminal has two second positioning modules, and the two second positioning modules are respectively located at the left and right sides of the display screen of the second terminal, specifically, fig. 3 may be referred to, and fig. 3 is an exemplary schematic diagram of the first terminal obtaining the location information in the file transmission method of the present invention. In the position information obtaining process, a first positioning module (not shown) on the first terminal detects the signal intensity of the two second positioning modules, the signal intensity of the second positioning module on the right side is higher than that of the second positioning module on the left side, and then the first terminal determines that the first terminal is located on the right side of the central axis of the second terminal display screen of the second terminal. Wherein, the axis is parallel with the limit of the left and right sides of second terminal display screen.
For another example, the second terminal has two second positioning modules, the two second positioning modules are respectively located at the upper side and the lower side of the display screen of the second terminal, the first positioning module detects the signal intensity of the two second positioning modules, determines that the signal intensity of the second positioning module at the lower side is higher than that of the second positioning module at the upper side, and then the first terminal determines that the first terminal is located at the upper side of the central axis of the display screen of the second terminal. And the central axis is parallel to the edges of the upper side and the lower side of the second terminal display screen.
After the position information is obtained, the first terminal determines whether the data file needs to be transmitted or not according to the first boundary and the position information.
Specifically, when the data file reaches a first boundary of the first terminal, the first terminal determines whether the data file dragged to the first boundary by the user needs to be transmitted according to the first boundary and the position information. The first boundary is any boundary of the display screen of the first terminal. In the embodiment of the present invention, a direction in which the first position points vertically to the first boundary is a first direction, and the position information indicates that the first terminal is located in a second direction of the second terminal. The first terminal determines whether a process of transmitting a data file is required, that is, determines whether the first direction and the second direction are opposite directions. Specifically, referring to fig. 4, fig. 4 is a schematic diagram illustrating an example of determining whether to transmit a data file by a first terminal in the file transmission method according to the present invention.
Referring to fig. 4, the first boundary is a left side of the display screen of the first terminal, the first direction is left, the second direction is right, and the first direction is opposite to the second direction, at this time, when the icon of the data file reaches the first boundary, the first terminal determines that the data file needs to be transmitted to the second terminal, that is, the file transmission function is triggered, and the data file is transmitted; otherwise, if the first boundary is the edge on the right side of the display screen of the first terminal, the first direction is the same as the second direction, and the first terminal does not transmit the data file to the second terminal, that is, the file transmission function is not triggered.
Optionally, in the foregoing embodiment, when the data file, the movement track data, or the first angle value is large, the data file, the movement track data, or the first angle data may be compressed first, and then the compressed data file, the movement track data, or the first angle value may be sent to the second terminal. Correspondingly, the second terminal decompresses the data file or the moving track data or the first angle data and performs subsequent processing.
In the scenario shown in fig. 4, there is only one first terminal and one second terminal, and the present invention is described in detail below by taking an example that there are multiple second terminals in the file transfer system. Specifically, referring to fig. 5A and 5B, fig. 5A is an exemplary diagram illustrating that a plurality of second terminals exist in the file transmission method of the present invention, and fig. 5B is another exemplary diagram illustrating that two second terminals exist in the file transmission method of the present invention.
Referring to fig. 5A, a first terminal establishes wireless communication connections with a second terminal a and a second terminal B, respectively. The wireless data module of the first terminal obtains the models, physical identity identification numbers and the like of the second terminal A and the second terminal B, and the first positioning module of the first terminal determines the relative positions of the first positioning module of the first terminal, the second terminal A and the second terminal B in real time and informs the second terminals A and B of the position information. As shown in fig. 5A, the first terminal determines that it is located on the right side of the central axis of the display screen of the second terminal a, is located on the right side of the central axis of the display screen of the second terminal B, and is closer to the second terminal B. For example, the first positioning module determines that the second terminal B is closer to the first terminal if the signal strength of the second positioning module on the right side of the second terminal B is the greatest among the two second positioning modules of the second terminal a and the two second positioning modules of the second terminal B.
When the data file reaches the first boundary of the first terminal, the first terminal judges whether to trigger the file transmission function according to the position information of the position of the first terminal relative to the second terminal B. When the first terminal is located on the right side of the central axis of the display screen of the second terminal B, the file transfer function is triggered only when the icon of the data file reaches the left boundary of the display screen of the first terminal. The specific transmission process can be referred to in the description of fig. 4, and is not described herein again.
Referring to fig. 5B, the first terminal establishes wireless communication connections with the second terminal a and the second terminal B, respectively. The wireless data module of the first terminal obtains the models, physical identity identification numbers and the like of the second terminal A and the second terminal B, and the first positioning module of the first terminal determines the relative positions of the first positioning module of the first terminal, the second terminal A and the second terminal B in real time and informs the second terminals A and B of the position information. As shown in fig. 5B, the first terminal determines that it is located on the right side of the central axis of the display screen of the second terminal a and on the left side of the central axis of the second terminal B.
When the data file reaches the first boundary of the first terminal, the first terminal judges whether to trigger the file transmission function according to the position information of the position of the first terminal relative to the second terminal A and the second terminal B. Since the first terminal is located at the right side of the central axis of the second terminal a, the file transfer function is triggered only when the icon of the data file reaches the left boundary of the first terminal display screen of the first terminal. Similarly, since the first terminal is located on the left side of the central axis of the second terminal B, the file transfer function is triggered only when the icon of the data file reaches the right boundary of the first terminal display screen of the first terminal. The specific transmission process can be referred to in the description of fig. 4, and is not described herein again.
In the above embodiment, when the icon of the data file "flies out" from the first boundary of the first terminal and "flies in" from the second boundary of the second terminal, the angles of the "fly-out" and "fly-in" are both first angle values, and the first angle value is δ, as shown by δ in fig. 4.
Preferably, if a movement locus of the icon of the data file in the first terminal is in an oblique direction of the display screen of the first terminal, and the movement locus, that is, an angle between the movement locus from the first position to the first boundary and a normal line of the first boundary is δ, the icon of the data file in the second terminal "flies in" from a position below a midpoint of the second boundary, and an angle between the movement locus from the second boundary to the second position and the normal line of the second boundary is δ.
Preferably, if a movement trajectory of the icon of the data file in the first terminal is diagonally downward from the display screen of the first terminal, and the movement trajectory, that is, an angle between the movement trajectory of the first position to the first boundary and the normal of the first boundary is δ, the icon of the data file in the second terminal "flies in" from a position above the midpoint of the second boundary, and an angle between the movement trajectory of the icon moving from the second boundary to the second position and the normal of the second boundary is δ.
Optionally, in the foregoing embodiment, in a possible implementation manner, the icon may "fly in" from any position of the second boundary of the second terminal, where the second position is any position on the screen of the second mobile terminal; in another possible implementation, the icon may "fly" from a fixed location on the second boundary into the second terminal display, and the second location may also be a fixed location or an arbitrary location on the second terminal display; in yet another possible implementation, the specific location of "fly-in" from the second boundary may be determined based on the location of "fly-out" of the icon from the first boundary of the first terminal display. Hereinafter, a specific position where the icon "flies out" from the first boundary of the first terminal display screen is referred to as a third position, a specific position where the icon "flies in" from the second boundary is referred to as a fourth position, and how to determine the fourth position from the second boundary according to the third position on the first boundary will be described in detail.
Specifically, first, the first terminal determines a first ratio, the first ratio indicating a length ratio of the first portion to the first boundary, the first boundary being divided into the first portion and the second portion from a third position, the length of the first portion being less than or equal to the length of the second portion. Then, the first terminal sends the first ratio to the second terminal, and correspondingly, the second terminal receives the first ratio. After receiving the second proportion, the second terminal determines a fourth position on the second boundary according to the first proportion. In the determining process, the second terminal divides the second boundary into a third part and a fourth part from the midpoint of the second boundary; the second terminal determines a fourth position from the third part, the fourth position divides the third part into a fifth part and a sixth part, and the ratio of the length of the fifth part to the length of the third part is a first ratio; or, the second terminal determines a fourth position from the fourth portion, the fourth position divides the fourth portion into a seventh portion and an eighth portion, and the ratio of the length of the seventh portion to the length of the fourth portion is the first ratio. In particular, see fig. 2.
Referring to fig. 2, the first boundary includes a first portion having a length X and a second portion, the value of X is smaller than or equal to the length of the second portion, the X position is a third position, and if the length of the first boundary is 1, a first ratio determined according to the length of the first portion and the length of the first boundary is X/1. The second boundary is divided into a third portion and a fourth portion from a fourth position, the lengths of the third portion and the fourth portion are 1/2 respectively assuming that the length of the second boundary is 1, a fourth position is determined on the third portion, the fourth position divides the third portion into a fifth portion and a sixth portion according to a first ratio, wherein the length of the fifth portion is Y, and the ratio of Y to the third portion is the first ratio.
Referring to fig. 2, preferably, if a moving trajectory of an icon of a data file in the first terminal is in an oblique direction of the display screen of the first terminal, and the moving trajectory, that is, an included angle between a moving trajectory from the first position to the third position and a normal line of the first boundary is δ, the icon of the data file in the second terminal enters from a fourth position below a midpoint of the second boundary, and an included angle between a trajectory from the fourth position to the second position and a normal line of the second boundary is δ. And, the distance between the third position and the upper part of the first terminal is X, the first ratio is X: 1. when the second terminal determines the trajectory of the fourth position to the second position, the fourth position is located at a distance Y from the lower portion of the second terminal, and the ratio of Y to the second boundary of 1/2 is a first ratio.
Preferably, if a moving trajectory of the icon of the data file in the first terminal is obliquely downward of the display screen of the first terminal, and an angle between the moving trajectory, that is, a trajectory from the first position to the third position, and a normal line of the first boundary is δ, the icon of the data file in the second terminal enters from a position above a midpoint of the second boundary, that is, a fourth position, and an angle between a moving trajectory from the fourth position to the second position, and a normal line of the second boundary is δ. And, if the distance between the third position and the lower part of the first terminal is X, the first ratio is X: 1. when the second terminal determines the track of the fourth position to the second position, the fourth position is at a distance Y from the upper part of the second terminal, and the ratio of Y to the second boundary of 1/2 is the first ratio.
Fig. 6 is a schematic structural diagram of a first terminal according to the present invention, where the terminal provided in this embodiment is used to implement each step of the method applied to the second terminal according to the present invention. Specifically, the terminal provided in the embodiment of the present invention includes:
the receiving and sending module 11 is configured to receive a data file and a first angle value sent by a first terminal, where the first angle value is an included angle between a moving track of an icon corresponding to the data file on a display screen of the first terminal and a normal of a first boundary of the first terminal, and the moving track is a moving track of the icon corresponding to the data file dragged from a first position to the first boundary;
and the display module 12 is configured to display a moving animation in which the icon corresponding to the data file moves from a second boundary of a display screen of a second terminal to a second position, where an included angle between a moving track of the icon corresponding to the data file moving from the second boundary to the second position and a normal line of the second boundary is the same as the first angle value.
In the terminal provided in the embodiment of the present invention, the transceiver module receives the data file and the first angle value sent by the first terminal, and further, according to the first angle value, the display module displays the moving animation in which the icon corresponding to the data file moves from the second boundary of the display screen of the second terminal to the second position, because an included angle between a moving trajectory of the icon corresponding to the data file moving from the second boundary to the second position and a normal of the second boundary is the same as an included angle between a moving trajectory of the icon corresponding to the data file on the display screen of the first terminal and a normal of the first boundary of the first terminal, an angle at which the icon "flies out" from the first boundary of the first terminal is the same as an angle at which the icon "flies in" from the second boundary of the second terminal, thereby realizing a coherent action in which the data file "flies out" from one side of the display screen of the first terminal "and" flies in "from one side of the display screen of the second terminal, the transmission process of the data file is visually displayed for the user, and the user experience degree of the terminal is improved. Meanwhile, the user can transmit the data file from the first terminal to the second terminal only by dragging the icon corresponding to the data file from the first position of the display screen of the first terminal to the first boundary, so that rigid interaction of data file transmission in the prior art is avoided, and interaction flexibility of data file transmission is improved.
Optionally, in an embodiment of the present invention, a moving track of the icon corresponding to the data file moving from the second boundary to the second position is the same as a moving track of the icon corresponding to the data file moving from the first position to the first boundary.
Fig. 7 is a schematic structural diagram of a second embodiment of the terminal of the present invention, and referring to fig. 7, the terminal provided in the embodiment of the present invention further includes, on the basis of fig. 6: a processing module 13;
the transceiver module 11 is further configured to receive movement trajectory data, sent by the first terminal, of the icon corresponding to the data file moving from the first position to the first boundary before the display module 12 displays a movement animation in which the icon corresponding to the data file moves from the second boundary of the display screen of the second terminal to the second position;
the processing module 13 is configured to determine, according to the first angle value and the movement trajectory data, a movement trajectory of the icon corresponding to the data file moving from the second boundary to the second position.
Optionally, the transceiver module 11 is further configured to receive a third location sent by the first terminal before the display module 12 displays a moving animation in which the icon corresponding to the data file moves from a second boundary of a display screen of a second terminal to a second location, where the third location is a location of the icon corresponding to the data file on the first boundary;
the processing module 13 is configured to determine a fourth position on the second boundary according to the third position;
the display module 12 is configured to display an animation that the icon corresponding to the data file moves from the fourth position to the second position of the display screen of the second terminal.
Fig. 8 is a schematic structural diagram of a third embodiment of the terminal of the present invention, where the terminal provided in this embodiment is used to implement each step of the method applied to the first terminal in the present invention. Specifically, the terminal provided in the embodiment of the present invention includes:
the display module 21 is configured to display that an icon corresponding to a data file to be transmitted is dragged from a first position to a first boundary on the first terminal display screen;
the processing module 22 is configured to determine a first angle value, where the first angle value is an included angle between a moving trajectory of the icon moving from the first position to the first boundary and a normal line of the first boundary;
the transceiving module 23 is configured to send the data file and the first angle value to a second terminal, so that a display screen of the second terminal displays a moving animation in which an icon corresponding to the data file moves from a second boundary to a second position, where an included angle between a moving trajectory of the icon corresponding to the data file moving from the second boundary to the second position and a normal line of the second boundary is the same as the first angle value.
Optionally, the processing module 22 is further configured to determine moving trajectory data of the icon corresponding to the data file moving from the first position to the first boundary before the transceiver module 23 sends the data file and the first angle value to the second terminal;
the transceiver module 23 is specifically configured to send the data file, the first angle value, and the movement trajectory data to a second terminal.
Optionally, the processing module 22 is further configured to determine, before the sending module sends the data file and the first angle value, position information of the first terminal relative to the second terminal;
the sending module is specifically configured to send the data file, the first angle value, and the location information to a second terminal.
Optionally, the sending module is further configured to send a third location to the second terminal, where the third location is a location of the icon corresponding to the data file on the first boundary, so that the second terminal determines a fourth location on the second boundary according to the third location.
In the terminal provided in the embodiment of the present invention, after the processing module determines the first angle value of the included angle between the moving track of the icon corresponding to the data file to be transmitted from the first position to the first boundary and the normal line of the first boundary, the transceiver module sends the first angle value to the second terminal, and the second terminal can display the moving animation of the icon corresponding to the data file moving from the second boundary to the second position on the display screen of the second terminal according to the first angle value, because the included angle between the moving track of the icon corresponding to the data file moving from the second boundary to the second position and the normal line of the second boundary is the same as the included angle between the moving track of the icon corresponding to the data file on the display screen of the first terminal and the normal line of the first boundary of the first terminal, it is ensured that the angle at which the icon "flies out" from the first boundary of the first terminal is the same as the angle at which the icon flies in "from the second boundary of the second terminal, therefore, the consecutive actions that the data file flies out from one side of the first terminal display screen and flies in from one side of the second terminal display screen are realized, the transmission process of the data file is visually displayed for a user, and the user experience degree of the terminal is improved. Meanwhile, the user can transmit the data file from the first terminal to the second terminal only by dragging the icon corresponding to the data file from the first position of the display screen of the first terminal to the first boundary, so that rigid interaction of data file transmission in the prior art is avoided, and interaction flexibility of data file transmission is improved.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (9)

1. A method for file transfer, comprising:
receiving a data file and a first angle numerical value sent by a first terminal, wherein the first angle numerical value is an included angle between a moving track of an icon corresponding to the data file on a display screen of the first terminal and a normal of a first boundary of the first terminal, and the moving track is a moving track of the icon corresponding to the data file dragged from a first position to the first boundary;
displaying a moving animation of moving the icon corresponding to the data file from a second boundary of a display screen of a second terminal to a second position, wherein an included angle between a moving track of the icon corresponding to the data file moving from the second boundary to the second position and a normal line of the second boundary is the same as the first angle value;
and the moving track of the icon corresponding to the data file from the second boundary to the second position is the same as the moving track of the icon corresponding to the data file from the first position to the first boundary.
2. The method of claim 1, wherein prior to the animation of moving the icon corresponding to the data file from the second border of the display screen of the second terminal to the second location, further comprising:
receiving movement track data of an icon corresponding to the data file, which is sent by the first terminal, moving from the first position to the first boundary;
and determining the moving track of the icon corresponding to the data file from the second boundary to the second position according to the first angle value and the moving track data.
3. The method of claim 1, wherein prior to the animation of moving the icon corresponding to the data file from the second border of the display screen of the second terminal to the second location, further comprising:
receiving a third position sent by the first terminal, wherein the third position is a position of an icon corresponding to the data file on the first boundary;
determining a fourth location on the second boundary based on the third location;
displaying a moving animation in which the icon corresponding to the data file moves from a second boundary of a display screen of a second terminal to a second position, the moving animation comprising:
and displaying the animation that the icon corresponding to the data file moves from the fourth position to the second position of the display screen of the second terminal.
4. A method for file transfer, comprising:
dragging an icon corresponding to a data file to be transmitted from a first position to a first boundary on a display screen of a first terminal;
determining a first angle value, wherein the first angle value is an included angle between a moving track of the icon moving from the first position to the first boundary and a normal line of the first boundary;
sending the data file and the first angle numerical value to a second terminal, so that a display screen of the second terminal displays a moving animation in which an icon corresponding to the data file moves from a second boundary to a second position, wherein an included angle between a moving track of the icon corresponding to the data file moving from the second boundary to the second position and a normal line of the second boundary is the same as the first angle numerical value;
and the moving track of the icon corresponding to the data file from the second boundary to the second position is the same as the moving track of the icon corresponding to the data file from the first position to the first boundary.
5. The method of claim 4, wherein before transmitting the data file and the first angle value to the second terminal, further comprising:
determining movement track data of the icon corresponding to the data file moving from the first position to the first boundary;
correspondingly, the sending the data file and the first angle value to the second terminal includes:
and sending the data file, the first angle value and the moving track data to a second terminal.
6. The method of claim 5, wherein before transmitting the data file and the first angle value to the second terminal, further comprising:
determining location information of the first terminal relative to the second terminal;
correspondingly, the sending the data file and the first angle value to the second terminal includes:
and sending the data file, the first angle value and the position information to a second terminal.
7. The method of claim 5, wherein before transmitting the data file and the first angle value to the second terminal, further comprising:
and sending a third position to the second terminal, wherein the third position is a position of the icon corresponding to the data file on the first boundary, so that the second terminal determines a fourth position on the second boundary according to the third position.
8. A terminal, characterized in that the terminal comprises:
the receiving and sending module is used for receiving a data file and a first angle value sent by a first terminal, wherein the first angle value is an included angle between a moving track of an icon corresponding to the data file on a display screen of the first terminal and a normal line of a first boundary of the first terminal, and the moving track is a moving track of the icon corresponding to the data file dragged from a first position to the first boundary;
the display module is used for displaying a moving animation of the icon corresponding to the data file moving from a second boundary of a display screen of a second terminal to a second position, wherein an included angle between a moving track of the icon corresponding to the data file moving from the second boundary to the second position and a normal line of the second boundary is the same as the first angle value;
and the moving track of the icon corresponding to the data file from the second boundary to the second position is the same as the moving track of the icon corresponding to the data file from the first position to the first boundary.
9. A terminal, characterized in that the terminal comprises:
the display module is used for displaying that an icon corresponding to the data file to be transmitted is dragged from a first position to a first boundary on a display screen of the first terminal;
the processing module is used for determining a first angle value, wherein the first angle value is an included angle between a moving track of the icon moving from the first position to the first boundary and a normal line of the first boundary;
the receiving and sending module is used for sending the data file and the first angle value to a second terminal, so that a display screen of the second terminal displays a moving animation that an icon corresponding to the data file moves from a second boundary to a second position, wherein an included angle between a moving track of the icon corresponding to the data file moving from the second boundary to the second position and a normal line of the second boundary is the same as the first angle value;
and the moving track of the icon corresponding to the data file from the second boundary to the second position is the same as the moving track of the icon corresponding to the data file from the first position to the first boundary.
CN201610601037.9A 2016-07-27 2016-07-27 File transmission method and terminal Active CN106201217B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610601037.9A CN106201217B (en) 2016-07-27 2016-07-27 File transmission method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610601037.9A CN106201217B (en) 2016-07-27 2016-07-27 File transmission method and terminal

Publications (2)

Publication Number Publication Date
CN106201217A CN106201217A (en) 2016-12-07
CN106201217B true CN106201217B (en) 2019-12-24

Family

ID=57495865

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610601037.9A Active CN106201217B (en) 2016-07-27 2016-07-27 File transmission method and terminal

Country Status (1)

Country Link
CN (1) CN106201217B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020133397A1 (en) * 2018-12-29 2020-07-02 深圳市柔宇科技有限公司 Display method based on data transmission, and electronic device and computer-readable storage medium
CN116431038B (en) * 2023-06-13 2023-10-03 Tcl通讯科技(成都)有限公司 Connection on-off prompting method, device, medium and equipment for external storage equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103248643A (en) * 2012-02-08 2013-08-14 海尔集团公司 File receiving display method and system
CN103873637A (en) * 2012-12-10 2014-06-18 腾讯科技(深圳)有限公司 Cross-device transmission method and device
CN103885684A (en) * 2012-12-20 2014-06-25 三星电子(中国)研发中心 Oriented transmitting method and portable electronic equipment adopting same
CN105337641A (en) * 2014-06-06 2016-02-17 北京壹人壹本信息科技有限公司 File transmission method and system, and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103248643A (en) * 2012-02-08 2013-08-14 海尔集团公司 File receiving display method and system
CN103873637A (en) * 2012-12-10 2014-06-18 腾讯科技(深圳)有限公司 Cross-device transmission method and device
CN103885684A (en) * 2012-12-20 2014-06-25 三星电子(中国)研发中心 Oriented transmitting method and portable electronic equipment adopting same
CN105337641A (en) * 2014-06-06 2016-02-17 北京壹人壹本信息科技有限公司 File transmission method and system, and mobile terminal

Also Published As

Publication number Publication date
CN106201217A (en) 2016-12-07

Similar Documents

Publication Publication Date Title
KR102045665B1 (en) Icon display method and device
US9967388B2 (en) Mirrored interface navigation of multiple user interfaces
EP2842353B1 (en) Orientational collaboration of data between multiple devices
CN104702665B (en) Information sharing method and information sharing apparatus
US10111029B2 (en) User recommendation method and system, mobile terminal, and server
CN102811184B (en) Sharing method, terminal, server and system for custom emoticons
JP6849612B2 (en) Methods and devices for transmitting business objects
CN103189864A (en) Methods and apparatuses for determining shared friends in images or videos
CN104811816A (en) Video image object bullet screen marking method, device and system
TW201805801A (en) Method and device for displaying application information
KR101459552B1 (en) Method for displaying object in layout region of device and the device
CN107728885A (en) Control method, device, mobile terminal and the storage medium of multitask
CN103455270A (en) Video file transmission method and video file transmission system
CN104866262A (en) Wearable Device
CN105430183B (en) A kind of method and mobile terminal of mobile terminal switching account
WO2015058623A1 (en) Multimedia data sharing method and system, and electronic device
CN104915107A (en) Media shooting method and terminal
CN104426939A (en) Information processing method and electronic equipment
CN110233742A (en) A kind of group's method for building up, system, terminal and server
CN104346022A (en) Method and apparatus for message processing
US20160349964A1 (en) Method and computing device for performing operation on icon cell
CN113434065A (en) Information processing method and terminal
CN106201217B (en) File transmission method and terminal
CN106325650A (en) 3D dynamic display method based on human-computer interaction and mobile terminal
CN111756615A (en) Session message display method, device, terminal equipment and computer storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218

Patentee after: Hisense Visual Technology Co., Ltd.

Address before: 266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218

Patentee before: QINGDAO HISENSE ELECTRONICS Co.,Ltd.

CP01 Change in the name or title of a patent holder