×

Data transfer method and system

  • US 10,135,923 B2
  • Filed: 11/18/2013
  • Issued: 11/20/2018
  • Est. Priority Date: 08/31/2012
  • Status: Active Grant
First Claim
Patent Images

1. A data transfer method for a terminal coupled to a server by one or more networks, comprising:

  • detecting a screen-click event or a key-press event from a user of the terminal to transfer data;

    when the screen-click event or the key-press event is detected, triggering the terminal to detect a connection type of a current network between the terminal and the server by using an API (Application Programming Interface) provided by a web browser on the terminal;

    when the terminal detects that the connection type of the current network is a wireless fidelity (WiFi) connection, performing data transfer between the terminal and the server; and

    when the terminal detects that the connection type of the current network is a non-WiFi connection,prompting the user of the terminal whether to continue the data transfer;

    when the terminal determines that the user makes a selection to continue the data transfer, continuing performing the data transfer, wherein the data includes image data, and continuing performing the data transfer includes;

    detecting one or more network switching event during the data transfer;

    in response to each of the one or more detected network switching event, triggering the terminal to detect the connection type of the current network;

    determining that both a high-definition image and a standard-definition image corresponding to the image data are available;

    automatically downloading the high-definition image from the server without prompting the user if it is detected that the connection type of the current network is a WiFi connection; and

    automatically downloading the standard-definition image from the server after prompting the user if it is detected that the connection type of the current network is a non-WiFi connection;

    when the terminal determines that the user does not choose any prompted option related to whether to continue the data transfer, suspending the data transfer between the terminal and the server;

    after suspending the data transfer between the terminal and the server, continuing detecting the current network connection type; and

    when the terminal detects that the connection type of the current network is the WiFi connection, uploading data of an unfinished upload task to the server, or downloading data of an unfinished download task from the server, wherein the unfinished upload task or the unfinished download task is a previously suspended task in response to the detected network switching event of the switch from the WiFi connection to the non-WiFi connection,wherein the method further comprises;

    setting a preconfigured period based on a particular application; and

    triggering the detection of the current network connection type periodically based on the preconfigured period.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×