Basic Configuration
1.servlet:mina;java
2.client:mina;android, Baidu Map SDK
3.period:2weeks Project Analysis
1.Moudle:
Network transport:
-Getcodebean{string Phone}
Custom–>servlet,driver–>servlet, request verification Code
-Codebean{string Code}
Servlet–>custom,servlet–>driver, return validation code
-Loginbean{boolean Isfromcustom, String phone, string code}
Custom–>servlet,driver–>servlet, requesting Login
-Loginresultbean{boolean Issuccess}
Servlet–>custom,servlet–>driver, return to login results
-Locationbean{boolean Isfromcustom, String phone, long longitude, long latitude}
Custom–>servlet–>driver,driver–>servlet–>custom, positioning information
-Custombean{string Phonecustom, string Start, String end}
Custom–>servlet–>driver, passenger order information
-Driverbean{string Phonedriver, String Phonecustom}
Driver–>servlet–>custom,driver–>servlet–>driver, Driver receipt information
Data storage:
-Sharedprefrences{boolean Token}
Custom,driver, User Preferences
-Data
Custom,driver, global variables, storage session, phone, etc.
-listdriver< hashmap< String, Object > >
Custom,driver Information
-listcustom< hashmap< String, Object > >
Driver,custom Information
2.View
Passenger side:
Driver's side:
3.Controller
Myiohandler: Rewrite of the Iohandler. Classify the received object by bean, call the interface, and pass the handler to Mainthread. Implement the interface in Mainthread. Technical preparation