陳浩+葉建林+吳秋坤+黃滋炯+王祺奇
摘要:隨著智能手機的普及,互聯(lián)網(wǎng)給人們生活帶來的便利變得無處不在。目前,在大學校園內存在生活上的諸多不便,如快遞代理點離學生生活區(qū)較遠,學生取件不便或沒時間取件,導致快遞堆積;校內超市商品不全,部分商品只能在校外大型超市買到。根據(jù)如上痛點設計與實現(xiàn)基于Android平臺的App—同途。根據(jù)軟件工程的相關知識,在需求分析的基礎上,設計了系統(tǒng)總體架構及功能。使用Java語言和Android Studio開發(fā)工具開發(fā)App,Servlet技術開發(fā)服務器端,MySQL進行數(shù)據(jù)庫管理。在該平臺上,用戶可以實現(xiàn)基于順路的快遞代拿、商品代買、打傘接送、租借充電寶等功能。測試表明,平臺解決了用戶的痛點,給用戶的校園生活帶來了更多便利。
關鍵詞:Android;Servlet;校園服務;眾包;移動APP
中圖分類號:TP319 文獻標識碼:A 文章編號:1009-3044(2018)01-0119-03
Abstract: With the popularity of smartphones, the convenience that the Internet brings to our lives has become ubiquitous. At present , there are many inconveniences in life on campus , such as the express agent is far away from the students ' living area , the student picks up inconveniently or does not have the time to take the pieces,resulting in the accumulation of express delivery. The supermarkets in campus lackofproducts , some of them can only be found outside the large supermarkets.According to the pain points we will design and implement of the App - same way Based on Android platform. According to the related knowledge of software engineering , on the basis of requirement analysis , the overall system architecture and functions are designed. Use the Java language and Android Studio development tools to develop App , Servlet technology to develop server,MySQL to manage database. On this platform , the users can realize the functions of picking up ,purchasing goods and donating umbrellas , renting portable battery Based on the same way. Test shows that the platform to solve the user's pain points , to the user's campus life has brought more convenience.
Key words: Android; Servlet; campus service; Crowdsourcing; Mobile Application
1 背景
在大學校園里,有著眾多的順路互助場景。比如在大學城,學生的快遞通常會先到達快遞代理點,然而有些代理點偏遠,學生取件不方便,所以可以由其他學生順路代拿。另外,有些學生宿舍離超市較遠,可以讓其他同學順路代買。再比如,在教學區(qū)手機電量不足,可發(fā)布自己的所在位置和需求,在附近有充電寶的同學可以提供幫助。另外,夜晚在圖書館自習完突然下起大雨,也可以尋找?guī)闱衣肪€相同的同學一起回宿舍等等。
2 系統(tǒng)分析
2.1 系統(tǒng)目標
同途App需要技術作為支撐,必須開發(fā)出相應的計算機系統(tǒng)。該系統(tǒng)主要包括以下組成部分:服務器端,接收客戶端所有請求,同時提供數(shù)據(jù)存儲服務;安卓端,提供用戶注冊、登錄、發(fā)布需求、接單等功能。
2.2 系統(tǒng)功能
同途App主要功能有注冊登錄、發(fā)布訂單、接單、完成互助。如圖1所示。
注冊登錄:為確保安全,用戶需提供學號密碼進行注冊以證明其身份是在校師生,注冊時提交學號密碼密文到同途服務器端,然后服務器端將數(shù)據(jù)解密后發(fā)送到正方教務管理系統(tǒng)進行校驗,通過后即可將此學號作為同途賬號使用,同途服務器端不對用戶學號的密碼進行保留,而是提示客戶端進行同途密碼設置,設置完即可登錄使用。
發(fā)布訂單:登錄且完成手機號綁定方可發(fā)布訂單,發(fā)布訂單需選擇起點和終點,然后填寫需求,如快遞代拿、商品代買、打傘接送、租借充電寶等,點擊發(fā)布即可。
接單:登錄且完成手機號綁定方可接單,接單后可獲取訂單詳細信息從而提供幫助。
完成互助:當用戶到達發(fā)布者的終點(目的地)時,點擊“聯(lián)系對方”按鈕即可調出撥號界面撥打對方手機號,從而聯(lián)系對方,完成幫助。
3 系統(tǒng)設計
3.1 基本架構
根據(jù)中商情報網(wǎng)資料顯示,至2017年2月中國Android 手機市場已暴漲至86.4%,可謂是智能手機的主流操作系統(tǒng)。同途App包括服務器端應用程序和客戶端應用程序兩部分。系統(tǒng)釆用Client/Cloud總體架構,如圖2所示,該系統(tǒng)將支持Android移動設備通過網(wǎng)絡連接云服務器來訪問各項數(shù)據(jù)。endprint