(1. Remote login (if the user name and password exceed three digits, it is successful, and you can set the code on the server) 2. It is rich in loading (multi-threaded management, and the situation returns data) 3. If the login is unsuccessful, you can prompt error factors 4. Keep the information after login (such as the user name and password, you can set them yourself) 5. It has super complete and detailed comments (which can be understood by novices), and can be set as your own UI library Note: 1. The androidManifest file 1lt needs to be set; Activityandroid: name=. IndexPageandroid: label=The page after login/gt; 2lt; Activityandroid: name=. Registerandroid: label=Register/gt; lt;/ applicationgt; 3lt; uses-permissionandroid:name=android.permission.INTERNET/gt; 2. It is required to write a server servlet code 01StringuserName=request. getParameter (userName); 0203Stringpassword=request.getParameter(password); 0405System.out.println(userName - password); 0607DataOutputStreamdos=newDataOutputStream(response.getOutputStream()); 0809if(userName!=nullpassword!=null){1011if(userName.length()gt;3password.length()gt;3){1213dos.writeInt(16);1415}else{1617dos.writeInt(0);1819}2021}else{2223dos.writeInt(0);2425}2627dos.flush(); 2829dos.close(); 3. Don't worry about configuring web.xml (you don't need to configure it if it is a jsp) 4. The requirements are in Login The validateURL (the URL to verify the user name and password) in the run method of the internal class LoginFailureHandler in the class. This material includes the following attachments:
map\bin\fank\android\utils\HttpUtils.class
map\bin\siwi\map\android\IndexPage$1.class
map\bin\siwi\map\android\IndexPage.class
map\bin\siwi\map\android\Login$1.class
map\bin\siwi\map\android\Login$2.class
map\bin\siwi\map\android\Login$3.class
map\bin\siwi\map\android\Login$4.class
map\bin\siwi\map\android\Login$5.class
map\bin\siwi\map\android\Login$LoginFailureHandler.class
map\bin\siwi\map\android\Login.class
map\bin\siwi\map\android\R$attr.class
map\bin\siwi\map\android\R$drawable.class
map\bin\siwi\map\android\R$id.class
map\bin\siwi\map\android\R$layout.class
map\bin\siwi\map\android\R$string.class
map\bin\siwi\map\android\R.class
map\bin\siwi\map\android\Register$1.class
map\bin\siwi\map\android\Register$2.class
map\bin\siwi\map\android\Register$3.class
map\bin\siwi\map\android\Register.class
map\bin\classes.dex
map\bin\map.apk
map\bin\resources.ap_
map\gen\siwi\map\android\R.java
map\res\drawable\icon.png
map\res\layout\indexpage.xml
map\res\layout\login.xml
map\res\layout\main.xml
map\res\layout\register.xml
map\res\values\indexpage.xml)