1. Technical Field
The present disclosure relates to data transmitting and data receiving technology, and particularly, to a data transmitting device, a data receiving device, and a data exchanging method.
2. Description of Related Art
Data can be transmitted between portable electronic devices, for example mobile phones, through short distance wireless communication protocols. A conventional method for a portable electronic device to transmit data to another portable electronic device through short distance wireless communication usually includes selecting to-be-transmitted data in response to user input, searching for target electronic devices, displaying a list of the found target electronic devices, selecting one of the found target electronic devices, and transmitting the selected data to the selected electronic device. This conventional method is time-consuming.
The components of the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the present disclosure. Moreover, in the drawings, like reference numerals designate corresponding parts throughout several views.
Referring to
The touch determining application 282 is operable to determine a start position and an end position of a touch track according to sensing signals from the touch display 22. As shown in
The server 10 receives and stores the data from the data transmitting device 20. In this embodiment, the server 10 stores the data from the data transmitting device 20 for a preset period. After the preset period, the server 10 deletes the data received from the data transmitting device 20.
Referring to
The touch determining application 382 is operable to determine a start position of a touch track according to sensing signals generated from the touch display 32. If the start position is on the edge of the user interface 322, the executing application 384 is operable to transmit a download command to the server 10. In this embodiment, the download command includes a friend list listing identifications of electronic devices of friends in the friend list. Data from each electronic device in the friend list is needed by the data receiving device 30. In this embodiment, the identification of the data transmitting device 20 is in the friend list. The server 10 determines that the data from the data transmitting device 20 is needed by the data receiving device 30 according to the download command, and transmits the data received from the data transmitting device 20 to the data receiving device 30. The executing application 34 is operable to display the icon corresponding to the data received from the server 10 on the user interface 322. As shown in
In this embodiment, as the server 10 stores the data received from the data transmitting device 20 for the preset period, if the server 10 receives the download command from the data receiving device 30 after the preset period, the server 10 transmits a message to the data receiving device 30 to prompt that no data needed by the data receiving device 30 is stored in the server 10.
In step S501, the touch determining application 282 is operable to determine a first start position and a first end position of a first touch track according to sensing signals from the touch display 22.
In step S502, if one icon of the user interface 222 is displayed on the first start position, and the first end position is on the edge of the user interface 222, the executing application 284 is operable to transmit data corresponding to the one icon to the server 10.
In step S503, the server 10 receives and stores the data from the data transmitting device 20.
In step S504, the touch determining application 382 determines a second start position of a second touch track according to sensing signals from the touch display 32.
In step S505, if the second start position is on the edge of the user interface 322, the executing application 384 is operable to transmit a download command to the server 10.
In step S506, the server 10 transmits the data received from the data transmitting device 20 to the data receiving device 30 according to the download command
In step S507, the executing application 384 is operable to receive and store the data from the server 10.
Although the present disclosure has been specifically described on the basis of the exemplary embodiment thereof, the disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the embodiment without departing from the scope and spirit of the disclosure.
| Number | Date | Country | Kind |
|---|---|---|---|
| 2012103321236 | Sep 2012 | CN | national |