(Android implements the remote login function, including the progress bar loading login effect. The login background tells the UI thread to update. First, the UI thread tells the UI thread to update the interface and detect the user's login. The server uses the dos of DataOutputStream writeInt(int); To determine whether the login is successful (if the server comes back intgt; 0, the login is successful, otherwise it fails). After the login is successful, determine whether to save the password according to isRememberMe (the user name will be saved). If the connection to the server exceeds 5 seconds, It is also considered as a connection failure. Several instructions: 1. Remote login (user name and password exceed 3 bits in length, which means success. You can set the code on the server) 2. It contains loading effect (multi-threaded management, when the situation returns data) 3. If the login is unsuccessful, you can prompt the reason for the error 4. Save the information after login (such as user name and password, which can be set by yourself) Note: 1. The requirement is to set the androidManifest file. 2. The requirement is to write a server servlet code. 3. Don't look to configure web.xml (if it is a jsp, you don't need to configure it). 4. The requirement is to set the validateURL in the run method of the internal class LoginFailureHandler in Login.class)