Local sqlite database and server data in sync, how do most provincial traffic, the most efficient?
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
Local is the Android sqlite inside it?
If you want to provincial traffic, the need to design a simple command transmission structures.
Using socket communication.
For processing the data taken from the database, not the empty field as sending data.
0x11 byte of data can be used to account for this type of data traffic is the least of.
For example
0x11 for the server to the client
0x10 for client-server
The data server and the client are compared with the last modified time is best, if the same do not need to be transmitted.
Reply:
We are now the server is webService + sqlServer2008 data exchange using ksoap I have heard you say too understand
Reply:
You are using a WEB Services, the transfer format is XML, no problem doing synchronous transmission. But not the provincial traffic.
JSON XML efficient than some, this look of your project request.
JSON format used in mobile applications more more.
Reply:
Ah I know json used more, but I am only responsible for the realization of this project a small part of the functional design of what I did not say I was a rookie qualifications
Reply:
Provincial traffic ah, try binary transmission, data transmission big compression, such as gzip
Reply:
You use XML as a data transfer personally think that we're not much traffic. Only minimize composed of XML tags.
For example
No comments:
Post a Comment