"La La Taxi" Development Notes _ New World

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.