|
Opening Httpconnection is slower than if you only download 1K of data, and now using this form to connect to the network will waste time connecting. Basically, the real phone is in 3-5 seconds, but if the network is not good, it may reach 40 seconds. When using HTTP connection, you can set the connection method of "Connection" to have different effects on the connection. You can set it to: "Keep-Alive" "close". The main difference between them is that: "Keep-Alive" download mode must wait for all data to be downloaded before a second connection can be made on the phone, and the "close" form will generate a second connection after the connection is generated Without having to wait for the data to download. |
|