《啦啦打車》開發手記_新世界

來源:互聯網
上載者:User
基本配置

1.Servlet:MINA;JAVA
2.Client:MINA;Android;百度地圖SDK
3.Period:2weeks 項目分析

1.Moudle:
網路傳輸:
- GetCodeBean{String phone}
Custom–>Servlet,Driver–>Servlet,請求驗證碼
- CodeBean{String code}
Servlet–>Custom,Servlet–>Driver,返回驗證碼
- LoginBean{boolean isFromCustom, String phone, String code}
Custom–>Servlet,Driver–>Servlet,請求登入
- LoginResultBean{boolean isSuccess}
Servlet–>Custom,Servlet–>Driver,返回登入結果
- LocationBean{boolean isFromCustom, String phone, long longitude, long latitude}
Custom–>Servlet–>Driver,Driver–>Servlet–>Custom,定位資訊
- CustomBean{String phoneCustom, String start, String end}
Custom–>Servlet–>Driver,乘客下單資訊
- DriverBean{String phoneDriver, String phoneCustom}
Driver–>Servlet–>Custom,Driver–>Servlet–>Driver,司機接單資訊

資料儲存:
- SharedPrefrences{boolean token}
Custom,Driver,使用者喜好設定
- Data
Custom,Driver,全域變數,儲存session、phone等。
- listDriver< HashMap< String, Object > >
Custom,Driver資訊
- listCustom< HashMap< String, Object > >
Driver,Custom資訊

2.View
乘客端:

司機端:

3.Controller
MyIoHandler:重寫的IoHandler。把接收的Object按Bean分類,調用介面,用Handler傳給MainThread。在MainThread中實現介面。 技術準備

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.