Android terminal and server data transfer solution

Source: Internet
Author: User

Android terminal and server data transfer solutions

Android Terminal three types and server transmission mode:

Socket Transmission

WebService Transmission

Post/get how to get Data

Network implementation conditions

Port: Specify

Protocol: TCP,UDP

Port: Specify

Protocol: SOAP

Port: Specify

Protocol: HTTP

Scope of Use

Large data volume, simple format, and high real-time demand for transmission

Standard Web Service interfaces, fixed interfaces, reusable applications

HTTP form, fixed interface, Web reusable

Transmission Pros and cons

Fast speed and low data volume

General speed, large data volume

General speed, data volume generally

Transfer format

Custom

Xml

Custom (JSON)

Development Requirements

Client : Receive send data, complete data stitching, parsing, data integrity verification, etc.

server-side : Receive send data, complete data stitching, parsing, data integrity verification, etc.

Client : The use of third-party Web services components, stitching parameters, parsing data, the need for threading data calls, the process is complex.

server-side : Creating a Web Service

Client : Parse the data (Android has JSON parsing class).

server-side : Generate HttpHandler-based ashx file interface

Comprehensive

Need to be re-developed, Cmwap is through proxy access to the network, socket transmission may be limited

Good data reuse, existing WinForm, WebForm, mobile phone can be called

Fast development, reuse of existing value-transfer pages

Android terminal and server data transfer solution

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.